Publish listings in batch
Publishes 1 to 100 seller listings in one Job.
Publish listing
- MockDevelopment only
- Mercado LivreSupported
- MagaluPlanned
- AmazonPlanned
- TikTok ShopPlanned
- ShopeePlanned
Publishes several listings of the seller at once, in one Job. The body has items, from 1 to 100, one per listing (listingId without repeats, and optionally mode and bindingIds, as in publish). oneTimeMarketplaceOptions, at the top of the body, applies to this batch only and goes to every item.
curl -X POST "$BACKEND_URL/v1/sellers/<sellerId>/listing-publications" \
-H "Authorization: Bearer mk_your_api_key" \
-H "Content-Type: application/json" \
-d '{ "items": [{ "listingId": "<listingId>", "mode": "auto" }] }'The route only refuses the request, with no Job, when the seller does not exist (404), when a listing does not exist or belongs to another seller (400, the ids go in details.listingIds), when oneTimeMarketplaceOptions carries something unsafe (400) or when it uses a namespace that is not the marketplace of some listing in the batch (400). Everything else fails per item: bindingIds that are not the listing's, outbound off, a listing without binding and missing capability. The other items go on, and the Job ends partial if some of them fail.
oneTimeMarketplaceOptions is checked against the marketplace of each listing and accepts only its namespace. In a batch with listings from different marketplaces the field does not work: { "mock": {…}, "mercadolivre": {…} } also returns 400 ("must use the connected marketplace namespace"). To send options, split the batch by marketplace.
The response is 202 with the whole Job; its id is what you use to follow it. Follow the items in Jobs: each one carries the publication steps, and an item that failed midway resumes where it stopped on the next attempt (see Tracking jobs).
api_keyAuthorizationBearer <token>API key (mk_...)
sellerId*stringSeller the new resource belongs to.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidIdempotency-Key?stringOptional. A unique value (for example a UUID), 1 to 255 characters, that makes the request safe to retry: repeating it with the same body within 24h returns the original response with Idempotency-Replayed: true instead of running the operation again. Scoped to your account. Reusing it with a different body returns 409.
1 <= length <= 255application/json- body
Asynchronous publication of several listings in one Job. Each listing is one item: a failure in one does not stop the others.
items*array<>The listings to publish, from 1 to 100, each at most once. They may belong to different sellers and marketplaces of your account.
1 <= items <= 100oneTimeMarketplaceOptions?Marketplace options for this batch only, under the connected marketplace namespace. They apply to every item, each key overriding the same key of the listing marketplaceOptions; nothing is saved on the listings.
The queued job, one item per listing. Each listing waits for it (publicationState: pending, listing.updated with publication_requested). What only an item can know fails that item, not the request: outbound synchronization disabled, no variant binding, a bindingIds that is not a binding of the listing, a marketplace without publication. The job ends partial when some items fail.
application/json- response
A job: an operation that runs in the background, tracked by id.
id*stringOpaque unique identifier of the job, generated by the API. Use it in the /v1/jobs/{id} routes.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidsellerId*|The seller the job works for. null for a job of the whole account.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidtype*stringWhat the job does. connection.sync: first sync of a new connection. listing.publish and listing.remove: publish a listing to the marketplace or remove it there. listing.import and listing.reconcile: read the listings of a connection from the marketplace into their observed state. listing.validate: ask the marketplace whether a listing can be published, without publishing it. listing.marketplace_action: pause, activate, close or relist a listing at the marketplace. listing.refresh: read one listing from the marketplace again. inventory.publish: send stock quantities to the marketplace. marketplace_product.publish: publish the content of a marketplace product alone, without any offer field. marketplace_product.catalog_eligibility_check: ask the marketplace whether a marketplace product can point at a catalog product; the result is the eligibility. order.import and order.reconcile: read the orders of a connection from the marketplace into marketapi. promotion.create, promotion.update and promotion.end: create, change or end a promotion at the marketplace. promotion.entries_update: change which listing lines take part in a promotion, and at what price.
"connection.sync""listing.publish""listing.remove""listing.import""listing.reconcile""listing.validate""listing.marketplace_action""listing.refresh""inventory.publish""marketplace_product.publish""marketplace_product.catalog_eligibility_check""order.import""order.reconcile""promotion.create""promotion.update""promotion.end""promotion.entries_update"status*stringState of the job. queued: waiting. running: in progress. completed: every item succeeded. partial: some items failed. failed: no item succeeded.
"queued""running""completed""partial""failed"total*integerItems in the job.
0 <= value <= 9007199254740991processed*integerItems already processed, succeeded or failed.
0 <= value <= 9007199254740991succeeded*integerItems that succeeded.
0 <= value <= 9007199254740991failed*integerItems that failed.
0 <= value <= 9007199254740991input*What the job was asked to do, by type. connection.sync, listing.import and listing.reconcile: { connectionId }. listing.publish: { listingId, mode }, or { sellerId, listingIds } for the batch of a seller. listing.remove: { listingId, publication }. listing.validate and listing.refresh: { listingId }. listing.marketplace_action: { listingId, action, params }. inventory.publish: { source }, plus movedWarehouseIds (the warehouses the movement changed) when a stock movement asked for it; the job skips the items that none of those warehouses feeds. On a marketplace with stock per location, the publication of an offer and its relist put the lines on the marketplace at 0 and ask for an inventory.publish with offerPublicationBindingIds: the ids of those lines (never a quantity: the job reads the balance when it runs), which it publishes even under the manual policy or with inventoryEligible: false (the inventory authority still decides). marketplace_product.publish: { marketplaceProductId, mode }. marketplace_product.catalog_eligibility_check: { marketplaceProductId, catalogProductId }. order.import: { connectionId, placedFrom, placedTo }, with the period resolved to instants even when the request gave none. order.reconcile: { connectionId }. promotion.create, promotion.update, promotion.end and promotion.entries_update: { promotionId }.
result*|Summary of the outcome, when the type has one. null otherwise.
error*|Why the job failed, when it failed as a whole. null otherwise; the error of each item is in its items.
startedAt*|When it started running, in ISO-8601 (UTC). null while queued.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$date-timefinishedAt*|When it finished, in ISO-8601 (UTC). null while queued or running.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$date-timecreatedAt*stringWhen the job was created, in ISO-8601 (UTC).
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$date-timeupdatedAt*stringWhen the job last changed, in ISO-8601 (UTC).
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$date-timecurl -X POST "https://example.com/v1/sellers/b6a1c0de-3f0c-4f53-9c6e-2a1d7d3b9e10/listing-publications" \ -H "Content-Type: application/json" \ -d '{ "items": [ { "listingId": "0e2ce906-a6ab-4101-9461-4168c8b6b902", "mode": "update" } ] }'{ "id": "7c6b5a49-3827-4615-a0b9-c8d7e6f5a4b3", "sellerId": "3d1c8a52-7f0e-4b0a-8a65-9c1b2f6d7e01", "type": "listing.publish", "status": "queued", "total": 1, "processed": 0, "succeeded": 0, "failed": 0, "input": { "sellerId": "3d1c8a52-7f0e-4b0a-8a65-9c1b2f6d7e01", "listingIds": [ "5e4d3c2b-1a09-4f8e-9d7c-6b5a4f3e2d1c" ] }, "result": null, "error": null, "startedAt": null, "finishedAt": null, "createdAt": "2026-10-06T14:32:00.000Z", "updatedAt": "2026-10-06T14:32:00.000Z"}