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
| Parameter | Type | Description |
|---|---|---|
id | String | Required. 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
| Field | Type | Description |
|---|---|---|
id | String | Unique identifier of the payment term. |
name | String | Name of the payment term. |
status | Boolean | Whether the payment term is active. Default is true. |
dueType | String | net (due a number of days later) or fulfillment (due when the order is fulfilled). Default is net. |
paymentDueDays | Number | Number of days until payment is due. Default is 0. |
createdAt | String | Date and time the payment term was created (ISO 8601). |
updatedAt | String | Date and time the payment term was last updated (ISO 8601). |
Notes
- If no payment term matches the ID,
datais an empty object.