POST
/
consumers
/
{consumer_id}
/
accounting
/
journal-entries
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>",
      "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
            }
          ]
        }
      ]
    }
  ]
}

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 | null
force_currency_exchange
enum<string> | null
default:false
Available options:
true,
false

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.