Skip to content

Bulk operations

Endpoints for bulk operations. Every example sets SOOQUNA_TOKEN from the environment; see authentication. Responses are from a test store, cut to two items per list.

Endpoint Method Path
Start a bulk export POST /bulk-operations
List bulk exports GET /bulk-operations
Get a bulk export GET /bulk-operations/{id}
Cancel a bulk export POST /bulk-operations/{id}/cancel

POST /bulk-operations · Any token

Exports a resource as JSONL to a signed download URL.

Terminal window
curl -X POST "https://api.sooquna.com/admin/api/2026-10/bulk-operations" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN" \
-H "Content-Type: application/json" \
-d '{"resource": "products", "query": {"status": "active"}}'
Response 201
{
"completed_at": null,
"created_at": "2026-10-18T09:30:00Z",
"file_size": null,
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000003",
"object_count": 0,
"query": {"status": "active"},
"resource": "products",
"status": "created"
}

GET /bulk-operations · Any token

Terminal window
curl -X GET "https://api.sooquna.com/admin/api/2026-10/bulk-operations" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN"
Response 200
{
"data": [
{
"completed_at": null,
"created_at": "2026-10-18T09:30:00Z",
"file_size": null,
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000003",
"object_count": 0,
"query": {"status": "active"},
"resource": "products",
"status": "created"
}
]
}

GET /bulk-operations/{id} · Any token

Parameter In Description
id path The resource’s ID.
Terminal window
curl -X GET "https://api.sooquna.com/admin/api/2026-10/bulk-operations/0193a1b2-c3d4-7e5f-8a6b-000000000003" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN"
Response 200
{
"completed_at": null,
"created_at": "2026-10-18T09:30:00Z",
"file_size": null,
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000003",
"object_count": 0,
"query": {"status": "active"},
"resource": "products",
"status": "created"
}

POST /bulk-operations/{id}/cancel · Any token

Parameter In Description
id path The resource’s ID.
Terminal window
curl -X POST "https://api.sooquna.com/admin/api/2026-10/bulk-operations/0193a1b2-c3d4-7e5f-8a6b-000000000003/cancel" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN"

Was this page helpful?