Skip to main content

Delete Payment Term

Deletes a payment term.

HTTP Request​

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

Path Parameters​

ParameterTypeDescription
idStringRequired. 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​

FieldTypeDescription
successBooleanWhether the request was successful.
messageStringConfirmation message.

Notes​

  • Deleting a payment term also removes it from all companies it was assigned to.