Skip to main content
POST

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

Exactly one of voucherSetId and providerId; at most one of redemptionEntityId and redemptionEntity.

voucherSetId
integer<uint64>

Redeem from this voucher set.

Required range: 0 <= x <= 18446744073709552000
providerId
integer<uint64>

Redeem from the provider's best redeemable set (by your position, then activation).

Required range: 0 <= x <= 18446744073709552000
redemptionEntityId
integer<uint64>

An existing redemption entity.

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

Inline entity, upserted by refId.

metadata
object | null

Stored on the redemption and forwarded in the redemption-created webhook. Never put personal data here.

Example:

Response

Created

Single-object envelope around a Redemption.

data
object
required

A redemption (consumer view). Append-only. Also the payload of the redemption-created and redemption-voided webhooks.