Start promo codes import from file

Queues parse + insert job; codes become available; webhooks fire on completion.

Queues parse + insert job; codes become available; webhooks fire on completion.

Why this method exists

Queues parse + insert job; codes become available; webhooks fire on completion.

When to use

After file upload succeeded; then poll incoming/get.

Endpoint

POST /v1/internal/promo-code-incoming/import

Authentication: JWT via Authorization: Bearer <token>. User must have project access and inventory_promo_codes permission.

Permission: inventory_promo_codes.import

Request example

{
  "meta": { "requestId": "optional-uuid" },
  "data": { "projectId": "a1b2…", "incomingId": "f47ac10b-…" }
}

Response example

{
  "success": true,
  "data": {
    "incomingId": "f47ac10b-…",
    "status": "queued",
    "importJobId": "job-uuid"
  }
}

Errors

  • UNAUTHORIZED / ACCESS_DENIED — access denied
  • VALIDATION_ERROR — invalid body
  • NOT_FOUND — resource not found
  • RATE_LIMIT_EXCEEDED (429) — rate limit

cURL

curl -X POST "https://api-external.promanta.ru/v1/internal/promo-code-incoming/import" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_JWT" \
  -d '{"data": { "projectId": "a1b2…", "incomingId": "f47ac10b-…" }}'

See also

Rate this article — your feedback helps us improve.

0 (0 оценок)