Skip to content

Current and upcoming in-store promotions and events​

GET
/public/store-events

« En ce moment en boutique »: what the marketplace's vendors announce IN their physical stores — a promotion or an event, each attached to one store of GET /public/stores. Only events that are active and not yet ended (endsAt in the future) are served, of stores the storefront shows, and never one another marketplace entered; sorted soonest first (by startsAt, then endsAt), at most 50.

allDay: true means the dates matter, not the times (print « Du 5 au 14 décembre »); startsAt / endsAt always carry an offset. An event whose startsAt is past is running now.

The tenant is resolved like every storefront read. A malformed stored row reads as no events (never a 500).

Cache-Control: public, max-age=300, s-maxage=300; a back-office write also purges the storefront tag store-events.

Auth: Public (no authentication).

Responses​

Current and upcoming events.

application/json
JSON
{
  
"ok": true,
  
"data": {
  
  
"items": [
  
  
  
{
  
  
  
  
"id": "sev_3f9a1c0b7d2e4a61",
  
  
  
  
"type": "promotion",
  
  
  
  
"title": "-30 % sur les chaussures de running",
  
  
  
  
"detail": "string",
  
  
  
  
"startsAt": "2024-01-01T00:00:00Z",
  
  
  
  
"endsAt": "2024-01-01T00:00:00Z",
  
  
  
  
"allDay": true,
  
  
  
  
"href": "string",
  
  
  
  
"store": {
  
  
  
  
  
"storeId": "string",
  
  
  
  
  
"name": "string",
  
  
  
  
  
"vendorId": "string",
  
  
  
  
  
"vendorName": "string",
  
  
  
  
  
"street": "string",
  
  
  
  
  
"city": "string",
  
  
  
  
  
"geo": {
  
  
  
  
  
  
"lat": 0,
  
  
  
  
  
  
"lng": 0
  
  
  
  
  
}
  
  
  
  
}
  
  
  
}
  
  
]
  
}
}

Playground​

Samples​

Powered by VitePress OpenAPI

Tarifs : contactez-nous — contact@marketkit.ai