Delete Payment Term
Deletes a payment term.
HTTP Request
- URL:
/paymentTerms/{id} - Method:
DELETE - Headers:
accessToken: Required. Your API access token.
- Required scope:
READ_ORDERorREAD_WRITE_ORDER
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | String | Required. The ID of the payment term to delete. |
cURL Example
curl --location --request DELETE '<BASE_URL>/paymentTerms/67a46366869ddc960b432623' \
--header 'accessToken: <ACCESS_TOKEN>'
Response
- 200 OK: The payment term was deleted successfully.
- 400 Bad Request: The access token is missing or invalid, or the ID is not valid.
Sample JSON Response
{
"success": true,
"message": "Payment term deleted successfully"
}
Response Details
| Field | Type | Description |
|---|---|---|
success | Boolean | Whether the request was successful. |
message | String | Confirmation message. |
Notes
- Deleting a payment term also removes it from all companies it was assigned to.