List promo codes

Returns every promo code currently on offer, each with its discount percentage and the shortest billing cycle it can be used with. The list is not filtered by the plan in the path.

GET
/plans/{plan}/promo-codes

Authorization

BearerToken
AuthorizationBearer <token>

In: header

Path Parameters

plan*integer

The plan ID

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/plans/0/promo-codes"
[  {    "code": "string",    "percentage": 0,    "minimum_billing_cycle": 0  }]