Skip to main content
POST
Create a voucher set

Authorizations

Authorization
string
header
required

Partner API key: Authorization: Bearer vk_live_…. Use vk_test_… keys against the sandbox. See Authentication.

Headers

Idempotency-Key
string

Optional on every POST: 1-255 printable ASCII characters without spaces (a UUID is recommended). 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

Create a voucher set in draft.

internalName
string
required

1-120 characters; never shown to consumers.

Required string length: 1 - 120
voucherKind
enum<string>
required

Kind of vouchers. Treat as an open set: new values may be added.

Available options:
code,
link
content
object

Becomes draftContent (partial content allowed).

Response

Success.

Single-object envelope around VoucherSet.

data
object
required

A voucher set (provider view).