Skip to main content

Get Payment Term by ID

Retrieves the details of a single payment term.

HTTP Request​

  • URL: /paymentTerms/{id}
  • Method: GET
  • Headers:
    • accessToken: Required. Your API access token.
  • Required scope: READ_ORDER

Path Parameters​

ParameterTypeDescription
idStringRequired. The ID of the payment term.

cURL Example​

curl --location '<BASE_URL>/paymentTerms/67a1eeba9269290064a159a4' \
--header 'accessToken: <ACCESS_TOKEN>'

Response​

  • 200 OK: The payment term was returned successfully.
  • 400 Bad Request: The access token is missing or invalid, the token does not have the required scope, or the ID is not valid.

Sample JSON Response​

{
"success": true,
"data": {
"id": "67a1eeba9269290064a159a4",
"name": "Net 30",
"status": true,
"dueType": "net",
"paymentDueDays": 30,
"createdAt": "2025-02-04T10:40:58.825Z",
"updatedAt": "2025-02-04T10:40:58.825Z"
}
}

Response Details​

Payment Term Data​

FieldTypeDescription
idStringUnique identifier of the payment term.
nameStringName of the payment term.
statusBooleanWhether the payment term is active. Default is true.
dueTypeStringnet (due a number of days later) or fulfillment (due when the order is fulfilled). Default is net.
paymentDueDaysNumberNumber of days until payment is due. Default is 0.
createdAtStringDate and time the payment term was created (ISO 8601).
updatedAtStringDate and time the payment term was last updated (ISO 8601).

Notes​

  • If no payment term matches the ID, data is an empty object.