Full code for customer complaint or ERP match; audited.
Why this method exists
Full code for customer complaint or ERP match; audited.
When to use
Support lookups only, not bulk export.
Endpoint
POST /v1/supplier/promo-codes/get
Authentication: X-Api-Key header (prefix bk_sup_). Do not send projectId or actor id in body — they come from the key.
Scope: supplier:codes:read
Request example
{
"meta": { "requestId": "optional-uuid" },
"data": { "codeNormalized": "queen14-48amu" }
}
Response example
{
"success": true,
"data": {
"id": "code-uuid",
"codeDisplay": "QUEEN14-48AMU",
"codeNormalized": "queen14-48amu",
"status": "realized",
"productName": "Подписка 14",
"validUntil": "2026-12-31T23:59:59Z",
"realizedAt": "2026-07-01T10:00:00Z",
"realizedChannel": "Ригла"
}
}
Errors
UNAUTHORIZED/ACCESS_DENIED— access deniedVALIDATION_ERROR— invalid bodyNOT_FOUND— resource not foundRATE_LIMIT_EXCEEDED(429) — rate limit
cURL
curl -X POST "https://api-external.promanta.ru/v1/supplier/promo-codes/get" \
-H "Content-Type: application/json" \
-H "X-Api-Key: YOUR_API_KEY" \
-d '{"data": { "codeNormalized": "queen14-48amu" }}'