curl --request POST \
--url https://api.chift.eu/consumers/{consumer_id}/accounting/miscellaneous-operation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"operation_number": "<string>",
"currency": "<string>",
"currency_exchange_rate": 123,
"lines": [
{
"line_number": 123,
"description": "<string>",
"amount": 123,
"type": "customer_account",
"account_number": "<string>",
"partner_id": "<string>",
"analytic_account": "<string>"
}
],
"operation_date": "2023-12-25",
"journal_id": "<string>",
"status": "draft"
}'
{
"operation_number": "<string>",
"currency": "<string>",
"currency_exchange_rate": 123,
"lines": [
{
"line_number": 123,
"description": "<string>",
"amount": 123,
"type": "customer_account",
"account_number": "<string>",
"partner_id": "<string>",
"analytic_account": "<string>"
}
],
"operation_date": "2023-12-25",
"journal_id": "<string>",
"status": "cancelled",
"id": "<string>"
}
Create a new miscellaneous operation
curl --request POST \
--url https://api.chift.eu/consumers/{consumer_id}/accounting/miscellaneous-operation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"operation_number": "<string>",
"currency": "<string>",
"currency_exchange_rate": 123,
"lines": [
{
"line_number": 123,
"description": "<string>",
"amount": 123,
"type": "customer_account",
"account_number": "<string>",
"partner_id": "<string>",
"analytic_account": "<string>"
}
],
"operation_date": "2023-12-25",
"journal_id": "<string>",
"status": "draft"
}'
{
"operation_number": "<string>",
"currency": "<string>",
"currency_exchange_rate": 123,
"lines": [
{
"line_number": 123,
"description": "<string>",
"amount": 123,
"type": "customer_account",
"account_number": "<string>",
"partner_id": "<string>",
"analytic_account": "<string>"
}
],
"operation_date": "2023-12-25",
"journal_id": "<string>",
"status": "cancelled",
"id": "<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
.