Create sale/purchase entry
Create a new sale/purchase accounting entry
Authorizations
This access token needs to be included in each of your request to the Chift API.
Path Parameters
Query Parameters
Financial period in which the invoice must be created. The format is the following: mmYYYY.
Regroup lines by account number, tax code and analytic account in the accounting system.
true
, false
Accounting folder ID, this needs to be passed when activating the multiple folders feature.
Body
Indicates the currency of the invoice (e.g. EUR).
An enumeration.
customer_invoice
, customer_refund
, supplier_invoice
, supplier_refund
1
Indicates the exchange rate at the date of the invoice. Must be filled in when creating the invoice in another currency from the default currency of the accounting system.
Information used to add a correction line when roundings have an impact on the total amount of the invoice.
Number of the invoice. If left empty, will be automatically generated by the accounting system at creation.
Indicates the journal used in for the invoice. If the journal is not given, the journal will be automatically set if only one journal exists otherwise an error will be thrown.
Base 64 string representing the PDF attached to the sale/purchase entry.
An enumeration.
draft
, posted
Response
Indicates the currency of the invoice (e.g. EUR).
Due date of the invoice. We use the value of the invoice date if the value is not available/empty in the accounting system.
Accounting invoice date. It is automatically set to '1970-01-01' if the value is empty in the accounting system.
An enumeration.
customer_invoice
, customer_refund
, supplier_invoice
, supplier_refund
Indicates the journal used in for the invoice. If the journal is not given, the journal will be automatically set if only one journal exists otherwise an error will be thrown.
Number of the invoice. If left empty, will be automatically generated by the accounting system at creation.
An enumeration.
cancelled
, draft
, posted
, paid