This guide provides information on how to delete a product using our API. For more detailed information, please refer to our API Documentation.

Prerequisites

  • Ensure you have the necessary API credentials.
  • Familiarize yourself with the API endpoints and request/response formats.

Steps to Delete a Product

  1. Make a DELETE Request

    • Send a DELETE request to the appropriate endpoint. For example, to delete a product with ID 12345, the URL would be:
      /api/products/12345
      
    • Include your API key in the request header:
      Authorization: Bearer <your_api_key>
      
  2. Check the Response

    • If the product is successfully deleted, you will receive a 200 OK response.
    • If there is an error, the response will include an error code and message.

Example Request

DELETE /api/products/12345 HTTP/1.1
Host: api.example.com
Authorization: Bearer <your_api_key>

Response:
HTTP/1.1 200 OK
Content-Type: application/json
{
  "message": "Product deleted successfully."
}

Additional Resources

Product Delete