Skip to main content
GET
List your discount codes

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}$
page
integer
default:1

Page number, starting at 1.

Required range: x >= 1
count
integer
default:10

Items per page.

Required range: x >= 1
serviceType
enum<string>

Only list codes applied to this kind of service.

Available options:
project,
database,
mailServer,
bucket,
vm,
ai

Response

Your discount codes.

totalDiscountCodes
integer
discountCodes
object[]