curl --request POST \
--url https://api.chift.eu/consumers/{consumer_id}/accounting/invoices/multi-analytic-plans \
--header 'Content-Type: application/json' \
--data '
{
"currency": "EUR",
"untaxed_amount": 200,
"tax_amount": 42,
"total": 242,
"invoice_date": "2026-01-15",
"due_date": "2026-02-14",
"lines": [
{
"unit_price": 100,
"quantity": 2,
"untaxed_amount": 200,
"tax_rate": 21,
"tax_amount": 42,
"total": 242,
"account_number": "<accounting-account-number>",
"tax_code": "<accounting-tax-code>",
"line_number": 1,
"unit_of_measure": "unit",
"description": "Consulting services",
"analytic_distribution": []
}
],
"invoice_number": "<string>",
"reference": "INV-2026-0001",
"payment_communication": "+++000/0000/00000+++",
"customer_memo": "Thank you for your business.",
"payment_term_id": "<accounting-payment-term-id>",
"withholding_tax": {
"tax_rate": -19,
"tax_code": "<accounting-tax-code>",
"tax_amount": -38
},
"partner_id": "<accounting-client-id>",
"journal_id": "<accounting-journal-id>",
"status": "posted",
"pdf": "<string>",
"pdf_name": "<string>",
"currency_exchange_rate": 1,
"invoice_correction": {
"sale_invoice_correction_tax_code": "<accounting-tax-code>",
"purchase_invoice_correction_tax_code": "<accounting-tax-code>",
"invoice_correction_credit_account_number": "<accounting-account-number>",
"invoice_correction_debit_account_number": "<accounting-account-number>"
},
"nl_payment_terms_split": {
"g_account": {
"amount": 200,
"iban": "NL00INGB0000000000"
},
"n_account": {
"amount": 200,
"iban": "NL00INGB0000000000"
}
},
"shipping_country": "BE",
"partner_info": {
"account_number": "<accounting-account-number>",
"account_name": "Consulting services"
},
"start_date": "2026-01-01",
"end_date": "2026-01-31",
"payment_method_id": "<accounting-payment-method-id>",
"delivery_date": "2026-01-15"
}
'import requests
url = "https://api.chift.eu/consumers/{consumer_id}/accounting/invoices/multi-analytic-plans"
payload = {
"currency": "EUR",
"untaxed_amount": 200,
"tax_amount": 42,
"total": 242,
"invoice_date": "2026-01-15",
"due_date": "2026-02-14",
"lines": [
{
"unit_price": 100,
"quantity": 2,
"untaxed_amount": 200,
"tax_rate": 21,
"tax_amount": 42,
"total": 242,
"account_number": "<accounting-account-number>",
"tax_code": "<accounting-tax-code>",
"line_number": 1,
"unit_of_measure": "unit",
"description": "Consulting services",
"analytic_distribution": []
}
],
"invoice_number": "<string>",
"reference": "INV-2026-0001",
"payment_communication": "+++000/0000/00000+++",
"customer_memo": "Thank you for your business.",
"payment_term_id": "<accounting-payment-term-id>",
"withholding_tax": {
"tax_rate": -19,
"tax_code": "<accounting-tax-code>",
"tax_amount": -38
},
"partner_id": "<accounting-client-id>",
"journal_id": "<accounting-journal-id>",
"status": "posted",
"pdf": "<string>",
"pdf_name": "<string>",
"currency_exchange_rate": 1,
"invoice_correction": {
"sale_invoice_correction_tax_code": "<accounting-tax-code>",
"purchase_invoice_correction_tax_code": "<accounting-tax-code>",
"invoice_correction_credit_account_number": "<accounting-account-number>",
"invoice_correction_debit_account_number": "<accounting-account-number>"
},
"nl_payment_terms_split": {
"g_account": {
"amount": 200,
"iban": "NL00INGB0000000000"
},
"n_account": {
"amount": 200,
"iban": "NL00INGB0000000000"
}
},
"shipping_country": "BE",
"partner_info": {
"account_number": "<accounting-account-number>",
"account_name": "Consulting services"
},
"start_date": "2026-01-01",
"end_date": "2026-01-31",
"payment_method_id": "<accounting-payment-method-id>",
"delivery_date": "2026-01-15"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
currency: 'EUR',
untaxed_amount: 200,
tax_amount: 42,
total: 242,
invoice_date: '2026-01-15',
due_date: '2026-02-14',
lines: [
{
unit_price: 100,
quantity: 2,
untaxed_amount: 200,
tax_rate: 21,
tax_amount: 42,
total: 242,
account_number: '<accounting-account-number>',
tax_code: '<accounting-tax-code>',
line_number: 1,
unit_of_measure: 'unit',
description: 'Consulting services',
analytic_distribution: []
}
],
invoice_number: '<string>',
reference: 'INV-2026-0001',
payment_communication: '+++000/0000/00000+++',
customer_memo: 'Thank you for your business.',
payment_term_id: '<accounting-payment-term-id>',
withholding_tax: {tax_rate: -19, tax_code: '<accounting-tax-code>', tax_amount: -38},
partner_id: '<accounting-client-id>',
journal_id: '<accounting-journal-id>',
status: 'posted',
pdf: '<string>',
pdf_name: '<string>',
currency_exchange_rate: 1,
invoice_correction: {
sale_invoice_correction_tax_code: '<accounting-tax-code>',
purchase_invoice_correction_tax_code: '<accounting-tax-code>',
invoice_correction_credit_account_number: '<accounting-account-number>',
invoice_correction_debit_account_number: '<accounting-account-number>'
},
nl_payment_terms_split: {
g_account: {amount: 200, iban: 'NL00INGB0000000000'},
n_account: {amount: 200, iban: 'NL00INGB0000000000'}
},
shipping_country: 'BE',
partner_info: {
account_number: '<accounting-account-number>',
account_name: 'Consulting services'
},
start_date: '2026-01-01',
end_date: '2026-01-31',
payment_method_id: '<accounting-payment-method-id>',
delivery_date: '2026-01-15'
})
};
fetch('https://api.chift.eu/consumers/{consumer_id}/accounting/invoices/multi-analytic-plans', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.chift.eu/consumers/{consumer_id}/accounting/invoices/multi-analytic-plans",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'currency' => 'EUR',
'untaxed_amount' => 200,
'tax_amount' => 42,
'total' => 242,
'invoice_date' => '2026-01-15',
'due_date' => '2026-02-14',
'lines' => [
[
'unit_price' => 100,
'quantity' => 2,
'untaxed_amount' => 200,
'tax_rate' => 21,
'tax_amount' => 42,
'total' => 242,
'account_number' => '<accounting-account-number>',
'tax_code' => '<accounting-tax-code>',
'line_number' => 1,
'unit_of_measure' => 'unit',
'description' => 'Consulting services',
'analytic_distribution' => [
]
]
],
'invoice_number' => '<string>',
'reference' => 'INV-2026-0001',
'payment_communication' => '+++000/0000/00000+++',
'customer_memo' => 'Thank you for your business.',
'payment_term_id' => '<accounting-payment-term-id>',
'withholding_tax' => [
'tax_rate' => -19,
'tax_code' => '<accounting-tax-code>',
'tax_amount' => -38
],
'partner_id' => '<accounting-client-id>',
'journal_id' => '<accounting-journal-id>',
'status' => 'posted',
'pdf' => '<string>',
'pdf_name' => '<string>',
'currency_exchange_rate' => 1,
'invoice_correction' => [
'sale_invoice_correction_tax_code' => '<accounting-tax-code>',
'purchase_invoice_correction_tax_code' => '<accounting-tax-code>',
'invoice_correction_credit_account_number' => '<accounting-account-number>',
'invoice_correction_debit_account_number' => '<accounting-account-number>'
],
'nl_payment_terms_split' => [
'g_account' => [
'amount' => 200,
'iban' => 'NL00INGB0000000000'
],
'n_account' => [
'amount' => 200,
'iban' => 'NL00INGB0000000000'
]
],
'shipping_country' => 'BE',
'partner_info' => [
'account_number' => '<accounting-account-number>',
'account_name' => 'Consulting services'
],
'start_date' => '2026-01-01',
'end_date' => '2026-01-31',
'payment_method_id' => '<accounting-payment-method-id>',
'delivery_date' => '2026-01-15'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.chift.eu/consumers/{consumer_id}/accounting/invoices/multi-analytic-plans"
payload := strings.NewReader("{\n \"currency\": \"EUR\",\n \"untaxed_amount\": 200,\n \"tax_amount\": 42,\n \"total\": 242,\n \"invoice_date\": \"2026-01-15\",\n \"due_date\": \"2026-02-14\",\n \"lines\": [\n {\n \"unit_price\": 100,\n \"quantity\": 2,\n \"untaxed_amount\": 200,\n \"tax_rate\": 21,\n \"tax_amount\": 42,\n \"total\": 242,\n \"account_number\": \"<accounting-account-number>\",\n \"tax_code\": \"<accounting-tax-code>\",\n \"line_number\": 1,\n \"unit_of_measure\": \"unit\",\n \"description\": \"Consulting services\",\n \"analytic_distribution\": []\n }\n ],\n \"invoice_number\": \"<string>\",\n \"reference\": \"INV-2026-0001\",\n \"payment_communication\": \"+++000/0000/00000+++\",\n \"customer_memo\": \"Thank you for your business.\",\n \"payment_term_id\": \"<accounting-payment-term-id>\",\n \"withholding_tax\": {\n \"tax_rate\": -19,\n \"tax_code\": \"<accounting-tax-code>\",\n \"tax_amount\": -38\n },\n \"partner_id\": \"<accounting-client-id>\",\n \"journal_id\": \"<accounting-journal-id>\",\n \"status\": \"posted\",\n \"pdf\": \"<string>\",\n \"pdf_name\": \"<string>\",\n \"currency_exchange_rate\": 1,\n \"invoice_correction\": {\n \"sale_invoice_correction_tax_code\": \"<accounting-tax-code>\",\n \"purchase_invoice_correction_tax_code\": \"<accounting-tax-code>\",\n \"invoice_correction_credit_account_number\": \"<accounting-account-number>\",\n \"invoice_correction_debit_account_number\": \"<accounting-account-number>\"\n },\n \"nl_payment_terms_split\": {\n \"g_account\": {\n \"amount\": 200,\n \"iban\": \"NL00INGB0000000000\"\n },\n \"n_account\": {\n \"amount\": 200,\n \"iban\": \"NL00INGB0000000000\"\n }\n },\n \"shipping_country\": \"BE\",\n \"partner_info\": {\n \"account_number\": \"<accounting-account-number>\",\n \"account_name\": \"Consulting services\"\n },\n \"start_date\": \"2026-01-01\",\n \"end_date\": \"2026-01-31\",\n \"payment_method_id\": \"<accounting-payment-method-id>\",\n \"delivery_date\": \"2026-01-15\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.chift.eu/consumers/{consumer_id}/accounting/invoices/multi-analytic-plans")
.header("Content-Type", "application/json")
.body("{\n \"currency\": \"EUR\",\n \"untaxed_amount\": 200,\n \"tax_amount\": 42,\n \"total\": 242,\n \"invoice_date\": \"2026-01-15\",\n \"due_date\": \"2026-02-14\",\n \"lines\": [\n {\n \"unit_price\": 100,\n \"quantity\": 2,\n \"untaxed_amount\": 200,\n \"tax_rate\": 21,\n \"tax_amount\": 42,\n \"total\": 242,\n \"account_number\": \"<accounting-account-number>\",\n \"tax_code\": \"<accounting-tax-code>\",\n \"line_number\": 1,\n \"unit_of_measure\": \"unit\",\n \"description\": \"Consulting services\",\n \"analytic_distribution\": []\n }\n ],\n \"invoice_number\": \"<string>\",\n \"reference\": \"INV-2026-0001\",\n \"payment_communication\": \"+++000/0000/00000+++\",\n \"customer_memo\": \"Thank you for your business.\",\n \"payment_term_id\": \"<accounting-payment-term-id>\",\n \"withholding_tax\": {\n \"tax_rate\": -19,\n \"tax_code\": \"<accounting-tax-code>\",\n \"tax_amount\": -38\n },\n \"partner_id\": \"<accounting-client-id>\",\n \"journal_id\": \"<accounting-journal-id>\",\n \"status\": \"posted\",\n \"pdf\": \"<string>\",\n \"pdf_name\": \"<string>\",\n \"currency_exchange_rate\": 1,\n \"invoice_correction\": {\n \"sale_invoice_correction_tax_code\": \"<accounting-tax-code>\",\n \"purchase_invoice_correction_tax_code\": \"<accounting-tax-code>\",\n \"invoice_correction_credit_account_number\": \"<accounting-account-number>\",\n \"invoice_correction_debit_account_number\": \"<accounting-account-number>\"\n },\n \"nl_payment_terms_split\": {\n \"g_account\": {\n \"amount\": 200,\n \"iban\": \"NL00INGB0000000000\"\n },\n \"n_account\": {\n \"amount\": 200,\n \"iban\": \"NL00INGB0000000000\"\n }\n },\n \"shipping_country\": \"BE\",\n \"partner_info\": {\n \"account_number\": \"<accounting-account-number>\",\n \"account_name\": \"Consulting services\"\n },\n \"start_date\": \"2026-01-01\",\n \"end_date\": \"2026-01-31\",\n \"payment_method_id\": \"<accounting-payment-method-id>\",\n \"delivery_date\": \"2026-01-15\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.chift.eu/consumers/{consumer_id}/accounting/invoices/multi-analytic-plans")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"currency\": \"EUR\",\n \"untaxed_amount\": 200,\n \"tax_amount\": 42,\n \"total\": 242,\n \"invoice_date\": \"2026-01-15\",\n \"due_date\": \"2026-02-14\",\n \"lines\": [\n {\n \"unit_price\": 100,\n \"quantity\": 2,\n \"untaxed_amount\": 200,\n \"tax_rate\": 21,\n \"tax_amount\": 42,\n \"total\": 242,\n \"account_number\": \"<accounting-account-number>\",\n \"tax_code\": \"<accounting-tax-code>\",\n \"line_number\": 1,\n \"unit_of_measure\": \"unit\",\n \"description\": \"Consulting services\",\n \"analytic_distribution\": []\n }\n ],\n \"invoice_number\": \"<string>\",\n \"reference\": \"INV-2026-0001\",\n \"payment_communication\": \"+++000/0000/00000+++\",\n \"customer_memo\": \"Thank you for your business.\",\n \"payment_term_id\": \"<accounting-payment-term-id>\",\n \"withholding_tax\": {\n \"tax_rate\": -19,\n \"tax_code\": \"<accounting-tax-code>\",\n \"tax_amount\": -38\n },\n \"partner_id\": \"<accounting-client-id>\",\n \"journal_id\": \"<accounting-journal-id>\",\n \"status\": \"posted\",\n \"pdf\": \"<string>\",\n \"pdf_name\": \"<string>\",\n \"currency_exchange_rate\": 1,\n \"invoice_correction\": {\n \"sale_invoice_correction_tax_code\": \"<accounting-tax-code>\",\n \"purchase_invoice_correction_tax_code\": \"<accounting-tax-code>\",\n \"invoice_correction_credit_account_number\": \"<accounting-account-number>\",\n \"invoice_correction_debit_account_number\": \"<accounting-account-number>\"\n },\n \"nl_payment_terms_split\": {\n \"g_account\": {\n \"amount\": 200,\n \"iban\": \"NL00INGB0000000000\"\n },\n \"n_account\": {\n \"amount\": 200,\n \"iban\": \"NL00INGB0000000000\"\n }\n },\n \"shipping_country\": \"BE\",\n \"partner_info\": {\n \"account_number\": \"<accounting-account-number>\",\n \"account_name\": \"Consulting services\"\n },\n \"start_date\": \"2026-01-01\",\n \"end_date\": \"2026-01-31\",\n \"payment_method_id\": \"<accounting-payment-method-id>\",\n \"delivery_date\": \"2026-01-15\"\n}"
response = http.request(request)
puts response.read_bodyCreate sale/purchase entry (Multiple plans)
Create a new sale/purchase entry with multiple analytic plans in the accounting
curl --request POST \
--url https://api.chift.eu/consumers/{consumer_id}/accounting/invoices/multi-analytic-plans \
--header 'Content-Type: application/json' \
--data '
{
"currency": "EUR",
"untaxed_amount": 200,
"tax_amount": 42,
"total": 242,
"invoice_date": "2026-01-15",
"due_date": "2026-02-14",
"lines": [
{
"unit_price": 100,
"quantity": 2,
"untaxed_amount": 200,
"tax_rate": 21,
"tax_amount": 42,
"total": 242,
"account_number": "<accounting-account-number>",
"tax_code": "<accounting-tax-code>",
"line_number": 1,
"unit_of_measure": "unit",
"description": "Consulting services",
"analytic_distribution": []
}
],
"invoice_number": "<string>",
"reference": "INV-2026-0001",
"payment_communication": "+++000/0000/00000+++",
"customer_memo": "Thank you for your business.",
"payment_term_id": "<accounting-payment-term-id>",
"withholding_tax": {
"tax_rate": -19,
"tax_code": "<accounting-tax-code>",
"tax_amount": -38
},
"partner_id": "<accounting-client-id>",
"journal_id": "<accounting-journal-id>",
"status": "posted",
"pdf": "<string>",
"pdf_name": "<string>",
"currency_exchange_rate": 1,
"invoice_correction": {
"sale_invoice_correction_tax_code": "<accounting-tax-code>",
"purchase_invoice_correction_tax_code": "<accounting-tax-code>",
"invoice_correction_credit_account_number": "<accounting-account-number>",
"invoice_correction_debit_account_number": "<accounting-account-number>"
},
"nl_payment_terms_split": {
"g_account": {
"amount": 200,
"iban": "NL00INGB0000000000"
},
"n_account": {
"amount": 200,
"iban": "NL00INGB0000000000"
}
},
"shipping_country": "BE",
"partner_info": {
"account_number": "<accounting-account-number>",
"account_name": "Consulting services"
},
"start_date": "2026-01-01",
"end_date": "2026-01-31",
"payment_method_id": "<accounting-payment-method-id>",
"delivery_date": "2026-01-15"
}
'import requests
url = "https://api.chift.eu/consumers/{consumer_id}/accounting/invoices/multi-analytic-plans"
payload = {
"currency": "EUR",
"untaxed_amount": 200,
"tax_amount": 42,
"total": 242,
"invoice_date": "2026-01-15",
"due_date": "2026-02-14",
"lines": [
{
"unit_price": 100,
"quantity": 2,
"untaxed_amount": 200,
"tax_rate": 21,
"tax_amount": 42,
"total": 242,
"account_number": "<accounting-account-number>",
"tax_code": "<accounting-tax-code>",
"line_number": 1,
"unit_of_measure": "unit",
"description": "Consulting services",
"analytic_distribution": []
}
],
"invoice_number": "<string>",
"reference": "INV-2026-0001",
"payment_communication": "+++000/0000/00000+++",
"customer_memo": "Thank you for your business.",
"payment_term_id": "<accounting-payment-term-id>",
"withholding_tax": {
"tax_rate": -19,
"tax_code": "<accounting-tax-code>",
"tax_amount": -38
},
"partner_id": "<accounting-client-id>",
"journal_id": "<accounting-journal-id>",
"status": "posted",
"pdf": "<string>",
"pdf_name": "<string>",
"currency_exchange_rate": 1,
"invoice_correction": {
"sale_invoice_correction_tax_code": "<accounting-tax-code>",
"purchase_invoice_correction_tax_code": "<accounting-tax-code>",
"invoice_correction_credit_account_number": "<accounting-account-number>",
"invoice_correction_debit_account_number": "<accounting-account-number>"
},
"nl_payment_terms_split": {
"g_account": {
"amount": 200,
"iban": "NL00INGB0000000000"
},
"n_account": {
"amount": 200,
"iban": "NL00INGB0000000000"
}
},
"shipping_country": "BE",
"partner_info": {
"account_number": "<accounting-account-number>",
"account_name": "Consulting services"
},
"start_date": "2026-01-01",
"end_date": "2026-01-31",
"payment_method_id": "<accounting-payment-method-id>",
"delivery_date": "2026-01-15"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
currency: 'EUR',
untaxed_amount: 200,
tax_amount: 42,
total: 242,
invoice_date: '2026-01-15',
due_date: '2026-02-14',
lines: [
{
unit_price: 100,
quantity: 2,
untaxed_amount: 200,
tax_rate: 21,
tax_amount: 42,
total: 242,
account_number: '<accounting-account-number>',
tax_code: '<accounting-tax-code>',
line_number: 1,
unit_of_measure: 'unit',
description: 'Consulting services',
analytic_distribution: []
}
],
invoice_number: '<string>',
reference: 'INV-2026-0001',
payment_communication: '+++000/0000/00000+++',
customer_memo: 'Thank you for your business.',
payment_term_id: '<accounting-payment-term-id>',
withholding_tax: {tax_rate: -19, tax_code: '<accounting-tax-code>', tax_amount: -38},
partner_id: '<accounting-client-id>',
journal_id: '<accounting-journal-id>',
status: 'posted',
pdf: '<string>',
pdf_name: '<string>',
currency_exchange_rate: 1,
invoice_correction: {
sale_invoice_correction_tax_code: '<accounting-tax-code>',
purchase_invoice_correction_tax_code: '<accounting-tax-code>',
invoice_correction_credit_account_number: '<accounting-account-number>',
invoice_correction_debit_account_number: '<accounting-account-number>'
},
nl_payment_terms_split: {
g_account: {amount: 200, iban: 'NL00INGB0000000000'},
n_account: {amount: 200, iban: 'NL00INGB0000000000'}
},
shipping_country: 'BE',
partner_info: {
account_number: '<accounting-account-number>',
account_name: 'Consulting services'
},
start_date: '2026-01-01',
end_date: '2026-01-31',
payment_method_id: '<accounting-payment-method-id>',
delivery_date: '2026-01-15'
})
};
fetch('https://api.chift.eu/consumers/{consumer_id}/accounting/invoices/multi-analytic-plans', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.chift.eu/consumers/{consumer_id}/accounting/invoices/multi-analytic-plans",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'currency' => 'EUR',
'untaxed_amount' => 200,
'tax_amount' => 42,
'total' => 242,
'invoice_date' => '2026-01-15',
'due_date' => '2026-02-14',
'lines' => [
[
'unit_price' => 100,
'quantity' => 2,
'untaxed_amount' => 200,
'tax_rate' => 21,
'tax_amount' => 42,
'total' => 242,
'account_number' => '<accounting-account-number>',
'tax_code' => '<accounting-tax-code>',
'line_number' => 1,
'unit_of_measure' => 'unit',
'description' => 'Consulting services',
'analytic_distribution' => [
]
]
],
'invoice_number' => '<string>',
'reference' => 'INV-2026-0001',
'payment_communication' => '+++000/0000/00000+++',
'customer_memo' => 'Thank you for your business.',
'payment_term_id' => '<accounting-payment-term-id>',
'withholding_tax' => [
'tax_rate' => -19,
'tax_code' => '<accounting-tax-code>',
'tax_amount' => -38
],
'partner_id' => '<accounting-client-id>',
'journal_id' => '<accounting-journal-id>',
'status' => 'posted',
'pdf' => '<string>',
'pdf_name' => '<string>',
'currency_exchange_rate' => 1,
'invoice_correction' => [
'sale_invoice_correction_tax_code' => '<accounting-tax-code>',
'purchase_invoice_correction_tax_code' => '<accounting-tax-code>',
'invoice_correction_credit_account_number' => '<accounting-account-number>',
'invoice_correction_debit_account_number' => '<accounting-account-number>'
],
'nl_payment_terms_split' => [
'g_account' => [
'amount' => 200,
'iban' => 'NL00INGB0000000000'
],
'n_account' => [
'amount' => 200,
'iban' => 'NL00INGB0000000000'
]
],
'shipping_country' => 'BE',
'partner_info' => [
'account_number' => '<accounting-account-number>',
'account_name' => 'Consulting services'
],
'start_date' => '2026-01-01',
'end_date' => '2026-01-31',
'payment_method_id' => '<accounting-payment-method-id>',
'delivery_date' => '2026-01-15'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.chift.eu/consumers/{consumer_id}/accounting/invoices/multi-analytic-plans"
payload := strings.NewReader("{\n \"currency\": \"EUR\",\n \"untaxed_amount\": 200,\n \"tax_amount\": 42,\n \"total\": 242,\n \"invoice_date\": \"2026-01-15\",\n \"due_date\": \"2026-02-14\",\n \"lines\": [\n {\n \"unit_price\": 100,\n \"quantity\": 2,\n \"untaxed_amount\": 200,\n \"tax_rate\": 21,\n \"tax_amount\": 42,\n \"total\": 242,\n \"account_number\": \"<accounting-account-number>\",\n \"tax_code\": \"<accounting-tax-code>\",\n \"line_number\": 1,\n \"unit_of_measure\": \"unit\",\n \"description\": \"Consulting services\",\n \"analytic_distribution\": []\n }\n ],\n \"invoice_number\": \"<string>\",\n \"reference\": \"INV-2026-0001\",\n \"payment_communication\": \"+++000/0000/00000+++\",\n \"customer_memo\": \"Thank you for your business.\",\n \"payment_term_id\": \"<accounting-payment-term-id>\",\n \"withholding_tax\": {\n \"tax_rate\": -19,\n \"tax_code\": \"<accounting-tax-code>\",\n \"tax_amount\": -38\n },\n \"partner_id\": \"<accounting-client-id>\",\n \"journal_id\": \"<accounting-journal-id>\",\n \"status\": \"posted\",\n \"pdf\": \"<string>\",\n \"pdf_name\": \"<string>\",\n \"currency_exchange_rate\": 1,\n \"invoice_correction\": {\n \"sale_invoice_correction_tax_code\": \"<accounting-tax-code>\",\n \"purchase_invoice_correction_tax_code\": \"<accounting-tax-code>\",\n \"invoice_correction_credit_account_number\": \"<accounting-account-number>\",\n \"invoice_correction_debit_account_number\": \"<accounting-account-number>\"\n },\n \"nl_payment_terms_split\": {\n \"g_account\": {\n \"amount\": 200,\n \"iban\": \"NL00INGB0000000000\"\n },\n \"n_account\": {\n \"amount\": 200,\n \"iban\": \"NL00INGB0000000000\"\n }\n },\n \"shipping_country\": \"BE\",\n \"partner_info\": {\n \"account_number\": \"<accounting-account-number>\",\n \"account_name\": \"Consulting services\"\n },\n \"start_date\": \"2026-01-01\",\n \"end_date\": \"2026-01-31\",\n \"payment_method_id\": \"<accounting-payment-method-id>\",\n \"delivery_date\": \"2026-01-15\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.chift.eu/consumers/{consumer_id}/accounting/invoices/multi-analytic-plans")
.header("Content-Type", "application/json")
.body("{\n \"currency\": \"EUR\",\n \"untaxed_amount\": 200,\n \"tax_amount\": 42,\n \"total\": 242,\n \"invoice_date\": \"2026-01-15\",\n \"due_date\": \"2026-02-14\",\n \"lines\": [\n {\n \"unit_price\": 100,\n \"quantity\": 2,\n \"untaxed_amount\": 200,\n \"tax_rate\": 21,\n \"tax_amount\": 42,\n \"total\": 242,\n \"account_number\": \"<accounting-account-number>\",\n \"tax_code\": \"<accounting-tax-code>\",\n \"line_number\": 1,\n \"unit_of_measure\": \"unit\",\n \"description\": \"Consulting services\",\n \"analytic_distribution\": []\n }\n ],\n \"invoice_number\": \"<string>\",\n \"reference\": \"INV-2026-0001\",\n \"payment_communication\": \"+++000/0000/00000+++\",\n \"customer_memo\": \"Thank you for your business.\",\n \"payment_term_id\": \"<accounting-payment-term-id>\",\n \"withholding_tax\": {\n \"tax_rate\": -19,\n \"tax_code\": \"<accounting-tax-code>\",\n \"tax_amount\": -38\n },\n \"partner_id\": \"<accounting-client-id>\",\n \"journal_id\": \"<accounting-journal-id>\",\n \"status\": \"posted\",\n \"pdf\": \"<string>\",\n \"pdf_name\": \"<string>\",\n \"currency_exchange_rate\": 1,\n \"invoice_correction\": {\n \"sale_invoice_correction_tax_code\": \"<accounting-tax-code>\",\n \"purchase_invoice_correction_tax_code\": \"<accounting-tax-code>\",\n \"invoice_correction_credit_account_number\": \"<accounting-account-number>\",\n \"invoice_correction_debit_account_number\": \"<accounting-account-number>\"\n },\n \"nl_payment_terms_split\": {\n \"g_account\": {\n \"amount\": 200,\n \"iban\": \"NL00INGB0000000000\"\n },\n \"n_account\": {\n \"amount\": 200,\n \"iban\": \"NL00INGB0000000000\"\n }\n },\n \"shipping_country\": \"BE\",\n \"partner_info\": {\n \"account_number\": \"<accounting-account-number>\",\n \"account_name\": \"Consulting services\"\n },\n \"start_date\": \"2026-01-01\",\n \"end_date\": \"2026-01-31\",\n \"payment_method_id\": \"<accounting-payment-method-id>\",\n \"delivery_date\": \"2026-01-15\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.chift.eu/consumers/{consumer_id}/accounting/invoices/multi-analytic-plans")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"currency\": \"EUR\",\n \"untaxed_amount\": 200,\n \"tax_amount\": 42,\n \"total\": 242,\n \"invoice_date\": \"2026-01-15\",\n \"due_date\": \"2026-02-14\",\n \"lines\": [\n {\n \"unit_price\": 100,\n \"quantity\": 2,\n \"untaxed_amount\": 200,\n \"tax_rate\": 21,\n \"tax_amount\": 42,\n \"total\": 242,\n \"account_number\": \"<accounting-account-number>\",\n \"tax_code\": \"<accounting-tax-code>\",\n \"line_number\": 1,\n \"unit_of_measure\": \"unit\",\n \"description\": \"Consulting services\",\n \"analytic_distribution\": []\n }\n ],\n \"invoice_number\": \"<string>\",\n \"reference\": \"INV-2026-0001\",\n \"payment_communication\": \"+++000/0000/00000+++\",\n \"customer_memo\": \"Thank you for your business.\",\n \"payment_term_id\": \"<accounting-payment-term-id>\",\n \"withholding_tax\": {\n \"tax_rate\": -19,\n \"tax_code\": \"<accounting-tax-code>\",\n \"tax_amount\": -38\n },\n \"partner_id\": \"<accounting-client-id>\",\n \"journal_id\": \"<accounting-journal-id>\",\n \"status\": \"posted\",\n \"pdf\": \"<string>\",\n \"pdf_name\": \"<string>\",\n \"currency_exchange_rate\": 1,\n \"invoice_correction\": {\n \"sale_invoice_correction_tax_code\": \"<accounting-tax-code>\",\n \"purchase_invoice_correction_tax_code\": \"<accounting-tax-code>\",\n \"invoice_correction_credit_account_number\": \"<accounting-account-number>\",\n \"invoice_correction_debit_account_number\": \"<accounting-account-number>\"\n },\n \"nl_payment_terms_split\": {\n \"g_account\": {\n \"amount\": 200,\n \"iban\": \"NL00INGB0000000000\"\n },\n \"n_account\": {\n \"amount\": 200,\n \"iban\": \"NL00INGB0000000000\"\n }\n },\n \"shipping_country\": \"BE\",\n \"partner_info\": {\n \"account_number\": \"<accounting-account-number>\",\n \"account_name\": \"Consulting services\"\n },\n \"start_date\": \"2026-01-01\",\n \"end_date\": \"2026-01-31\",\n \"payment_method_id\": \"<accounting-payment-method-id>\",\n \"delivery_date\": \"2026-01-15\"\n}"
response = http.request(request)
puts response.read_body- How do sales and purchase entries work? ↗
- What is analytical accounting? ↗
- How to select the right accounts in invoices? ↗
- How to use analytical plans and accounts in Chift? ↗
- What are the invoice amounts validation rules? ↗
Path Parameters
Query Parameters
Id of the accounting folder instance. A folder represents a legal entity within the system. Required when the multiple folders feature is enabled.
Forces financial period in which the invoice must be created. This will create the invoice in the forced financial period rather than the current period. The format is: mmYYYY.
Regroup lines by account number, tax code and analytic distribution in the accounting system.
true, false If set to true, Chift will not wait for the invoice to be processed to return, use this when you do not need the ID in the return value.Note that this might also change the output of the call.
Boolean flag indicating whether to force the use of the provided currency exchange rate instead of the rate used by the accounting software.
Body
Specifies the type of invoice
customer_invoice, customer_refund, supplier_invoice, supplier_refund Code (e.g., USD, EUR) of the currency used for invoice amounts.
"EUR"
Total amount of the invoice excluding taxes.
200
Total amount of tax applied to the invoice
42
Total amount of the invoice, including taxes (untaxed_amount + tax_amount).
242
Accounting date of the invoice (format: YYYY-MM-DD).
"2026-01-15"
Due date for payment or settlement (format: YYYY-MM-DD).
"2026-02-14"
Show child attributes
Show child attributes
Unique 'number' of the invoice instance in the accounting software. This is an internal reference number. if not specified, will be automatically generated according to the system’s numbering rules. It does not necessarily match the number displayed on an invoice.It is recommended to use this number for idempotency to prevent duplicate entries. Refer to the idempotency documentation in the Developer Guides for more details. On the purchase side some tools store the supplier's own invoice number here, so it is not necessarily unique across suppliers.
Optional reference field used to store an external or contextual identifier related to the entry. For purchase invoices, it typically contains the invoice number issued by the supplier. For sales invoices, it may reference a quote number or any other relevant document. Unlike number, this field is not subject to specific format or character restrictions and can hold free-form text.
"INV-2026-0001"
Field containing the payment reference or communication associated with the invoice (e.g., bank transfer reference, SEPA remittance message). Often used for reconciliation purposes.
"+++000/0000/00000+++"
Internal or external note associated with the invoice, typically intended for the customer. Can include additional context, comments, or special instructions related to the transaction.
"Thank you for your business."
Technical ID of the payment term associated with the invoice.
"<accounting-payment-term-id>"
Withholding-tax information for the invoice. A withholding tax is paid to the government directly by the payer rather than by the recipient: the payer deducts it before paying the recipient, reducing the amount received (e.g. an employer remitting salary tax). In Chift use cases this is mainly seen in Spain.
Show child attributes
Show child attributes
Id of the related third party (supplier or customer) in the accounting software. Used to link the invoice to the corresponding client or supplier record in the accounting system.
1"<accounting-client-id>"
Identifier of the journal for the invoice. If not provided, the journal will be set automatically if only one exists; otherwise, an error will be thrown.
"<accounting-journal-id>"
string indicating if invoice has been posted (finalized) in the accounting system.
draft, posted Base 64 string representing the PDF attached to the invoice.
A name for the PDF file to be created for accounting software that support it.
1 - 200^[a-zA-Z0-9\-_ ]{1,196}(?:.pdf)?$Exchange rate from the invoice currency to the folder's base currency, applicable at the date of the invoice. Required when the invoice currency is different from the folder's default currency.
Information used to add a correction line when roundings have an impact on the total amount of the invoice.
Show child attributes
Show child attributes
NL only - For Dutch split payment compliance (G/N-rekening): use to specify how invoice amounts are divided between a blocked (G) and normal (N) account in high-risk sectors (e.g., construction, staffing).
Show child attributes
Show child attributes
Format: ISO 3166-1 codes.
"BE"
Information about the client/supplier that must be created. In some tools we cannot create a client/supplier by API. Missing clients/suppliers must be explicitly provided during the invoice creation and will be automatically created by the accounting software. This is for example the case for Tiime.
Show child attributes
Show child attributes
Start date of the period covered by the invoice (format: YYYY-MM-DD). This field should be used when the invoice relates to prepaid income or expenses (accruals and deferrals), indicating when the covered period begins.
"2026-01-01"
End date of the period covered by the invoice (format: YYYY-MM-DD). This field should be used when the invoice relates to prepaid income or expenses (accruals and deferrals), indicating when the covered period ends.
"2026-01-31"
Technical ID of the payment method in the accounting system. This is an indication of the payment method that will be used to pay the invoice. It is not necessarily the payment method that will eventually be used to pay the invoice.
"<accounting-payment-method-id>"
Date on which the goods were delivered or the service was provided (format: YYYY-MM-DD). Used to assign the invoice and its tax to the correct period when it differs from the invoice date.
"2026-01-15"
Response
Successful Response
Specifies the type of invoice
customer_invoice, customer_refund, supplier_invoice, supplier_refund Code (e.g., USD, EUR) of the currency used for invoice amounts.
"EUR"
Total amount of the invoice excluding taxes.
200
Total amount of tax applied to the invoice
42
Total amount of the invoice, including taxes (untaxed_amount + tax_amount).
242
Document date of the invoice. It can differ from the accounting date/period that determines the book year. It is automatically set to '1970-01-01' if the value is empty in the accounting system.
"2026-01-15"
Last due date of the invoice, normally on or after the invoice date. The invoice date is used when this information is not given by the software.
"2026-02-14"
Show child attributes
Show child attributes
Unique 'number' of the invoice instance in the accounting software. This is an internal reference number. if not specified, will be automatically generated according to the system’s numbering rules. It does not necessarily match the number displayed on an invoice.It is recommended to use this number for idempotency to prevent duplicate entries. Refer to the idempotency documentation in the Developer Guides for more details. On the purchase side some tools store the supplier's own invoice number here, so it is not necessarily unique across suppliers.
Optional reference field used to store an external or contextual identifier related to the entry. For purchase invoices, it typically contains the invoice number issued by the supplier. For sales invoices, it may reference a quote number or any other relevant document. Unlike number, this field is not subject to specific format or character restrictions and can hold free-form text.
"INV-2026-0001"
Field containing the payment reference or communication associated with the invoice (e.g., bank transfer reference, SEPA remittance message). Often used for reconciliation purposes.
"+++000/0000/00000+++"
Internal or external note associated with the invoice, typically intended for the customer. Can include additional context, comments, or special instructions related to the transaction.
"Thank you for your business."
Technical ID of the payment term associated with the invoice.
"<accounting-payment-term-id>"
Withholding-tax information for the invoice. A withholding tax is paid to the government directly by the payer rather than by the recipient: the payer deducts it before paying the recipient, reducing the amount received (e.g. an employer remitting salary tax). In Chift use cases this is mainly seen in Spain.
Show child attributes
Show child attributes
"<this-invoice-id>"
Date on which the goods were delivered or the service was provided (format: YYYY-MM-DD), when the accounting system exposes it.
"2026-01-15"
"<accounting-client-id>"
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.
"<accounting-journal-id>"
Show child attributes
Show child attributes
cancelled, draft, posted, paid The last time the invoice has been updated.
"2026-01-15T10:30:00Z"
Extra information about the partner (client/supplier) linked to the invoice. To ensure this information is returned, you need to use the include_partner_info query parameter.
Show child attributes
Show child attributes
List of all due dates of the invoice.
Show child attributes
Show child attributes
Indicates whether a file attachment (e.g. PDF or image) is linked to this invoice and how to retrieve it. Check the status field: 'yes' means a direct download URL is available in the attachments array; 'yes_to_request' means the file exists but must be fetched separately via GET /accounting/attachments?type=invoice&document_id={id}, which returns the file as a base64-encoded string. 'no' means no attachment is linked. 'unknown' means the connector does not support this.
Show child attributes
Show child attributes
Additional information about the invoice.
Show child attributes
Show child attributes
Technical ID of the payment method in the accounting system. This is the payment method currently linked to the invoice. It is not necessarily the payment method that will eventually be used to pay the invoice.
"<accounting-payment-method-id>"
Approval status of the invoice.
unknown, pending, approved, rejected