Update Payment Term
Updates a payment term. Fields left out are unchanged. instalments replaces the existing instalments, and an empty array turns the term back into a single due date. Send clear_discount to remove the early-payment discount. Set is_active to false to retire a term.
Documents keep the schedule they were given when the term was applied, so editing or deactivating a term does not change existing invoices or bills.
Requires the can_modify_payment_term permission on the key owner’s role. Available when the Invoices or Bills service is enabled for the workspace.
Keys: secret key only.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
Request
Replaces the early-payment discount.
Layaway: the customer pays the instalments before the goods are released. Needs at least two instalments and no discount. Used on draft orders and order requests, not on invoices. Send false to turn layaway off.
Layaway only: the instalment after which the goods are released and the order is invoiced (1 = after the first). Defaults to the last instalment.
Send true to remove the early-payment discount.

