Skip to main content
POST

Authorizations

X-API-Key
string
header
required

Integration API Key (Integrations → New Integration).

Headers

Idempotency-Key
string

Optional. Unique key per operation (max. 100 characters, valid for 24 h per integration). A retry with the same key and the same body returns the original response (header Idempotent-Replayed: true) without repeating the operation; with a different body, or while the first is still in progress, it returns 409.

Maximum string length: 100

Body

application/json
payment_method_id
string<uuid>
required

Payment method (GET /payment-methods).

payment_date
string<date>
required

Payment date.

bank_id
string<uuid>

Bank (GET /treasury/banks).

cost_center_id
string<uuid>

Cost center of the payment (leaf and active; GET /accounting/cost-centers). If missing, that of the document. Only applied to income statement account lines when posting.

reference_number
string

Reference (max. 255).

notes
string

Notes (max. 500).

branch_id
string<uuid>

Required together with the third party (automatic mode).

amount
number

Amount to distribute (automatic mode).

Required range: x > 0
customer_id
string<uuid>

Customer (automatic mode, instead of allocations).

petty_cash_id
string<uuid>

Petty cash that receives the collection (GET /treasury/petty-cashes). Only with cash method and without bank_id.

allocations
object[]

Amount per invoice (or use customer_id).

Required array length: 1 - 200 elements

Response

Collection applied

status
boolean
required
Example:

true

data
object
required