POST
/
consumers
/
{consumer_id}
/
accounting
/
journal
curl --request POST \
  --url https://api.chift.eu/consumers/{consumer_id}/accounting/journal \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "code": "<string>",
  "name": "<string>",
  "journal_type": "customer_invoice",
  "counterpart_account": "<string>"
}'
{
  "id": "<string>",
  "code": "<string>",
  "name": "<string>",
  "journal_type": "customer_invoice",
  "counterpart_account": "<string>",
  "next_document_numbers": []
}

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

Body

application/json
code
string
required
Minimum length: 2
name
string
required
Minimum length: 1
journal_type
enum<string>
required

An enumeration.

Available options:
customer_invoice,
customer_refund,
supplier_invoice,
supplier_refund,
bank,
cash,
miscellaneous_operation
counterpart_account
string

Response

200
application/json
Successful Response
id
string
required
name
string
required
journal_type
enum<string>
required

An enumeration.

Available options:
customer_invoice,
customer_refund,
supplier_invoice,
supplier_refund,
financial_operation,
miscellaneous_operation,
unknown
code
string
counterpart_account
string
next_document_numbers
object[]