Create an expense
curl --request POST \
--url https://api.chift.eu/consumers/{consumer_id}/accounting/expenses \
--header 'Content-Type: application/json' \
--data '
{
"employee_id": "<accounting-employee-id>",
"total": 242,
"untaxed_amount": 200,
"tax_amount": 42,
"currency": "EUR",
"date": "2026-01-15",
"lines": [
{
"total": 242,
"untaxed_amount": 200,
"tax_amount": 42,
"category_id": "<accounting-expense-category-id>",
"tax_rate": 21,
"tax_id": "<accounting-tax-code>",
"description": "Office supplies",
"analytic_distribution": []
}
],
"reference": "EXP-2026-0001",
"number": "EXP-2026-0001",
"currency_exchange_rate": 1,
"pdf": "<string>",
"pdf_name": "<string>"
}
'import requests
url = "https://api.chift.eu/consumers/{consumer_id}/accounting/expenses"
payload = {
"employee_id": "<accounting-employee-id>",
"total": 242,
"untaxed_amount": 200,
"tax_amount": 42,
"currency": "EUR",
"date": "2026-01-15",
"lines": [
{
"total": 242,
"untaxed_amount": 200,
"tax_amount": 42,
"category_id": "<accounting-expense-category-id>",
"tax_rate": 21,
"tax_id": "<accounting-tax-code>",
"description": "Office supplies",
"analytic_distribution": []
}
],
"reference": "EXP-2026-0001",
"number": "EXP-2026-0001",
"currency_exchange_rate": 1,
"pdf": "<string>",
"pdf_name": "<string>"
}
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({
employee_id: '<accounting-employee-id>',
total: 242,
untaxed_amount: 200,
tax_amount: 42,
currency: 'EUR',
date: '2026-01-15',
lines: [
{
total: 242,
untaxed_amount: 200,
tax_amount: 42,
category_id: '<accounting-expense-category-id>',
tax_rate: 21,
tax_id: '<accounting-tax-code>',
description: 'Office supplies',
analytic_distribution: []
}
],
reference: 'EXP-2026-0001',
number: 'EXP-2026-0001',
currency_exchange_rate: 1,
pdf: '<string>',
pdf_name: '<string>'
})
};
fetch('https://api.chift.eu/consumers/{consumer_id}/accounting/expenses', 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/expenses",
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([
'employee_id' => '<accounting-employee-id>',
'total' => 242,
'untaxed_amount' => 200,
'tax_amount' => 42,
'currency' => 'EUR',
'date' => '2026-01-15',
'lines' => [
[
'total' => 242,
'untaxed_amount' => 200,
'tax_amount' => 42,
'category_id' => '<accounting-expense-category-id>',
'tax_rate' => 21,
'tax_id' => '<accounting-tax-code>',
'description' => 'Office supplies',
'analytic_distribution' => [
]
]
],
'reference' => 'EXP-2026-0001',
'number' => 'EXP-2026-0001',
'currency_exchange_rate' => 1,
'pdf' => '<string>',
'pdf_name' => '<string>'
]),
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/expenses"
payload := strings.NewReader("{\n \"employee_id\": \"<accounting-employee-id>\",\n \"total\": 242,\n \"untaxed_amount\": 200,\n \"tax_amount\": 42,\n \"currency\": \"EUR\",\n \"date\": \"2026-01-15\",\n \"lines\": [\n {\n \"total\": 242,\n \"untaxed_amount\": 200,\n \"tax_amount\": 42,\n \"category_id\": \"<accounting-expense-category-id>\",\n \"tax_rate\": 21,\n \"tax_id\": \"<accounting-tax-code>\",\n \"description\": \"Office supplies\",\n \"analytic_distribution\": []\n }\n ],\n \"reference\": \"EXP-2026-0001\",\n \"number\": \"EXP-2026-0001\",\n \"currency_exchange_rate\": 1,\n \"pdf\": \"<string>\",\n \"pdf_name\": \"<string>\"\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/expenses")
.header("Content-Type", "application/json")
.body("{\n \"employee_id\": \"<accounting-employee-id>\",\n \"total\": 242,\n \"untaxed_amount\": 200,\n \"tax_amount\": 42,\n \"currency\": \"EUR\",\n \"date\": \"2026-01-15\",\n \"lines\": [\n {\n \"total\": 242,\n \"untaxed_amount\": 200,\n \"tax_amount\": 42,\n \"category_id\": \"<accounting-expense-category-id>\",\n \"tax_rate\": 21,\n \"tax_id\": \"<accounting-tax-code>\",\n \"description\": \"Office supplies\",\n \"analytic_distribution\": []\n }\n ],\n \"reference\": \"EXP-2026-0001\",\n \"number\": \"EXP-2026-0001\",\n \"currency_exchange_rate\": 1,\n \"pdf\": \"<string>\",\n \"pdf_name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.chift.eu/consumers/{consumer_id}/accounting/expenses")
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 \"employee_id\": \"<accounting-employee-id>\",\n \"total\": 242,\n \"untaxed_amount\": 200,\n \"tax_amount\": 42,\n \"currency\": \"EUR\",\n \"date\": \"2026-01-15\",\n \"lines\": [\n {\n \"total\": 242,\n \"untaxed_amount\": 200,\n \"tax_amount\": 42,\n \"category_id\": \"<accounting-expense-category-id>\",\n \"tax_rate\": 21,\n \"tax_id\": \"<accounting-tax-code>\",\n \"description\": \"Office supplies\",\n \"analytic_distribution\": []\n }\n ],\n \"reference\": \"EXP-2026-0001\",\n \"number\": \"EXP-2026-0001\",\n \"currency_exchange_rate\": 1,\n \"pdf\": \"<string>\",\n \"pdf_name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"employee_id": "<accounting-employee-id>",
"total": 242,
"untaxed_amount": 200,
"tax_amount": 42,
"currency": "EUR",
"date": "2026-01-15",
"lines": [
{
"total": 242,
"untaxed_amount": 200,
"tax_amount": 42,
"category_id": "<accounting-expense-category-id>",
"tax_rate": 21,
"tax_id": "<accounting-tax-code>",
"description": "Office supplies",
"analytic_distribution": []
}
],
"id": "<this-expense-id>",
"reference": "EXP-2026-0001",
"number": "EXP-2026-0001",
"currency_exchange_rate": 1,
"pdf": "<string>",
"pdf_name": "<string>"
}{
"message": "Error while trying to perform your request",
"status": "error"
}{
"message": "Validation error",
"status": "error",
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Expenses
Create an expense
deprecated
Creates a new employee expense claim in the accounting system and returns the created record.
POST
/
consumers
/
{consumer_id}
/
accounting
/
expenses
Create an expense
curl --request POST \
--url https://api.chift.eu/consumers/{consumer_id}/accounting/expenses \
--header 'Content-Type: application/json' \
--data '
{
"employee_id": "<accounting-employee-id>",
"total": 242,
"untaxed_amount": 200,
"tax_amount": 42,
"currency": "EUR",
"date": "2026-01-15",
"lines": [
{
"total": 242,
"untaxed_amount": 200,
"tax_amount": 42,
"category_id": "<accounting-expense-category-id>",
"tax_rate": 21,
"tax_id": "<accounting-tax-code>",
"description": "Office supplies",
"analytic_distribution": []
}
],
"reference": "EXP-2026-0001",
"number": "EXP-2026-0001",
"currency_exchange_rate": 1,
"pdf": "<string>",
"pdf_name": "<string>"
}
'import requests
url = "https://api.chift.eu/consumers/{consumer_id}/accounting/expenses"
payload = {
"employee_id": "<accounting-employee-id>",
"total": 242,
"untaxed_amount": 200,
"tax_amount": 42,
"currency": "EUR",
"date": "2026-01-15",
"lines": [
{
"total": 242,
"untaxed_amount": 200,
"tax_amount": 42,
"category_id": "<accounting-expense-category-id>",
"tax_rate": 21,
"tax_id": "<accounting-tax-code>",
"description": "Office supplies",
"analytic_distribution": []
}
],
"reference": "EXP-2026-0001",
"number": "EXP-2026-0001",
"currency_exchange_rate": 1,
"pdf": "<string>",
"pdf_name": "<string>"
}
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({
employee_id: '<accounting-employee-id>',
total: 242,
untaxed_amount: 200,
tax_amount: 42,
currency: 'EUR',
date: '2026-01-15',
lines: [
{
total: 242,
untaxed_amount: 200,
tax_amount: 42,
category_id: '<accounting-expense-category-id>',
tax_rate: 21,
tax_id: '<accounting-tax-code>',
description: 'Office supplies',
analytic_distribution: []
}
],
reference: 'EXP-2026-0001',
number: 'EXP-2026-0001',
currency_exchange_rate: 1,
pdf: '<string>',
pdf_name: '<string>'
})
};
fetch('https://api.chift.eu/consumers/{consumer_id}/accounting/expenses', 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/expenses",
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([
'employee_id' => '<accounting-employee-id>',
'total' => 242,
'untaxed_amount' => 200,
'tax_amount' => 42,
'currency' => 'EUR',
'date' => '2026-01-15',
'lines' => [
[
'total' => 242,
'untaxed_amount' => 200,
'tax_amount' => 42,
'category_id' => '<accounting-expense-category-id>',
'tax_rate' => 21,
'tax_id' => '<accounting-tax-code>',
'description' => 'Office supplies',
'analytic_distribution' => [
]
]
],
'reference' => 'EXP-2026-0001',
'number' => 'EXP-2026-0001',
'currency_exchange_rate' => 1,
'pdf' => '<string>',
'pdf_name' => '<string>'
]),
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/expenses"
payload := strings.NewReader("{\n \"employee_id\": \"<accounting-employee-id>\",\n \"total\": 242,\n \"untaxed_amount\": 200,\n \"tax_amount\": 42,\n \"currency\": \"EUR\",\n \"date\": \"2026-01-15\",\n \"lines\": [\n {\n \"total\": 242,\n \"untaxed_amount\": 200,\n \"tax_amount\": 42,\n \"category_id\": \"<accounting-expense-category-id>\",\n \"tax_rate\": 21,\n \"tax_id\": \"<accounting-tax-code>\",\n \"description\": \"Office supplies\",\n \"analytic_distribution\": []\n }\n ],\n \"reference\": \"EXP-2026-0001\",\n \"number\": \"EXP-2026-0001\",\n \"currency_exchange_rate\": 1,\n \"pdf\": \"<string>\",\n \"pdf_name\": \"<string>\"\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/expenses")
.header("Content-Type", "application/json")
.body("{\n \"employee_id\": \"<accounting-employee-id>\",\n \"total\": 242,\n \"untaxed_amount\": 200,\n \"tax_amount\": 42,\n \"currency\": \"EUR\",\n \"date\": \"2026-01-15\",\n \"lines\": [\n {\n \"total\": 242,\n \"untaxed_amount\": 200,\n \"tax_amount\": 42,\n \"category_id\": \"<accounting-expense-category-id>\",\n \"tax_rate\": 21,\n \"tax_id\": \"<accounting-tax-code>\",\n \"description\": \"Office supplies\",\n \"analytic_distribution\": []\n }\n ],\n \"reference\": \"EXP-2026-0001\",\n \"number\": \"EXP-2026-0001\",\n \"currency_exchange_rate\": 1,\n \"pdf\": \"<string>\",\n \"pdf_name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.chift.eu/consumers/{consumer_id}/accounting/expenses")
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 \"employee_id\": \"<accounting-employee-id>\",\n \"total\": 242,\n \"untaxed_amount\": 200,\n \"tax_amount\": 42,\n \"currency\": \"EUR\",\n \"date\": \"2026-01-15\",\n \"lines\": [\n {\n \"total\": 242,\n \"untaxed_amount\": 200,\n \"tax_amount\": 42,\n \"category_id\": \"<accounting-expense-category-id>\",\n \"tax_rate\": 21,\n \"tax_id\": \"<accounting-tax-code>\",\n \"description\": \"Office supplies\",\n \"analytic_distribution\": []\n }\n ],\n \"reference\": \"EXP-2026-0001\",\n \"number\": \"EXP-2026-0001\",\n \"currency_exchange_rate\": 1,\n \"pdf\": \"<string>\",\n \"pdf_name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"employee_id": "<accounting-employee-id>",
"total": 242,
"untaxed_amount": 200,
"tax_amount": 42,
"currency": "EUR",
"date": "2026-01-15",
"lines": [
{
"total": 242,
"untaxed_amount": 200,
"tax_amount": 42,
"category_id": "<accounting-expense-category-id>",
"tax_rate": 21,
"tax_id": "<accounting-tax-code>",
"description": "Office supplies",
"analytic_distribution": []
}
],
"id": "<this-expense-id>",
"reference": "EXP-2026-0001",
"number": "EXP-2026-0001",
"currency_exchange_rate": 1,
"pdf": "<string>",
"pdf_name": "<string>"
}{
"message": "Error while trying to perform your request",
"status": "error"
}{
"message": "Validation error",
"status": "error",
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}