Get list of coupons

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string

Time range from (inclusive). Local date and time (according to account timezone) on the form yyyy-MM-dd, yyyyMMdd, yyyy-MM-ddTHH:mm, yyyy-MM-ddTHH:mm:ss or yyyy-MM-ddTHH:mm:ss.SSS. Default from if no interval is given depends on the query. If the query limits on relation e.g. customer and/or subscription, the default from will be epoch 1970-01-01, otherwise one month before to

string

Time range to (exclusive). Local date and time (according to account timezone) on the form yyyy-MM-dd, yyyyMMdd, yyyy-MM-ddTHH:mm, yyyy-MM-ddTHH:mm:ss or yyyy-MM-ddTHH:mm:ss.SSS. Defaults to now.

string

Limit from to and interval back in time. E.g. one week. Will take precedence over from. Defined in ISO 8601 duration. See https://en.wikipedia.org/wiki/ISO_8601#Durations

int32
10 to 100
Defaults to 20

Page size between 10 and 100 (default 20)

string

Next page token from previous response to get next page

string
enum
Defaults to created

Time and date attribute to time limit. Can be the created or expired

Allowed:
string

Coupon exact handle

string

Coupon handle prefix

state
array of strings
enum

Coupon state, multiple can be defined. States: active, deleted, expired or generating

string
enum

Type of coupon. Accepted values: single or set

Allowed:
expire_reason
array of strings
enum

The expire reason if expired, multiple can be defined. Possible values: early, valid_until or max

string

Handle of discount to use for coupon

discount_currency
array of strings

Currency for discount on coupon in ISO 4217 three letter alpha code. Multiple can be defined.

discount_currency
string

Percentage discount applied to each applicable discount.

string

Eligible coupon by currency or percentage in ISO 4217 three letter alpha code

string

The coupon code. Maximum 128 characters.

string

Internal name for the coupon.

string

Whether all plans are eligible for this coupon. Values: true or false

string

Optional maximum number of times this coupon can be redeemed.

string

Number of times the coupon has been redeemed.

string

Valid-until period date interval

Responses

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json