API Reference Overview
Authentication
Consumers
Connections
Accounting
- Folders
- Book years
- Clients
- Suppliers
- Invoices
- POSTCreate sale/purchase entry
- POSTCreate sale/purchase entry (Multiple plans)
- GETGet invoices by type (sale/purchase entries)
- GETGet one invoice (sale/purchase entry)
- GETGet one invoice (sale/purchase entry - Multiple Analytic Plans)
- GETGet invoices by type (sale/purchase entries - Multiple Analytic Plans)
- POST
- Ledger accounts
- Journals
- Journal entries
- Employees
- Analytic plans
- Analytic accounts
- Miscellaneous operations
- Outstandings
- VAT codes
- Attachments
Invoicing
- Contacts
- Invoices
- Products
- Taxes
- Opportunities
- Payments
- Payment methods
POS
- Orders
- Payment methods
- Payments
- Closure info
- Locations
- Products
- Categories
- Customers
- Objectives
eCommerce
- Orders
- Products & variants
- Categories
- Customers
- Payment methods
- Locations
- Countries
- Taxes
PMS
- Orders
- Invoices
- Payment methods
- Payments
- Closure info
- Locations
- Categories
- Customers
- Taxes
Payment
- Payments
- Balances
- Transactions
- Refunds
Banking
- Financial institutions
- Banking accounts
- Transactions
Advanced
- Webhooks
- Syncs
- Issues
- Datastores
Invoices
Create sale/purchase entry
Create a new sale/purchase accounting entry
POST
/
consumers
/
{consumer_id}
/
accounting
/
invoices
curl --request POST \
--url https://api.chift.eu/consumers/{consumer_id}/accounting/invoices \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"invoice_type": "customer_invoice",
"invoice_number": "<string>",
"currency": "<string>",
"untaxed_amount": 123,
"tax_amount": 123,
"total": 123,
"reference": "<string>",
"payment_communication": "<string>",
"customer_memo": "<string>",
"invoice_date": "2023-12-25",
"due_date": "2023-12-25",
"partner_id": "<string>",
"journal_id": "<string>",
"status": "draft",
"pdf": "<string>",
"currency_exchange_rate": 123,
"invoice_correction": {
"sale_invoice_correction_tax_code": "<string>",
"purchase_invoice_correction_tax_code": "<string>",
"invoice_correction_credit_account_number": "<string>",
"invoice_correction_debit_account_number": "<string>"
},
"nl_payment_terms_split": {
"g_account": {
"amount": 123,
"iban": "<string>"
},
"n_account": {
"amount": 123,
"iban": "<string>"
}
},
"shipping_country": "<string>",
"partner_info": {
"account_number": "<string>",
"account_name": "<string>"
},
"lines": [
{
"line_number": 123,
"unit_price": 123,
"unit_of_measure": "<string>",
"quantity": 123,
"untaxed_amount": 123,
"tax_rate": 123,
"tax_amount": 123,
"total": 123,
"account_number": "<string>",
"tax_code": "<string>",
"description": "<string>",
"analytic_account": "<string>"
}
]
}'
{
"invoice_type": "customer_invoice",
"invoice_number": "<string>",
"currency": "<string>",
"untaxed_amount": 123,
"tax_amount": 123,
"total": 123,
"reference": "<string>",
"payment_communication": "<string>",
"customer_memo": "<string>",
"id": "<string>",
"invoice_date": "2023-12-25",
"due_date": "2023-12-25",
"partner_id": "<string>",
"journal_id": "<string>",
"payments": [
{
"id": "<string>",
"name": "<string>",
"currency": "<string>",
"amount": 123,
"dedicated_amount": 0,
"payment_date": "2023-12-25",
"journal_type": "customer_invoice",
"journal_id": "<string>",
"journal_name": "<string>",
"reconciled": true,
"communication": "<string>",
"matching_number": "<string>"
}
],
"status": "cancelled",
"last_updated_on": "2023-11-07T05:31:56Z",
"partner": {
"external_reference": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"name": "<string>",
"function": "<string>",
"is_company": true,
"company_id": "<string>",
"phone": "<string>",
"mobile": "<string>",
"email": "<string>",
"language": "<string>",
"internal_notes": "<string>",
"website": "<string>",
"vat": "<string>",
"iban": "<string>",
"bank_account": "<string>",
"currency": "<string>",
"active": true,
"addresses": [
{
"address_type": "main",
"name": "<string>",
"number": "<string>",
"box": "<string>",
"phone": "<string>",
"mobile": "<string>",
"email": "<string>",
"street": "<string>",
"city": "<string>",
"postal_code": "<string>",
"country": "<string>"
}
],
"account_number": "<string>",
"company_number": "<string>",
"id": "<string>",
"last_updated_on": "2023-11-07T05:31:56Z"
},
"lines": [
{
"line_number": 123,
"unit_price": 123,
"unit_of_measure": "<string>",
"quantity": 123,
"untaxed_amount": 123,
"tax_rate": 123,
"tax_amount": 123,
"total": 123,
"account_number": "<string>",
"tax_code": "<string>",
"description": "<string>",
"analytic_account": "<string>"
}
]
}
Authorizations
This access token needs to be included in each of your request to the Chift API.
Path Parameters
Query Parameters
Available options:
true
, false
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
curl --request POST \
--url https://api.chift.eu/consumers/{consumer_id}/accounting/invoices \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"invoice_type": "customer_invoice",
"invoice_number": "<string>",
"currency": "<string>",
"untaxed_amount": 123,
"tax_amount": 123,
"total": 123,
"reference": "<string>",
"payment_communication": "<string>",
"customer_memo": "<string>",
"invoice_date": "2023-12-25",
"due_date": "2023-12-25",
"partner_id": "<string>",
"journal_id": "<string>",
"status": "draft",
"pdf": "<string>",
"currency_exchange_rate": 123,
"invoice_correction": {
"sale_invoice_correction_tax_code": "<string>",
"purchase_invoice_correction_tax_code": "<string>",
"invoice_correction_credit_account_number": "<string>",
"invoice_correction_debit_account_number": "<string>"
},
"nl_payment_terms_split": {
"g_account": {
"amount": 123,
"iban": "<string>"
},
"n_account": {
"amount": 123,
"iban": "<string>"
}
},
"shipping_country": "<string>",
"partner_info": {
"account_number": "<string>",
"account_name": "<string>"
},
"lines": [
{
"line_number": 123,
"unit_price": 123,
"unit_of_measure": "<string>",
"quantity": 123,
"untaxed_amount": 123,
"tax_rate": 123,
"tax_amount": 123,
"total": 123,
"account_number": "<string>",
"tax_code": "<string>",
"description": "<string>",
"analytic_account": "<string>"
}
]
}'
{
"invoice_type": "customer_invoice",
"invoice_number": "<string>",
"currency": "<string>",
"untaxed_amount": 123,
"tax_amount": 123,
"total": 123,
"reference": "<string>",
"payment_communication": "<string>",
"customer_memo": "<string>",
"id": "<string>",
"invoice_date": "2023-12-25",
"due_date": "2023-12-25",
"partner_id": "<string>",
"journal_id": "<string>",
"payments": [
{
"id": "<string>",
"name": "<string>",
"currency": "<string>",
"amount": 123,
"dedicated_amount": 0,
"payment_date": "2023-12-25",
"journal_type": "customer_invoice",
"journal_id": "<string>",
"journal_name": "<string>",
"reconciled": true,
"communication": "<string>",
"matching_number": "<string>"
}
],
"status": "cancelled",
"last_updated_on": "2023-11-07T05:31:56Z",
"partner": {
"external_reference": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"name": "<string>",
"function": "<string>",
"is_company": true,
"company_id": "<string>",
"phone": "<string>",
"mobile": "<string>",
"email": "<string>",
"language": "<string>",
"internal_notes": "<string>",
"website": "<string>",
"vat": "<string>",
"iban": "<string>",
"bank_account": "<string>",
"currency": "<string>",
"active": true,
"addresses": [
{
"address_type": "main",
"name": "<string>",
"number": "<string>",
"box": "<string>",
"phone": "<string>",
"mobile": "<string>",
"email": "<string>",
"street": "<string>",
"city": "<string>",
"postal_code": "<string>",
"country": "<string>"
}
],
"account_number": "<string>",
"company_number": "<string>",
"id": "<string>",
"last_updated_on": "2023-11-07T05:31:56Z"
},
"lines": [
{
"line_number": 123,
"unit_price": 123,
"unit_of_measure": "<string>",
"quantity": 123,
"untaxed_amount": 123,
"tax_rate": 123,
"tax_amount": 123,
"total": 123,
"account_number": "<string>",
"tax_code": "<string>",
"description": "<string>",
"analytic_account": "<string>"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.