(Quick Reference) Service: Delete a price

Description: Returns a json response.

Method: DELETE

URL:

https://BASE_URL/api/VERSION/prices/{id}

Parameters:

NameDescriptionTypeRequiredExample values
idThe numerical ID of the desired priceLongyes123

URL with external_id:

https://BASE_URL/api/VERSION/prices/reference/{itemId}/{unitId}/{priceListId}

Parameters:

NameDescriptionTypeRequiredExamples values
itemIdreference of the itemStringYeseliteBook_820
unitIdreference of the unitStringYesPiéce
priceListIdreference of the price listStringYesDL-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 price with the id 70 doesn't exist."
}