POST
/
consumers
/
{consumer_id}
/
accounting
/
financial-entries
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": 1,
  "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": 1,
  "reference": "<string>",
  "id": "<string>",
  "number": "<string>",
  "items": [
    {
      "account_type": "customer_account",
      "account": "<string>",
      "amount": 123,
      "description": "<string>",
      "counterpart_account": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

This access token needs to be included in each of your request to the Chift API.

Path Parameters

consumer_id
string
required

Query Parameters

folder_id
string
financial_counterpart_account
string

Body

application/json
date
string
required
journal_id
string
required

Indicates the journal used in for the operation.

currency
string
required

Indicates the currency of the operation (e.g. EUR).

items
object[]
required
currency_exchange_rate
number
default:1

Indicates the exchange rate at the date of the operation. Must be filled in when creating the operation in another currency from the default currency of the accounting system.

reference
string
number
string
pdf
string

Base 64 string representing the PDF attached to the sale/purchase entry.

Response

200
application/json
Successful Response
date
string
required
journal_id
string
required

Indicates the journal used in for the operation.

currency
string
required

Indicates the currency of the operation (e.g. EUR).

id
string
required
number
string
required
items
object[]
required
currency_exchange_rate
number
default:1

Indicates the exchange rate at the date of the operation. Must be filled in when creating the operation in another currency from the default currency of the accounting system.

reference
string