Platform API for sales channels. Prefix /v1/platform/, keys bk_plt_*. Catalog is deny-by-default (catalog rules required).
Who this section is for
Audience: Marketplaces and pharmacy chains. Key bk_plt_* — your catalog only (deny by default).
How to work with this API
Platform lifecycle: learn about new codes → realize to customer → report redemption. Primary sync: promo-codes/changes.
Base URL
- Production:
https://api-external.promanta.ru - Local:
http://localhost:7314
Authentication
X-Api-Key: bk_plt_… header. Platform id is bound to the key.
Configure API key and webhook in platform drawer.
Request and response format
All methods are POST with JSON { "meta": {}, "data": {} }. Response: success, data, meta.
Methods by workflow
0. Start: profile and webhook
Verify key, catalog rules, webhook status.
- Verify platform API key —
POST /v1/platform/profile/get
1. Catalog sync
Webhook incoming.completed or poll events/changes.
- Business events list (poll) —
POST /v1/platform/events/list - Incoming batches for platform —
POST /v1/platform/incoming/list - Catalog changes (delta-sync) —
POST /v1/platform/promo-codes/changes - Platform catalog summary —
POST /v1/platform/catalog/summary
2. Deliver code to customer
Checkout: get full code → realize. Campaigns — realize-batch.
- Promo catalog for fulfillment —
POST /v1/platform/promo-codes/list - Full code before customer delivery —
POST /v1/platform/promo-codes/get - Realize promo code on platform —
POST /v1/platform/promo-codes/realize - Batch realize promo codes —
POST /v1/platform/promo-codes/realize-batch
3. Redemption
After customer activation — report-bulk (realized → redeemed).
- Bulk redeem promo codes —
POST /v1/platform/usage/report-bulk
MCP
Same operations via MCP at /mcp/internal, /mcp/supplier, /mcp/platform.
Request example (smoke test)
{
"meta": { "requestId": "smoke-001" },
"data": {}
}
Response example
{ "success": true, "data": { "platformId": "…", "name": "Ригла", "webhookConfigured": true, "catalogRulesCount": 3 } }
cURL
curl -X POST "https://api-external.promanta.ru/v1/platform/profile/get" \
-H "Content-Type: application/json" \
-H "X-Api-Key: bk_plt_YOUR_KEY" \
-d '{"data": {}}'