Assign Product Marketplace Stores
curl --request POST \
--url https://omnicommerce.ai/api/v1/products/marketplace-stores \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"productIds": [
"10480f82-762d-45c5-a427-af809b2477f6"
],
"selections": [
{
"marketplace": "shopify",
"storeIds": [
"shop-1",
"shop-2"
]
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
productIds: ['10480f82-762d-45c5-a427-af809b2477f6'],
selections: [{marketplace: 'shopify', storeIds: ['shop-1', 'shop-2']}]
})
};
fetch('https://omnicommerce.ai/api/v1/products/marketplace-stores', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/products/marketplace-stores"
payload = {
"productIds": ["10480f82-762d-45c5-a427-af809b2477f6"],
"selections": [
{
"marketplace": "shopify",
"storeIds": ["shop-1", "shop-2"]
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"status": "completed",
"data": {
"success": true,
"productIds": [
"<string>"
],
"storeTargets": [
{
"marketplace": "shopee",
"storeId": "<string>"
}
],
"succeededCount": 1,
"failedCount": 1,
"results": [
{
"productId": "<string>",
"success": true,
"storeIds": [
"<string>"
],
"error": "<string>"
}
]
}
}{
"ok": true,
"status": "completed",
"data": {
"success": true,
"productIds": [
"<string>"
],
"storeTargets": [
{
"marketplace": "shopee",
"storeId": "<string>"
}
],
"succeededCount": 1,
"failedCount": 1,
"results": [
{
"productId": "<string>",
"success": true,
"storeIds": [
"<string>"
],
"error": "<string>"
}
]
}
}Products
Assign Product Marketplace Stores
Requires catalog:write. Assign one or more connected stores per marketplace to 1–100 products, including marketplace-only drafts. Get exact store IDs and countries from GET /api/v1/marketplaces/connected.
Store selection
Each product family is updated independently. Existing listings keep their remote identities. Reusing a store ID across countries requires storeCountries to identify the connection. Each product can use only one country per store ID. Copy compatible taxonomy from an existing sourceStoreId when supplied.
Publish assigned stores
The response includes exact data.storeTargets for publishing the successful products. HTTP 207 means at least one product failed. Inspect each result before passing those storeTargets to POST /api/v1/products//publish.
POST
/
api
/
v1
/
products
/
marketplace-stores
Assign Product Marketplace Stores
curl --request POST \
--url https://omnicommerce.ai/api/v1/products/marketplace-stores \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"productIds": [
"10480f82-762d-45c5-a427-af809b2477f6"
],
"selections": [
{
"marketplace": "shopify",
"storeIds": [
"shop-1",
"shop-2"
]
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
productIds: ['10480f82-762d-45c5-a427-af809b2477f6'],
selections: [{marketplace: 'shopify', storeIds: ['shop-1', 'shop-2']}]
})
};
fetch('https://omnicommerce.ai/api/v1/products/marketplace-stores', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/products/marketplace-stores"
payload = {
"productIds": ["10480f82-762d-45c5-a427-af809b2477f6"],
"selections": [
{
"marketplace": "shopify",
"storeIds": ["shop-1", "shop-2"]
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"status": "completed",
"data": {
"success": true,
"productIds": [
"<string>"
],
"storeTargets": [
{
"marketplace": "shopee",
"storeId": "<string>"
}
],
"succeededCount": 1,
"failedCount": 1,
"results": [
{
"productId": "<string>",
"success": true,
"storeIds": [
"<string>"
],
"error": "<string>"
}
]
}
}{
"ok": true,
"status": "completed",
"data": {
"success": true,
"productIds": [
"<string>"
],
"storeTargets": [
{
"marketplace": "shopee",
"storeId": "<string>"
}
],
"succeededCount": 1,
"failedCount": 1,
"results": [
{
"productId": "<string>",
"success": true,
"storeIds": [
"<string>"
],
"error": "<string>"
}
]
}
}Authorizations
Body
application/json