(Quick Reference)
Service: Delete a tax
Description: Returns a json response.
Method: DELETE
URL:
https://BASE_URL/api/VERSION/taxes/{id}
Parameters:
Name | Description | Type | Required | Example values |
---|
id | The numerical ID of the desired tax | Long | yes | 123 |
URL with external_id:
https://BASE_URL/api/VERSION/taxes/reference/{itemListId}/{itemId}
Parameters:
Name | Description | Type | Required | Examples values |
---|
itemId | reference of the item | String | No | eliteBook_820 |
taxListId | reference of the tax list | String | Yes | TL-001 |
Success Output
Status: HTTP/1.1 200 OK
{
"success": "true",
"success_description": "Instance deleted successfully"
}
Failure Output
Status: HTTP/1.1 400 Bad Request
{
"error": "delete_failed",
"error_description": "Failed to delete instance."
}
Status: HTTP/1.1 404 Not Found
{
"error": "not_found",
"error_description": "The tax with the id 70 doesn't exist."
}