Purchase invoices

The Purchase invoices API is a background functionality of a web client at Profit365 > Purchase > Invoices.

Content:

Resource information

Url https://api.profit365.eu/1.6/purchase/invoices
Authentication required
Access level company
Response JSON / XML
Class Business entity

List invoices

Url https://api.profit365.eu/1.6/purchase/invoices/{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/purchase/invoices/1

Create new invoice

Url https://api.profit365.eu/1.6/purchase/invoices
Method POST
Content A new invoice data
Example POST https://api.profit365.eu/1.6/purchase/invoices

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

{
"PartnerID": "50f023a0-0773-4ff3-a2b5-9a2e7450a4d2",
"OrdnerID": "7b2487cb-1943-4a77-8815-857cd1946301",
"RecordNumber": "DF2015/00029",
"DateCreated": "2015-07-23T10:05:00",
"DateDelivery": "2015-07-23T10:05:00",
"DateValidTo": "2015-08-01T00:00:00",
"DateAccounting": "2015-08-01T00:00:00",
"Currency1": "EUR",
"PeriodYear": "2015",
"Period": "2015-07",
"Rows": [{ "ItemID": "f405250e-82e5-4d92-bcab-15db4cc9fe14",
"Name": "item name",
"Code": "item code",
"Description": "item descripton",
"ItemsAmount": 1,
"Bonus": 1.00,
"BonusPercent": 1.00,
"Sum": 100.00,
"LocalSum": 100.00,
"Price": 0.00
}]
}

Invoice data

partnerId

required

ID of partner.

Type: GUID

request, response

ordnerId

optional

ID of an ordner where is the invoice stored.

Type: GUID

request, response

dateCreated

required

Date when invoice was issued (business date not system date)

Type: DateTime

request, response

recordNumber

optional

A unique number of the invoice. When inserting, empty record number will be generated by the counter. When updating, empty record number wont be generated. Duplicate record number will be denied.

Type: String

request, response

externalRecordNumber

optional

An external number of the invoice which is used by your supplier who has issued the invoice.

Type: String

request, response

partner

optional

Name of partner or organization.

Type: String

request, response

partnerId

optional

Customer ID from a business partners list

Type: GUID

request, response

partner

optional

Billing address / info of a partner

Type: String

request, response

dateValidTo

optional

Date of invoice validating date.

Type: DateTime

request, response

dateAccounting

optional

A accounting date for the invoice. A period, when not set, is selected by dateAccounting.

Type: DateTime

request, response

dateDelivery

optional

A delivery date for the invoice. VAT Period is generated by dateDelivery.

Type: DateTime

request, response

periodId

optional

A accounting period for the invoice. If not set, system will find period by date Accounting.

Type: DateTime

request, response

currency1

optional

Currency type of invoice.

Type: String

request, response

rows

optional

Array of invoice rows. Parameters for insert are listed here

Type: Rows

request

Invoice Rows parameters

itemId

optional

ID of item in row.

Type: GUID

request, response

itemsAmount

required

Count of purchased item. (Nullable)

Type: Decimal

request, response

code

optional

Code of purchased item.

Type: String

request, response

name

required

Name of purchased item.

Type: String

request, response

description

optional

Description of purchased item.

Type: String

request

bonus

optional

Bonus price of purchased item.

Type: Decimal

request

bonusPercent

optional

Percent of bonus price of purchased item.

Type: Decimal

request

price

required

Price without bonus percent of purchased item.

Type: Decimal

request

localSum

optional

Local sum of purchased item.

Type: Decimal

request

sum

optional

Sum of purchased item.

Type: Decimal

request, response