Skip to main content
POST
/
consumers
/
{consumer_id}
/
accounting
/
expenses
Create an expense
curl --request POST \
  --url https://api.chift.eu/consumers/{consumer_id}/accounting/expenses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "employee_id": "<string>",
  "total": 123,
  "untaxed_amount": 123,
  "tax_amount": 123,
  "reference": "<string>",
  "number": "<string>",
  "currency": "<string>",
  "currency_exchange_rate": 123,
  "date": "2023-12-25",
  "pdf": "<string>",
  "lines": [
    {
      "total": 123,
      "untaxed_amount": 123,
      "tax_amount": 123,
      "description": "<string>",
      "account_number": "<string>",
      "tax_rate": 123,
      "tax_id": "<string>"
    }
  ]
}'
{
  "employee_id": "<string>",
  "total": 123,
  "untaxed_amount": 123,
  "tax_amount": 123,
  "reference": "<string>",
  "number": "<string>",
  "currency": "<string>",
  "currency_exchange_rate": 123,
  "date": "2023-12-25",
  "pdf": "<string>",
  "lines": [
    {
      "total": 123,
      "untaxed_amount": 123,
      "tax_amount": 123,
      "description": "<string>",
      "account_number": "<string>",
      "tax_rate": 123,
      "tax_id": "<string>"
    }
  ],
  "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

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.

Body

application/json
employee_id
string
required

Employee identifier in the accounting system.

total
number
required

Total amount including taxes for the expense.

untaxed_amount
number
required

Total untaxed amount for the expense.

tax_amount
number
required

Total tax amount for the expense.

currency
string
required

Currency of the expense (e.g., EUR, USD).

date
string<date>
required

Expense date.

lines
ExpenseLineItem · object[]
required

Expense lines.

Minimum length: 1
reference
string | null

External reference.

number
string | null

Unique number for idempotency in the accounting system.

currency_exchange_rate
number | null
default:1

Exchange rate at expense date if currency differs from folder currency. Must be positive if provided.

pdf
string | null

Base64 PDF attachment of the expense document.

Response

Successful Response

employee_id
string
required

Employee identifier in the accounting system.

total
number
required

Total amount including taxes for the expense.

untaxed_amount
number
required

Total untaxed amount for the expense.

tax_amount
number
required

Total tax amount for the expense.

currency
string
required

Currency of the expense (e.g., EUR, USD).

date
string<date>
required

Expense date.

lines
ExpenseLineItem · object[]
required

Expense lines.

Minimum length: 1
id
string
required

Unique id of the expense in the accounting system.

reference
string | null

External reference.

number
string | null

Unique number for idempotency in the accounting system.

currency_exchange_rate
number | null
default:1

Exchange rate at expense date if currency differs from folder currency. Must be positive if provided.

pdf
string | null

Base64 PDF attachment of the expense document.

I