curl --request POST \
--url https://omnicommerce.sg/api/v1/products/{productId}/delist \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"marketplaces": [
"shopee",
"lazada"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({marketplaces: ['shopee', 'lazada']})
};
fetch('https://omnicommerce.sg/api/v1/products/{productId}/delist', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/api/v1/products/{productId}/delist"
payload = { "marketplaces": ["shopee", "lazada"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"apiVersion": "developer_v1",
"operationId": "<string>",
"status": "accepted",
"productId": "<string>",
"jobId": "<string>",
"data": {
"queued": true,
"delistBatchId": "<string>",
"marketplaces": [
"lazada"
],
"sourceProductId": "<string>"
}
}Delist Product
Queue delist for one product on the marketplaces you name. marketplaces accepts one or more of shopee, lazada, tiktok, shopify, whatsapp, zalora, amazon, and ebay. Each named marketplace must already have a listing; other channels are left untouched. Omit marketplaces to delist every existing listing. This does not delete the OmniCommerce product. Poll GET /api/v1/jobs/ until data.status is succeeded, partial, or failed. Accepted means the job was queued, not that the marketplace has removed the listing.
curl --request POST \
--url https://omnicommerce.sg/api/v1/products/{productId}/delist \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"marketplaces": [
"shopee",
"lazada"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({marketplaces: ['shopee', 'lazada']})
};
fetch('https://omnicommerce.sg/api/v1/products/{productId}/delist', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/api/v1/products/{productId}/delist"
payload = { "marketplaces": ["shopee", "lazada"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"apiVersion": "developer_v1",
"operationId": "<string>",
"status": "accepted",
"productId": "<string>",
"jobId": "<string>",
"data": {
"queued": true,
"delistBatchId": "<string>",
"marketplaces": [
"lazada"
],
"sourceProductId": "<string>"
}
}Authorizations
Bearer API key for server-to-server access. Session auth is also supported in first-party UI flows.
Path Parameters
OmniCommerce product or variant ID. A variant delists its parent listing.
Body
Optional for API-key requests; required for session-authenticated requests across multiple organizations.
Which marketplaces to delist from. One or more of shopee, lazada, tiktok, shopify, whatsapp, zalora, amazon, ebay. Omit to delist every existing listing.
1lazada, shopee, tiktok, shopify, whatsapp, zalora, amazon, ebay