Create payment term

POST/api/v1/payment-terms

Create a new payment term.

Operation ID: create_payment_term_api_v1_payment_terms_post·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Request body

namestringrequired

Display name (e.g., 'Net 30')

days_until_dueintegerrequired

Days until payment is due

discount_percentnumber | string

Early payment discount percentage

discount_daysinteger

Days to pay to receive discount

is_defaultboolean

Set as default payment term

Responses

201Successful Response

successboolean
messagestring
codestring
dataPaymentTermResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject