Listings

Remove listing

Removes local data or explicitly requests remote removal.

DELETE
/v1/listings/{listingId}

Remove listing

  • MockDevelopment only
  • Mercado LivreNot supported
  • MagaluPlanned
  • AmazonPlanned
  • TikTok ShopPlanned
  • ShopeePlanned

Read listing

  • MockDevelopment only
  • Mercado LivreSupported
  • MagaluPlanned
  • AmazonPlanned
  • TikTok ShopPlanned
  • ShopeePlanned

This DELETE has two independent decisions: what to do with the local record and whether to make a remote order. Choose publication=keep to remove only the local Listing; it never writes to the marketplace. It is the right choice when you want to stop managing an external offer without unpublishing it.

With publication=auto (the default), an offer that was already published or imported receives a remote removal only when outbound is enabled. With publication=delete, you explicitly request remote removal whenever an external identity exists. In both remote cases, the response is 202 with a Job; the local record is removed only after the worker confirms the operation.

A deletion or closure made in the marketplace never triggers a local DELETE by itself. The Listing remains for audit with the received external status, and your application is notified by webhook. Product and Variant are not removed by any of these choices.

Before deleting: live items at the marketplace

Deleting the record of an offer whose item is still live at the marketplace would leave that item with no history here. So the DELETE reads the items the Listing named and refuses:

  • 409 CONFLICT with details.reason = "listing_has_live_items": an item is not closed, or the search by the SKU of an unsettled creation found a live item no Listing holds. details.externalIds has the ids. The items the Listing named are closed with publication=delete, where the marketplace supports removal; at Mercado Livre, which does not yet, in the ML panel. publication=delete never closes an item the search found: import it (listing-imports) or close it in the marketplace panel, then repeat the DELETE.
  • 409 CONFLICT with details.reason = "listing_creation_in_progress": a job of the Listing is running, or a creation of it at the marketplace has not settled yet. With details.retryAfter, the creation is recent: repeat from that instant. Without it (a job of the Listing is running, the Listing changed between the read and the delete, or the lease lapsed during the read), repeat shortly. After the wait, marketapi searches for the item by the SKU it sent: if it finds a live item, it refuses with listing_has_live_items; if not, it deletes.
  • 503 MARKETPLACE_UNAVAILABLE: reading the items failed. Nothing was deleted; repeat.
  • 409 CONFLICT with details.reason = "connection_inactive": the Connection was revoked and the items cannot be read. Reconnect the seller.

An item that another Listing of the same Connection holds does not count: it has its own record. A Listing that named no item (a draft) is deleted without calling the marketplace.

With publication=delete, the job closes every live item the Listing named and only then deletes the record. If the search for an unsettled creation finds a live item no Listing holds, the job does not close it: the item fails with the same 409 listing_has_live_items. If the marketplace does not offer removal, the route answers 422 CAPABILITY_UNSUPPORTED. See errors.

Deleting the Listing takes its lines out of stock management: their open stock discrepancies close with resolution: "target_unmanaged".

Authorization

api_key
headerAuthorizationBearer <token>

API key (mk_...)

Path Parameters

listingId*string
Match^([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)$
Formatuuid

Query Parameters

publication?string

delete closes every live item the listing named at the marketplace, then removes it; keep removes the local record only, and is refused while an item it named is still live; auto is delete with outbound sync on, keep otherwise. A listing that never put an item at the marketplace is removed locally under any value.

Default"auto"
Value in"auto""delete""keep"

Response Body

A remote removal job when the listing named an item at the marketplace and publication=delete, or auto with outbound sync on. The job closes every item it named that is still live, then removes the local record; a close that fails keeps the listing.

application/json
  1. response

A job: an operation that runs in the background, tracked by id.

id*string

Opaque unique identifier of the job, generated by the API. Use it in the /v1/jobs/{id} routes.

Match^([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)$
Formatuuid
sellerId*|

The seller the job works for. null for a job of the whole account.

Match^([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)$
Formatuuid
type*string

What 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.

Value in"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*string

State of the job. queued: waiting. running: in progress. completed: every item succeeded. partial: some items failed. failed: no item succeeded.

Value in"queued""running""completed""partial""failed"
total*integer

Items in the job.

Range0 <= value <= 9007199254740991
processed*integer

Items already processed, succeeded or failed.

Range0 <= value <= 9007199254740991
succeeded*integer

Items that succeeded.

Range0 <= value <= 9007199254740991
failed*integer

Items that failed.

Range0 <= value <= 9007199254740991
input*

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.

Match^(?:(?:\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))$
Formatdate-time
finishedAt*|

When it finished, in ISO-8601 (UTC). null while queued or running.

Match^(?:(?:\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))$
Formatdate-time
createdAt*string

When the job was created, in ISO-8601 (UTC).

Match^(?:(?:\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))$
Formatdate-time
updatedAt*string

When the job last changed, in ISO-8601 (UTC).

Match^(?:(?:\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))$
Formatdate-time
curl -X DELETE "https://example.com/v1/listings/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "id": "7c6b5a49-3827-4615-a0b9-c8d7e6f5a4b3",  "sellerId": "3d1c8a52-7f0e-4b0a-8a65-9c1b2f6d7e01",  "type": "listing.remove",  "status": "queued",  "total": 1,  "processed": 0,  "succeeded": 0,  "failed": 0,  "input": {    "listingId": "5e4d3c2b-1a09-4f8e-9d7c-6b5a4f3e2d1c",    "publication": "delete"  },  "result": null,  "error": null,  "startedAt": null,  "finishedAt": null,  "createdAt": "2026-10-06T14:32:00.000Z",  "updatedAt": "2026-10-06T14:32:00.000Z"}