Standard journal entries

Content:

Resource information

Url https://api.profit365.eu/1.6/accounting/standard/
Authentication required
Access level company
Response JSON / XML
Class

List standard entries

A view is currently only way how to list standard documents. A pagination is used.

Url https://api.profit365.eu/1.6/accounting/standard/{page}
Method GET
Params
{page} optional A page number of result set. Default page number is 1 and default page size is 50.
Example https://api.profit365.eu/1.6/accounting/standard/1

New standard entry

Url https://api.profit365.eu/1.6/accounting/standard
Method POST
Content A new standard journal entry data
Example POST https://api.profit365.eu/1.6/accounting/standard/

Authorization: Basic *** hidden credentials ***
CompanyID: d9af47d5-43e5-4e59-a1ab-0693c8dd478e
ClientID: CSDV...
ClientSecret: dcvsc4s4...
Content-Type: application/json

{ "ordnerID": "9eae2f9e-153d-4278-ba17-cbd271311909",
"dateCreated":"2019-02-14T00:00:00",
"dateDelivery":"2019-02-14T00:00:00",
"accountID":"8773400e-df89-4ee4-945a-3e7bbb32e752",
"rows": [{ "debit": "20",
"credit": 60,
"relatedRecordID": "f7fe3085-7b03-4041-b065-46637e3f5673"
}, { "debit": "5",
"credit": 15,
"vatID": "45f4123a-7c9f-43ad-ae79-3016c0a4b5bb"
}]
}

Update entry

An existing standard journal entry can be updated, if its business state allows such operation. When updating an entry, submit all the data, not just fields that have changed.

Url https://api.profit365.eu/1.6/accounting/standard/{id}
Method PUT
Params
{ID} required A ID of a standard entry. Type: GUID
Content An updated entry data
Example PUT https://api.profit365.eu/1.6/accounting/standard/2cba2649-ec0b-4f4c-864c-12f7f38c2c29

Authorization: Basic *** hidden credentials ***
ClientID: C7A36D...
ClientSecret: j7896WnI0U1...
CompanyID: CCA256B...
Content-Type: application/json

{ "ordnerID": "9eae2f9e-153d-4278-ba17-cbd271311909",
"dateCreated":"2019-02-14T00:00:00",
"dateDelivery":"2019-02-14T00:00:00",
"accountID":"8773400e-df89-4ee4-945a-3e7bbb32e752",
"rows": [{ "md2": "20",
"dal2": 60,
"relatedRecordID": "f7fe3085-7b03-4041-b065-46637e3f5673"
}, { "md2": "5",
"dal2": 15,
"vatID": "45f4123a-7c9f-43ad-ae79-3016c0a4b5bb"
}]
}

Standard entry data

ordnerId

required

ID of an ordner

Type: GUID

request, response

dateCreated

required

Date when receipt was issued (business date, not system date).

Type: DateTime

request, response

dateDelivery

required

Date when the taxable transaction took place

Type: DateTime

request, response

rows

required

A collection of standard entry's rows. The entry may contain one or multiple rows. Each row represents exactly one row in the receipt. See row data

Type: Array

request, response

recordNumber

optional

A unique number of the entry. Duplicate record number will be denied. See Record Numbers

Type: String

request, response

accountId

required

ID of an account

Type: GUID

request, response

Standard entry row data

relatedRecordId

optional

A ID of an record which is paid by this entry. For example an invoice.

Type: GUID

request, response

itemId

optional

ID of an item from price list.

Type: GUID

request, response

debit

required

A value in debit side of the row

Type: Number

request, response

credit

required

A value in credit side of the row

Type: Number

request, response

accountId

optional

ID of the account on the row

Type: GUID

request, response

vatId

optional

ID of the vat paragraph

Type: GUID

request, response

description1

optional

Description of the row

Type: String

request, response

costCenterId

optional

ID of a Cost center.

Type: GUID

request, response

costUnitId

optional

ID of a Cost unit.

Type: GUID

request, response

personId

optional

ID of a Person.

Type: GUID

request, response

projectId

optional

ID of a Project.

Type: GUID

request, response