Skip to main content

Delete Price List

The DELETE endpoint removes a specified price list identified by priceList_id.

Endpoint

  • URL: /priceList/{priceList_id}
  • Method: DELETE

Authentication

  • Header: accessToken
  • Type: Bearer Token
  • Value: <ACCESS-TOKEN>

Path Parameters

ParameterTypeDescription
priceList_idstringThe unique identifier of the price list to delete.

Request Headers

HeaderTypeDescription
accessTokenstringAccess token for authentication. (required)

Response

  • Status Code: 200 OK

Sample Response Body

{
"success": true,
"message": "Price list deleted successfully"
}

Success Response Fields

FieldTypeDescription
successbooleanIndicates the success status of the request, typically true for a successful operation.
messagestringA message conveying the outcome of the operation, e.g., "Price list deleted successfully".

Error Responses

Status CodeDescription
400Bad Request: Invalid input data.
401Unauthorized: Access token is invalid or missing.
404Not Found: The specified price list could not be found.
500Internal Server Error: An error occurred on the server.

Notes

  • Ensure you replace {priceList_id} in the URL with the actual unique identifier of the price list being deleted.
  • Provide a valid and active access token in the request header to authenticate your request.