Skip to main content
POST
Redeem a voucher

Headers

cf-turnstile-response
string
required

Cloudflare Turnstile token from the storefront widget (required in production)

Body

application/json
code
string
required

Voucher code

Example:

"ABC123"

shopId
string
required

Shop ID (ObjectId)

Example:

"664f1a2b3c4d5e6f7a8b9c0d"

nickname
string
required

Player nickname

Example:

"Steve"

Response

OK

success
boolean
Example:

true

data
object
message
string