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": 1,
  "date": "2023-12-25",
  "items": [
    {
      "account_type": "customer_account",
      "account": "<string>",
      "force_general_account": "<string>",
      "prioritise_thirdparty_account": false,
      "description": "<string>",
      "debit": 123,
      "credit": 123,
      "analytic_distribution": [],
      "tax_code": "<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": "1970-01-01",
  "posted": false,
  "id": "<string>",
  "items": []
}

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
force_currency_exchange
enum<string>
default:false

An enumeration.

Available options:
true,
false

Body

application/json
journal_id
string
required
number
string
required
Minimum length: 1
currency
string
required
Minimum length: 1
date
string
required
items
object[]
required
reference
string
due_date
string
currency_exchange_rate
number
default:1
pdf
string

Base 64 string representing the PDF attached to the item.

posted
boolean
default:true
start_date
string
end_date
string

Response

200
application/json
Successful Response
journal_id
string
required
journal_name
string
required
id
string
required
reference
string
due_date
string
name
string
date
string
default:1970-01-01

Accounting date of the journal entry. It is automatically set to '1970-01-01' if the value is not available/empty in the accounting system.

posted
boolean
default:false
items
object[]