Skip to main content
POST
Generate a batch of vouchers

Authorizations

X-API-Key
string
header
required

Path Parameters

shopId
string
required

Shop ID (ObjectId)

Body

application/json
count
number
required

Number of vouchers to generate

Required range: 1 <= x <= 100
Example:

10

productId
string
required

Product ID (ObjectId)

Example:

"664f1a2b3c4d5e6f7a8b9c0d"

serverId
string
required

Server ID (ObjectId)

Example:

"664f1a2b3c4d5e6f7a8b9c0e"

expiresAt
string

Expiration date (ISO 8601)

Response

OK

success
boolean
Example:

true

data
object[]
message
string