Skip to main content
POST
Redeem several vouchers in one request

Authorizations

Authorization
string
header
required

Your API key in Authorization: Bearer <key>. Use vk_test_… keys against the sandbox and vk_live_… keys against production.

Headers

Idempotency-Key
string

Optional key (1-255 printable ASCII characters, no spaces; a UUID is ideal) that makes this POST safe to retry: the same key with the same request replays the stored response for 24 hours. See Idempotency.

Required string length: 1 - 255
Pattern: ^[\x21-\x7E]{1,255}$

Body

application/json

All-or-nothing batch of up to 10 vouchers.

items
object[]
required

1-10 items; the sum of quantity is at most 10.

Required array length: 1 - 10 elements
redemptionEntityId
integer<uint64>

An existing redemption entity for every redemption.

Required range: 0 <= x <= 18446744073709552000
redemptionEntity
object

Inline entity for every redemption.

metadata
object | null

Copied to every redemption.

Example:

Response

Created

Single-object envelope around a RedemptionBatch.

data
object
required

The result of a batch redemption.