curl --request POST \
--url 'https://api.sync.stateset.com/v1/tenants/{tenant_id}/sync/batch' \
--header "x-stateset-api-key: $STATESET_SYNC_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"channels": [
"string"
]
}'
{
"failed": 1,
"queued": 1,
"results": [
{
"channel": "string",
"error": "string",
"jobId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"status": "pending"
}
],
"total": 102
}
Trigger multiple sync channels in a single API call.
Batch sync jobs queued
POST
/
v1
/
tenants
/
{tenant_id}
/
sync
/
batch
curl --request POST \
--url 'https://api.sync.stateset.com/v1/tenants/{tenant_id}/sync/batch' \
--header "x-stateset-api-key: $STATESET_SYNC_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"channels": [
"string"
]
}'
{
"failed": 1,
"queued": 1,
"results": [
{
"channel": "string",
"error": "string",
"jobId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"status": "pending"
}
],
"total": 102
}
Path parameters
string
required
Tenant identifier
Request body
BatchSyncRequest
string[]
required
Channels to sync. Accepts: shopify, netsuite, dcl, amazon, tiktok, walmart, ebay, etsy, woocommerce, shopware, inventory, products, returns.
Response
BatchSyncResponse
integer
required
How many failed to queue.
integer
required
How many were successfully queued.
BatchSyncChannelResult[]
required
integer
required
Total channels requested.
Status codes
| Code | Meaning |
|---|---|
202 | Batch sync jobs queued |
401 | Unauthorized |
422 | Validation error |
curl --request POST \
--url 'https://api.sync.stateset.com/v1/tenants/{tenant_id}/sync/batch' \
--header "x-stateset-api-key: $STATESET_SYNC_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"channels": [
"string"
]
}'
{
"failed": 1,
"queued": 1,
"results": [
{
"channel": "string",
"error": "string",
"jobId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"status": "pending"
}
],
"total": 102
}
Last modified on August 31, 2026