Skip to main content
GET
Check a discount code

Authorizations

Authorization
string
header
required

Send your API token as Authorization: Bearer <api-token>.

Query Parameters

teamID
string

Run the request in the context of a team you belong to, instead of your personal account. 24-character hexadecimal ID.

Pattern: ^[0-9a-fA-F]{24}$
code
string
required
serviceType
enum<string>
required
Available options:
project,
database,
mailServer,
bucket,
vm,
ai

Response

The discount code's terms.

_id
string
code
string
discountPercentage
number
maxUsageAmount
number

The most the code can discount in total.

validUntil
string<date-time>

Last moment the code can be applied.

timespan
integer

How many days the discount lasts once applied.

serviceType
string
createdAt
string<date-time>