Promotions

Get promotion

Gets a promotion by id.

GET
/v1/promotions/{promotionId}

Read promotions and invitations

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

Returns the promotion with type, period (startsAt, endsAt, joinDeadlineAt), status, statusReasons and sellerShareBps, the share of the discount the seller pays.

Reads only our database. For the price of each listing, use List entries.

Authorization

api_key
headerAuthorizationBearer <token>

API key (mk_...)

Path Parameters

promotionId*string

Identifier of the promotion, as returned by the API.

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

Response Body

The requested promotion, as marketapi last stored it.

application/json
  1. response

A promotion on a marketplace: a discount, coupon, bundle, flash sale or volume deal you create, or a campaign the marketplace invites you to.

id*string

Promotion id.

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*string

Seller of the connection.

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
connectionId*string

Connection the promotion runs on.

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
marketplace*string

Marketplace of the connection.

Value in"mock""mercadolivre""magalu""amazon""tiktok""shopee"
origin*string

seller: created through the API. marketplace: a campaign the marketplace invited the seller to; it cannot be edited or ended here, only joined or left through its entries.

Value in"seller""marketplace"
type*string

Normalized kind of promotion.

Value in"discount""campaign""coupon""bundle""flash_sale""volume"
nativeType*|

The marketplace's own name for the kind (for example SELLER_CAMPAIGN). null when the promotion came from the API.

name*string

Name of the promotion.

currency*string

ISO 4217 currency code of every amount of the promotion: the *InCents of its entries, of their priceRange and of its terms.

Match^[A-Z]{3}$
status*string

Normalized state. pending: waiting for the marketplace to accept it. rejected: the marketplace refused it (see statusReasons).

Value in"pending""scheduled""active""paused""ended""cancelled""rejected""unknown"
statusReasons*array<>

Normalized reasons for the current state.

startsAt*|

When the promotion starts. null when the marketplace does not say.

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
endsAt*|

When the promotion ends. null when the marketplace does not say.

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
joinDeadlineAt*|

Last moment the seller can join an invitation. null when there is no deadline.

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
sellerShareBps*|

Part of the discount the seller pays, in basis points (5000 = 50%). The marketplace pays the rest. null: not known.

Range0 <= value <= 10000
terms*|||

Terms of the promotion, by type: {} for discount and campaign, { timeslotId } for flash_sale, the coupon fields for coupon, { tiers } for bundle and volume.

externalPromotionId*|

Id of the promotion at the marketplace. null until it accepts it.

lastSyncedAt*|

When marketapi last read this promotion from the marketplace.

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 marketapi first stored the promotion.

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 marketapi last changed the promotion.

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 GET "https://example.com/v1/promotions/3d1c8a52-7f0e-4b0a-8a65-9c1b2f6d7e01"
{  "id": "6c1a9e52-7d3b-4f08-a1e4-0b5d2c8f9a37",  "sellerId": "3d1c8a52-7f0e-4b0a-8a65-9c1b2f6d7e01",  "connectionId": "9a1b2c3d-4e5f-4a6b-8c7d-0e1f2a3b4c5d",  "marketplace": "mercadolivre",  "origin": "seller",  "type": "discount",  "nativeType": null,  "name": "Black Friday",  "currency": "BRL",  "status": "scheduled",  "statusReasons": [],  "startsAt": "2026-11-27T03:00:00.000Z",  "endsAt": "2026-11-30T03:00:00.000Z",  "joinDeadlineAt": null,  "sellerShareBps": 10000,  "terms": {},  "externalPromotionId": "MLB-P-1234567",  "lastSyncedAt": "2026-11-14T12:00:00.000Z",  "createdAt": "2026-11-14T11:55:00.000Z",  "updatedAt": "2026-11-14T12:00:00.000Z"}