Skip to main content
POST
Apply 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}$

Body

application/json
code
string
required
serviceType
enum<string>
required
Available options:
project,
database,
mailServer,
bucket,
vm,
ai
serviceID
string
required

The service's _id.

Pattern: ^[0-9a-fA-F]{24}$

Response

The code was applied.

message
string