Skip to main content
Documentation for version v73

Delete products

Description

Delete products in the marketplace. The method supports both single deletion and batch deletion of multiple products in one request.

To delete, you must use a token for which a role with the appropriate access rights is assigned.

Request URL

Method: POST

https://example.com/api/v1.1/market/products/delete

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
idsarray of integers[1, 2, 3]No, if external_ids is providedArray of internal product identifiers
external_idsarray of strings["product_1", "product_2"]No, if ids is providedArray of external product identifiers

Request example

Identification by parameter: "ids":

{           
"token": "abcdefghijklmnqrstuvwxyz",
"ids": [1]
}

Identification by parameter: "external_ids":

{           
"token": "abcdefghijklmnqrstuvwxyz",
"external_ids": ["product_123"]
}

Response example

{
"deleted_count": 2,
"error": 0,
"error_text": ""
}

Response parameters

ParameterTypeDescription
deleted_countintNumber of actually deleted products
errorintError code
error_textstringError text