Pereiti prie pagrindinio turinio
payments

Create /payments

Create a payment. Required: rel_type (invoice, pre_invoice, or expense), document (related document UUID), total_amount, payment_mode. Optional: date, note. Returns record with the detail projection. Client notification emails are not sent for API creates.

POST
/payments
Authorizationstringheaderprivaloma

API key (Bearer token) created in Setup → API & MCP.

Turinys

application/json
datestring

Payment date (Y-m-d). Defaults to today on create when omitted.

documentstringprivaloma

UUID of the related invoice, pre-invoice, or expense (must match rel_type).

notestring

Payment note.

payment_modestringprivaloma

Payment mode ID from tenant payment modes.

rel_typestringprivaloma

Payment relation type: invoice, pre_invoice, or expense.

total_amountstringprivaloma

Total paid amount.

Atsakymas

application/json

Success

recordobject

Fields enabled for this documentation instance (projection enabled: feature, option, subdomain, closures) plus account-level form field visibility. Role- and user-level field overrides are not applied here, so an API key whose staff user has such overrides may receive fewer fields. A disabled field is omitted from the response object entirely; a present key with a null value means the record simply has no value.