curl --request POST \
--url https://api.chift.eu/consumers/{consumer_id}/accounting/journal-entries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"reference": "<string>",
"due_date": "2023-12-25",
"journal_id": "<string>",
"number": "<string>",
"currency": "<string>",
"currency_exchange_rate": 123,
"date": "2023-12-25",
"items": [
{
"account_type": "customer_account",
"account": "<string>",
"force_general_account": "<string>",
"prioritise_thirdparty_account": true,
"description": "<string>",
"debit": 123,
"credit": 123,
"analytic_distribution": [
{
"analytic_plan": "<string>",
"analytic_accounts": [
{
"analytic_account": "<string>",
"percentage": 123
}
]
}
],
"tax_code": "<string>",
"account_info": {
"account_number": "<string>",
"account_name": "<string>"
}
}
],
"pdf": "<string>",
"posted": true,
"start_date": "2023-12-25",
"end_date": "2023-12-25"
}'
{
"reference": "<string>",
"due_date": "2023-12-25",
"journal_id": "<string>",
"name": "<string>",
"journal_name": "<string>",
"date": "2023-12-25",
"posted": true,
"id": "<string>",
"items": [
{
"account_number": "<string>",
"partner_id": "<string>",
"description": "<string>",
"debit": 123,
"credit": 123,
"currency": "<string>",
"currency_exchange_rate": 123,
"id": "<string>",
"partner_name": "<string>",
"account_name": "<string>",
"matching_numbers": [
"<string>"
],
"analytic_distribution": [
{
"analytic_plan": "<string>",
"analytic_accounts": [
{
"analytic_account": "<string>",
"percentage": 123
}
]
}
]
}
]
}
Create a new Journal Entry in the accounting system
curl --request POST \
--url https://api.chift.eu/consumers/{consumer_id}/accounting/journal-entries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"reference": "<string>",
"due_date": "2023-12-25",
"journal_id": "<string>",
"number": "<string>",
"currency": "<string>",
"currency_exchange_rate": 123,
"date": "2023-12-25",
"items": [
{
"account_type": "customer_account",
"account": "<string>",
"force_general_account": "<string>",
"prioritise_thirdparty_account": true,
"description": "<string>",
"debit": 123,
"credit": 123,
"analytic_distribution": [
{
"analytic_plan": "<string>",
"analytic_accounts": [
{
"analytic_account": "<string>",
"percentage": 123
}
]
}
],
"tax_code": "<string>",
"account_info": {
"account_number": "<string>",
"account_name": "<string>"
}
}
],
"pdf": "<string>",
"posted": true,
"start_date": "2023-12-25",
"end_date": "2023-12-25"
}'
{
"reference": "<string>",
"due_date": "2023-12-25",
"journal_id": "<string>",
"name": "<string>",
"journal_name": "<string>",
"date": "2023-12-25",
"posted": true,
"id": "<string>",
"items": [
{
"account_number": "<string>",
"partner_id": "<string>",
"description": "<string>",
"debit": 123,
"credit": 123,
"currency": "<string>",
"currency_exchange_rate": 123,
"id": "<string>",
"partner_name": "<string>",
"account_name": "<string>",
"matching_numbers": [
"<string>"
],
"analytic_distribution": [
{
"analytic_plan": "<string>",
"analytic_accounts": [
{
"analytic_account": "<string>",
"percentage": 123
}
]
}
]
}
]
}
This access token needs to be included in each of your request to the Chift API.
Id of the accounting folder instance. A folder represents a legal entity within the system. Required when the multiple folders feature is enabled.
Boolean flag indicating whether to force the use of the provided currency exchange rate instead of the rate used by the accounting software.
true
, false
Successful Response
The response is of type object
.