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>",
"prioritize_thirdparty_account": true,
"description": "<string>",
"debit": 123,
"credit": 123,
"analytic_distribution": [
{
"analytic_plan": "<string>",
"analytic_accounts": [
{
"analytic_account": "<string>",
"percentage": 123
}
]
}
],
"tax_code": "<string>",
"country": "<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>",
"prioritize_thirdparty_account": true,
"description": "<string>",
"debit": 123,
"credit": 123,
"analytic_distribution": [
{
"analytic_plan": "<string>",
"analytic_accounts": [
{
"analytic_account": "<string>",
"percentage": 123
}
]
}
],
"tax_code": "<string>",
"country": "<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.
true
, false
Successful Response
The response is of type object
.