APIPayment term

Get payment terms

GET
/public/v1/payment-terms

Get the payment terms configured for your company. A payment term is the agreed timeframe a customer has to pay — for example "Net 30" means payment is due 30 days after the order date.

Use it to resolve the payment term applied to an order or invoice, or to pick a valid term id for an integration that sets one. Each term carries: • name — the term's display label (e.g. "Net 30"), unique within your company. • days — a non-negative whole number of days added to compute the due date. 0 means due the same day (immediately). The due datetime is the order's start date plus days, set to time_of_day. The start date is normally the order date, but is the delivery date if your company is configured to date its due dates from delivery. • time_of_day — the local clock time the term becomes due on the due date, as HH:MM:SS on a 24-hour clock (e.g. "17:00:00" = 5 PM). It is interpreted in your company's configured time zone, not UTC. • locked — true marks a built-in system term whose length (days) is fixed and which cannot be deleted; only its time_of_day is changeable. false marks a fully editable, user-created term. Independently of locked, any term (locked or not) currently chosen as the company's default order or default purchase payment term cannot be deleted while it holds that role — but this endpoint does not expose which term is a default.

Returns every payment term for your company in a single response — this endpoint is not paginated, so next_page is always null and there are no filter or page parameters. Order of the returned terms is not guaranteed.

Note: This endpoint returns eventually consistent data — a term you just created, edited, or deleted elsewhere may take up to 1 second to appear or disappear here.

Required permission: settings_permissions_payment_terms.

Authorization

Bearer
headerAuthorizationBearer <token>

API token generated in Distru (Settings → Distru API). Send it on every request as Authorization: Bearer YOUR_API_TOKEN.

Response Body

A list of payment terms

*/*
  1. response

A collection of Payment Terms

data?array<>

Payment Terms

next_page?string

URL for the next page of results; null when there is no next page

Example Request
curl -X GET 'https://app.distru.com/public/v1/payment-terms'
Example Response
{  "data": [    {      "days": 30,      "id": "00000000-0000-0000-0000-000000000001",      "inserted_datetime": "2026-08-24T16:01:03.093446Z",      "locked": false,      "name": "Net 30",      "time_of_day": "17:00:00",      "updated_datetime": "2026-08-24T16:01:03.093446Z"    }  ],  "next_page": null}