Run a marketplace action
Pause, activate, close or relist the listing.
Pause listing
- MockDevelopment only
- Mercado LivreNot supported
- MagaluPlanned
- AmazonPlanned
- TikTok ShopPlanned
- ShopeePlanned
Activate listing
- MockDevelopment only
- Mercado LivreNot supported
- MagaluPlanned
- AmazonPlanned
- TikTok ShopPlanned
- ShopeePlanned
Close listing
- MockDevelopment only
- Mercado LivreNot supported
- MagaluPlanned
- AmazonPlanned
- TikTok ShopPlanned
- ShopeePlanned
Relist listing
- MockDevelopment only
- Mercado LivreNot supported
- MagaluPlanned
- AmazonPlanned
- TikTok ShopPlanned
- ShopeePlanned
Requests a status action on the listing at the marketplace. The body is { action, params }, and action comes from a closed list: pause, activate, close and relist. Today no action takes params: omit it or send {}.
Each action has its own capability (listings.pause, listings.activate, listings.close, listings.relist). Without it, no Job is created: the route returns 403 CAPABILITY_NOT_GRANTED when the Connection lacks the scope, and 422 CAPABILITY_UNSUPPORTED when the marketplace does not offer the action; an offer with no listing at the marketplace (neither published nor imported) returns 409 (the capability is checked first).
curl -X POST "$BACKEND_URL/v1/listings/<listingId>/marketplace-actions" \
-H "Authorization: Bearer mk_your_api_key" \
-H "Content-Type: application/json" \
-d '{ "action": "pause" }'action | What it does |
|---|---|
pause | Pauses the listing: it stops selling and can be activated again. |
activate | Activates a paused listing. |
close | Closes the listing. It is final: the marketplace does not reopen it. To sell again, relist. |
relist | Republishes a closed listing. Only valid for a closed offer. |
The route does not check the current state of the offer. An action the marketplace does not accept in that state (relist of an offer that is not closed, pause of an offer already paused) returns 202 and fails the item of the Job, with the marketplace refusal. The transition rule is the marketplace's; follow the result in Jobs.
relist does not reopen the old offer: the marketplace gives another external ID, and the API creates a new Listing linked to the old one by relisted_from (see relations). Keep the id of the new Listing, which arrives in listing.created. It copies the old one's offer, options, sync policy and lines, and the copied lines are new bindings: syncPolicy.inventory.eligibleBindingIds already names the new Listing's bindings. Automatic stock goes to the new offer, not to the closed one.
The new Listing inherits what was pending on the old one's offer and stock, in the diff: an edit you have not published stays pending_publication (and the Listing starts dirty), a change made at the marketplace that you did not accept stays external_change, and a conflict open on the old one opens on the new one too. The marketplace copies the offer as it stands there: a value the new offer brings that the old one never read (the seller changed the price in the panel while the offer was closed, for example) shows as external_change, and with an edit of yours not yet published on the same group it becomes a conflict, opened by the relist itself with source: marketplace_action. The new Listing does not emit listing.external_changed: it arrives only with listing.created. The status group is not inherited: the status is the new offer's, which you asked for.
The response is 202 with the Job. For pause, activate and close, the new status arrives in listing.status_changed (with source: marketplace_action). relist does not emit listing.status_changed: the old Listing was already closed and stays that way, and the new one is announced only by listing.created. The action is recorded in the offer activity (marketplace_action, and relisted on the old one). Flow: Publish listings.
After pause, activate and close, the marketplace returns the offer as it stands there, and the API reads it as in a refresh. The status is the one you asked for: it does not count as an external change, not even when the seller had already changed the status at the marketplace and the API had read it. The rest does: if the seller changed the price in the marketplace's panel and nobody read it yet, the change arrives in listing.external_changed, and with an edit of yours not yet published on the same group it opens a conflict with source: marketplace_action.
That read follows the offer's inbound policy (syncPolicy.inbound), like a refresh. With it active, the returned offer is recorded whole, as above. With it disabled, the API records only the status you asked for; the rest is not recorded, and the difference (the price the seller changed) arrives in listing.external_changed with behavior: observed_only and recordUpdated: false, with no conflict.
On a marketplace with stock per location, relist puts the new offer at 0 and asks for an inventory.publish for it, under any sync policy. With no mapped location, the new offer stays at 0. See Publish listing.
close and relist take the old offer out of stock management: its open stock discrepancy closes with resolution: "target_unmanaged", and a later read opens no other.
api_keyAuthorizationBearer <token>API key (mk_...)
listingId*string^([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
A status action to run at the marketplace on one offer, asynchronously. The body is { action, params }; params defaults to {}.
action*"pause"Pause the offer at the marketplace: it stops selling and can be activated again.
"pause"params?Parameters of the action. This action takes none today: omit it or send {}.
{}The queued job. An explicit order: it runs with syncPolicy.outbound disabled too. On success the listing carries the status the marketplace now shows and listing.status_changed has source: marketplace_action. relist creates another listing for the new offer instead, related to this one by relisted_from; this one stays closed.
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/listings/497f6eca-6276-4993-bfeb-53cbbbba6f08/marketplace-actions" \ -H "Content-Type: application/json" \ -d '{ "action": "pause", "params": {} }'{ "id": "7c6b5a49-3827-4615-a0b9-c8d7e6f5a4b3", "sellerId": "3d1c8a52-7f0e-4b0a-8a65-9c1b2f6d7e01", "type": "listing.marketplace_action", "status": "queued", "total": 1, "processed": 0, "succeeded": 0, "failed": 0, "input": { "listingId": "5e4d3c2b-1a09-4f8e-9d7c-6b5a4f3e2d1c", "action": "pause", "params": {} }, "result": null, "error": null, "startedAt": null, "finishedAt": null, "createdAt": "2026-10-06T14:32:00.000Z", "updatedAt": "2026-10-06T14:32:00.000Z"}