- Public Suppliers Bulk Upsert
About
About
Public Suppliers List
Public Suppliers Get
Public Suppliers Bulk Ups...
Bulk-upsert suppliers (async).
Accepts up to 100,000 suppliers per call. The body is validated synchronously; the actual upsert runs out-of-band on a worker.
Response.
202 AcceptedwithJobAck { job_id, status_url }on the first call.200 OKwith the sameJobAckon an idempotent replay (sameIdempotency-Key+ same body). No second job runs.
What to do next. Poll GET /jobs/{job_id} (the status_url is the canonical path) until status is COMPLETED or FAILED. A COMPLETED job with error_count > 0 means some rows failed — see errors[] for the per-row detail. The Jobs chapter has the full polling guide.
Idempotency. Pass an Idempotency-Key header (≤ 255 chars). Same key with a different body returns 422 IDEMPOTENCY_KEY_MISMATCH.
- Mock serverhttps://docs.mercura.ai/_mock/openapi/suppliers
- https://docs.mercura.ai/api/public/v1https://docs.mercura.ai/api/public/v1/suppliers
- Productionhttps://prod-euapi.mercura.ai/api/public/v1/suppliers
curl -i -X POST \
https://docs.mercura.ai/_mock/openapi/suppliers \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: string' \
-H 'authorization: string' \
-d '{
"suppliers": [
{
"addresses": [
{
"city": "Lüdenscheid",
"country": "DE",
"is_default": true,
"kind": "hq",
"postal_code": "58507",
"region": "NRW",
"street": "Lichtstraße",
"street_number": "8"
}
],
"custom_fields": {
"7c4e0a91-5b23-4d6f-8e10-3a9c1f2b6d05": "Leuchten"
},
"emails": [
"vertrieb@lumaris.example"
],
"name": "Lumaris Leuchten GmbH",
"supplier_id": "L-2001"
}
]
}'Response
{ "job_id": "4242", "status_url": "/api/public/v1/jobs/4242" }