API

Тот же контракт, что и у сайта. Документация OpenAPI: /api/docs на порту API.

curl -X POST http://localhost:3001/api/v1/listings \
  -H "Authorization: Bearer sk_live_..." \
  -H "Idempotency-Key: import-1" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "sale",
    "title": "Стул венский",
    "description": "Деревянный, самовывоз",
    "categoryId": "...",
    "cityId": "...",
    "shopId": "...",
    "price": 4500,
    "status": "published"
  }'

На Витрине создаются объявления типа sale (магазин обязателен).