Skip to content
VaakyoDocs
Navigation
Open console →

Billing

Redeem a coupon

POST/api/v1/billing/coupons/redeem

A credit coupon adds its credits now; a top-up bonus coupon waits for the next paid top-up (the checkout shows the bonus).

Authorization

A signed-in member with the billing.manage permission (Authorization: Bearer session token). API keys can’t do this.

Authorization: Bearerbilling.manageworks before activation

Query parameters

timezonestringdefault: "Asia/Kolkata"

IANA time zone for every timestamp in the response (at, date, timestamp and *_at fields), as ISO 8601 with the offset. The X-Timezone header works too; the zone used comes back in the X-Timezone response header. An unknown zone is a 400.

Body application/json

codestringrequired

1 to 40 characters

Response

200Success.

No body.

401No credentials, or they are invalid or revoked.
detailstring

What went wrong, in plain words.

403Your role (or an API key) lacks the permission.
detailstring

What went wrong, in plain words.

422Validation Error
detailobject[]
Show item attributes
locstring | integer[]
msgstring
typestring
Esc