Skip to main content
POST
Error

Authorizations

authorization
string
header
required
X-Workspace-ID
string
header
required

Body

application/json

Exactly one of percent / amount.

name
string
required

Unique per workspace (case-insensitive).

trigger
enum<string>
required
Available options:
order,
delivery,
invoice
description
string | null
percent
string

Of the order total; > 0 and ≤ 100, at most 4 decimals.

amount
string

A fixed amount (read in the order's currency); > 0, at most 2 decimals.

due_days
integer
Required range: 0 <= x <= 3650
is_default
boolean

Response

Created

A workspace payment term — one reusable payment line (a percentage of the order total or a fixed amount, due due_days after a trigger). Contacts companies pick an ordered list of terms; the ones flagged is_default apply to suppliers without their own. Purchase orders copy the lines, so editing or deleting a term never changes existing orders.

id
integer
required
name
string
required
Example:

"Deposit 30% on order"

term_type
enum<string>
required

Derived — which of percent / amount is set.

Available options:
percentage,
amount
trigger
enum<string>
required

What starts the due_days clock: order = the purchase order is issued, delivery = goods are received (the latest receipt), invoice = the invoice date.

Available options:
order,
delivery,
invoice
due_days
integer
required
Required range: x >= 0
is_default
boolean
required

Part of the workspace default terms (any number; copied in workspace order).

position
integer
required
description
string | null
percent
string | null

Of the order total, 4 decimals.

Example:

"30.0000"

amount
string | null

A fixed amount, 2 decimals, read in the currency of the order it is copied onto.

created_by_id
integer | null
created_at
string<date-time>
updated_at
string<date-time>