GET
/
consumers
/
{consumer_id}
/
accounting
/
miscellaneous-operation
/
{operation_id}
Get one miscellaneous operation
curl --request GET \
  --url https://api.chift.eu/consumers/{consumer_id}/accounting/miscellaneous-operation/{operation_id} \
  --header 'Authorization: Bearer <token>'
{
  "operation_number": "<string>",
  "currency": "<string>",
  "currency_exchange_rate": 123,
  "lines": [
    {
      "line_number": 123,
      "description": "<string>",
      "amount": 123,
      "type": "customer_account",
      "account_number": "<string>",
      "partner_id": "<string>",
      "analytic_account": "<string>"
    }
  ],
  "operation_date": "2023-12-25",
  "journal_id": "<string>",
  "status": "cancelled",
  "id": "<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<uuid>
required
operation_id
string
required

Query Parameters

folder_id
string | null

Id of the accounting folder instance. A folder represents a legal entity within the system. Required when the multiple folders feature is enabled.

Response

Successful Response

currency
string
required

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

lines
MiscellaneousOperationLine · object[]
required
journal_id
string
required

Indicates the journal used in for the operation.

status
enum<string>
required
Available options:
cancelled,
draft,
posted,
matched
id
string
required
operation_number
string | null
currency_exchange_rate
number | null
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 folder's default currency.

operation_date
string<date> | null
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.