BatchDeleteProductAsync¶
Use this api to delete specified products asynchronously in batches, Get the deletion result via GetDeleteMasterProductResult after successful request.
POST /openapi/product/master/v1/batch-delete
Request Parameters¶
Parameter | Type | Required | Description |
---|---|---|---|
productIds |
array(string) |
true |
product id list |
Response Parameters¶
Name | Type | Description |
---|---|---|
taskId |
string |
Task ID. The task ID can be synchronized to query the deletion status |
Request Example¶
Example
curl --location --request POST '{Ginee Host}/openapi/product/master/v1/batch-delete' \
--header 'Content-Type: application/json' \
--header 'X-Advai-Country: ID' \
--header 'Authorization: 2aedf7919e5e6cb4:n0IECNXloTKCTSSxeBEYhzmeVClHmgvw4ruI3W2f9eY=' \
--data-raw '{
"productIds":["MP61ED3452E21B840001BBDE33"]
}'
Success
{
"code": "SUCCESS",
"message": "成功",
"data": {
"taskId": "D_TASK_DELETE_MASTER_PRODUCT_1485262862233505792"
},
"extra": null,
"pricingStrategy": "PAY"
}
Invalid parameters
{
"code": "PARAMETER_ERROR",
"message": "error message",
"data": null,
"extra": null
}
Note
You need to check the code
to see if the operation was successful. If failed, see message
for detail reason.