Skip to main content

Delete Price List

Permanently deletes a price list together with all of its product, variant and tier prices.

HTTP Request​

  • URL: /priceList/{id}
  • Method: DELETE
  • Headers:
    • accessToken: Required. Your API access token.
  • Required scope: READ_WRITE_PRICELIST

Path Parameters​

ParameterTypeDescription
idStringRequired. The ID of the price list to delete.

cURL Example​

curl --location --request DELETE '<BASE_URL>/priceList/66ad153dbf8641f96544341d' \
--header 'accessToken: <ACCESS_TOKEN>'

Response​

  • 200 OK: The request was processed. If the price list was not found, success is false and message is PriceList not found.
  • 400 Bad Request: The access token is missing or invalid, or the price list ID is not valid.

Sample JSON Response​

{
"success": true,
"message": "PriceList and associated products deleted Successfully"
}

Response Details​

FieldTypeDescription
successBooleanWhether the request succeeded.
messageStringResult message.