POST
/
consumers
/
{consumer_id}
/
accounting
/
miscellaneous-operation

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

Accounting folder ID, this needs to be passed when activating the multiple folders feature.

Body

application/json
currency
string
required

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

lines
object[]
required
operation_date
string
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.

journal_id
string

Indicates the journal used in for the operation. If the journal is not given, the journal will be automatically set if only one journal exists otherwise an error will be thrown.

operation_number
string
status
enum<string>
default:
posted

An enumeration.

Available options:
draft,
posted

Response

200 - application/json
currency
string
required

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

id
string
required
journal_id
string
required

Indicates the journal used in for the operation.

lines
object[]
required
status
enum<string>
required

An enumeration.

Available options:
cancelled,
draft,
posted,
matched
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.

operation_date
string
default:
1970-01-01

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

operation_number
string