The product delete API allows you to delete all variants belonging to a product. Please note that this API only works if your products have multiple variants and you send them as individual products to Releva as described in the Product Update API documentation.
Do I need to call it? #
Yes, you need to call it whenever a product is deleted from your catalogue.
Request Parameters #
You may perform requests to the API using the following curl equivalent:
curl -H 'Content-Type: application/json' -H 'Authorization: Bearer <secretKey>' -XDELETE https://releva.ai/api/v0/products/<productId>
A Note About Variants #
If your products have multiple variants and you send each variant as an individual product with the Product Update API , the <productId> parameter in your request should correspond to the custom.string.product_id property of the variants you would like to delete. If you with to delete a subset of a product’s variants, please use the Product Update API as explaiend under the “What if my products have variants?” section.
Response Format #
A successful response will return HTTP Status 202
with an empty resposne body ({}
).
An error response will return a HTTP 4xx
or 5xx
status code and have the following structure:
{
"message": "A description of the error and how to fix it, if it's a client error."
}