curl --request POST \
--url https://api.chift.eu/consumers/{consumer_id}/accounting/financial-entries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"date": "2023-12-25",
"journal_id": "<string>",
"currency": "<string>",
"currency_exchange_rate": 123,
"reference": "<string>",
"number": "<string>",
"items": [
{
"account_type": "customer_account",
"account": "<string>",
"amount": 123,
"description": "<string>"
}
],
"pdf": "<string>"
}'
{
"date": "2023-12-25",
"journal_id": "<string>",
"currency": "<string>",
"currency_exchange_rate": 123,
"reference": "<string>",
"id": "<string>",
"number": "<string>",
"items": [
{
"account_type": "customer_account",
"account": "<string>",
"amount": 123,
"description": "<string>",
"counterpart_account": "<string>"
}
]
}
Create a new financial entry (Bank or Cash operation)
curl --request POST \
--url https://api.chift.eu/consumers/{consumer_id}/accounting/financial-entries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"date": "2023-12-25",
"journal_id": "<string>",
"currency": "<string>",
"currency_exchange_rate": 123,
"reference": "<string>",
"number": "<string>",
"items": [
{
"account_type": "customer_account",
"account": "<string>",
"amount": 123,
"description": "<string>"
}
],
"pdf": "<string>"
}'
{
"date": "2023-12-25",
"journal_id": "<string>",
"currency": "<string>",
"currency_exchange_rate": 123,
"reference": "<string>",
"id": "<string>",
"number": "<string>",
"items": [
{
"account_type": "customer_account",
"account": "<string>",
"amount": 123,
"description": "<string>",
"counterpart_account": "<string>"
}
]
}
This access token needs to be included in each of your request to the Chift API.
Successful Response
The response is of type object
.