GET
/
consumers
/
{consumer_id}
/
accounting
/
invoices
/
multi-analytic-plans
/
{invoice_id}
curl --request GET \
  --url https://api.chift.eu/consumers/{consumer_id}/accounting/invoices/multi-analytic-plans/{invoice_id} \
  --header 'Authorization: Bearer <token>'
{
  "invoice_type": "customer_invoice",
  "invoice_number": "<string>",
  "currency": "<string>",
  "untaxed_amount": 123,
  "tax_amount": 123,
  "total": 123,
  "reference": "<string>",
  "payment_communication": "<string>",
  "customer_memo": "<string>",
  "id": "<string>",
  "invoice_date": "2023-12-25",
  "due_date": "2023-12-25",
  "partner_id": "<string>",
  "journal_id": "<string>",
  "payments": [
    {
      "id": "<string>",
      "name": "<string>",
      "currency": "<string>",
      "amount": 123,
      "dedicated_amount": 0,
      "payment_date": "2023-12-25",
      "journal_type": "customer_invoice",
      "journal_id": "<string>",
      "journal_name": "<string>",
      "reconciled": false,
      "communication": "<string>",
      "matching_number": "<string>"
    }
  ],
  "status": "cancelled",
  "lines": [
    {
      "line_number": 1,
      "description": "<string>",
      "unit_price": 123,
      "unit_of_measure": "<string>",
      "quantity": 123,
      "untaxed_amount": 123,
      "tax_rate": 123,
      "tax_amount": 123,
      "total": 123,
      "account_number": "<string>",
      "tax_code": "<string>",
      "analytic_distribution": []
    }
  ]
}

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
invoice_id
string
required

Query Parameters

folder_id
string
include_payments
enum<string>
default:false

An enumeration.

Available options:
true,
false

Response

200
application/json
Successful Response
invoice_type
enum<string>
required

An enumeration.

Available options:
customer_invoice,
customer_refund,
supplier_invoice,
supplier_refund
currency
string
required

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

untaxed_amount
number
required
tax_amount
number
required
total
number
required
invoice_date
string
required

Accounting invoice date. It is automatically set to '1970-01-01' if the value is empty in the accounting system.

due_date
string
required

Due date of the invoice. We use the value of the invoice date if the value is not available/empty in the accounting system.

partner_id
string
required
journal_id
string
required

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

lines
object[]
required
invoice_number
string

Number of the invoice. If left empty, will be automatically generated by the accounting system at creation.

reference
string
payment_communication
string
customer_memo
string
id
string
payments
object[]
status
enum<string>
default:posted

An enumeration.

Available options:
cancelled,
draft,
posted,
paid