Skip to main content
Documentation for version v73

Delete SKU

Description

Delete SKUs (stock keeping units) in the marketplace. The method supports both single deletion and batch deletion of multiple SKUs 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/sku/delete

Request parameters

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

Request example

Identification by parameter: "ids":

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

Identification by parameter: "external_ids":

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

Response example

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

Response parameters

ParameterTypeDescription
deleted_countintNumber of actually deleted SKUs
errorintError code
error_textstringError text