Purpose: stop selling one product (one size) on Winkelstraat.nl.
- The product is removed from the webshop at the next catalogue update. When all sizes of a product group are deleted, the whole article disappears from the webshop.
- Its stock is set to
0and its EAN is released, so you can use the EAN again. - Afterwards the product is no longer returned by
GET /productsorGET /products/{code}. - Sending the product again with
POSTorPATCHrestores it.
To make a product temporarily unavailable without deleting it, set its quantity
to 0 instead. See the Product status topic.
No request body is needed.
DELETE
/api/rest/v1/retailer/products/{code}
curl \
--request DELETE 'https://content.winkelstraat.nl/api/rest/v1/retailer/products/{code}' \
--header "Authorization: $API_KEY"
Response examples (401)
{
"code": 401,
"message": "The access token provided is invalid."
}
Response examples (401)
{
"code": 42,
"message": "string"
}
Response examples (403)
{
"code": 403,
"message": "Access forbidden. You are not allowed to list products."
}
Response examples (403)
{
"code": 42,
"message": "string"
}
Response examples (422)
{
"code": 422,
"message": "Invalid category code \"999999\""
}
Response examples (422)
{
"code": 42,
"message": "string"
}