Deletes a product from the store. Identify the product by its ID, code or SKU.
Before you begin#
- The API token needs
Product_Delete, either assigned directly under Functions or through a group. See Create an API token. - Requests must be signed if the token requires it. See Make a signed request with HMAC.
- You need the product’s ID, code or SKU.
Example requests#
Delete a product by code#
Deletes the product whose code is test.
{
"Store_Code": "{{Store_Code}}",
"Miva_Request_Timestamp": "{{$timestamp}}",
"Function": "Product_Delete",
"Product_Code": "test"
}
Request parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
product_idEdit_ProductProduct_CodeProduct_SKU |
Number String String String |
ID Number of product Product code string Product code string Product SKU string |
Example response#
{
"success": 1
}
Response parameters#
| Name | Description |
|---|---|
success |
boolean value for if the request was successful |
Related functions#
| Function | Use it to |
|---|---|
Product_Insert |
Create a product |
Product_Update |
Change a product |
Product_Copy |
Copy an existing product to a new one |
ProductList_Load_Query |
Find products and their IDs, codes and SKUs |
Try in Postman#
In the Miva: JSON API: Authenticated collection, open Products > Product_Delete. See Set Up Postman.