Parses file and loads codes; platforms get webhook on completion.
Why this method exists
Parses file and loads codes; platforms get webhook on completion.
When to use
After PUT upload; Idempotency-Key required.
Endpoint
POST /v1/supplier/incoming/import
Authentication: X-Api-Key header (prefix bk_sup_). Do not send projectId or actor id in body — they come from the key.
Scope: supplier:incoming:write
Idempotency-Key: required (header). Retries with the same key return cached response.
Request example
{
"meta": { "requestId": "optional-uuid" },
"data": { "incomingId": "f47ac10b-…", "options": { "skipUsedRows": true } }
}
Response example
{
"success": true,
"data": {
"incomingId": "f47ac10b-…",
"status": "queued",
"importJobId": "job-uuid",
"fileHash": "sha256:…"
}
}
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/incoming/import" \
-H "Content-Type: application/json" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Idempotency-Key: unique-key-001" \
-d '{"data": { "incomingId": "f47ac10b-…", "options": { "skipUsedRows": true } }}'