Promotions

Create promotion for a listing

Creates a direct discount on a listing.

POST
/v1/listings/{listingId}/promotions

Manage promotions

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

A shortcut to create a discount promotion from a listing. Send startsAt, endsAt and discountBps (or entries), with stockLimit and purchaseLimit if needed. With discountBps, the discount applies to every line of the listing; with entries, only to lines of this listing (another binding returns 400). A listing with no binding returns 409. The promotion is in the currency of the listing offer: the body has no currency field. A listing with no price and currency yet returns 409 with details.reason: "listing_offer_missing". A line whose offer (the binding's over the listing's) is in another currency returns 400 with details.field: "entries". A binding with no identity at the marketplace (an offer never published or imported) returns 409 with details.reason: "listing_not_published".

Returns 202 with a promotion.create job, like Create promotion.

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

Header Parameters

Idempotency-Key?string

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

Length1 <= length <= 255

Request Body

application/json
  1. body

A discount promotion on one listing. It is created on the connection of the listing.

name?string

Name of the promotion, up to 200 characters. Left out: a name made from the listing.

Length1 <= length <= 200
startsAt*string

When the promotion starts. ISO-8601; an offset such as -03:00 is accepted.

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|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
Formatdate-time
endsAt*string

When the promotion ends; after startsAt. ISO-8601.

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|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
Formatdate-time
discountBps?integer

The same discount, in basis points (1500 = 15%), on every line of the listing. Send this or entries.

Range1 <= value <= 9999
entries?array<>

The lines to put in the promotion, each with its own price or discount and limits, each binding once. Send this or discountBps.

Itemsitems <= 100
stockLimit?integer

With discountBps: units that may be sold at the promotional price, on each line. With entries, set it on each entry instead.

Range0 < value <= 9007199254740991
purchaseLimit?integer

With discountBps: units one buyer may buy at the promotional price, on each line. With entries, set it on each entry instead.

Range0 < value <= 9007199254740991

Response Body

The queued promotion.create job for a discount promotion on the connection of the listing. job.input.promotionId is the promotion, stored as pending until the marketplace answers.

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 POST "https://example.com/v1/listings/497f6eca-6276-4993-bfeb-53cbbbba6f08/promotions" \  -H "Content-Type: application/json" \  -d '{    "name": "Weekend deal",    "startsAt": "2026-11-27T03:00:00.000Z",    "endsAt": "2026-11-30T03:00:00.000Z",    "discountBps": 1500,    "stockLimit": 50  }'
{  "id": "7c6b5a49-3827-4615-a0b9-c8d7e6f5a4b3",  "sellerId": "3d1c8a52-7f0e-4b0a-8a65-9c1b2f6d7e01",  "type": "promotion.create",  "status": "queued",  "total": 2,  "processed": 0,  "succeeded": 0,  "failed": 0,  "input": {    "promotionId": "a8b7c6d5-e4f3-4a21-b0c9-d8e7f6a5b4c3"  },  "result": null,  "error": null,  "startedAt": null,  "finishedAt": null,  "createdAt": "2026-10-06T14:32:00.000Z",  "updatedAt": "2026-10-06T14:32:00.000Z"}