Authorization
string
required
Example:
Authorization | Bearer Paste-Your-API-Key-HereQuery Parameters
integer
default:"10"
Number of items to return per page. Defaults to
10.string
Cursor for forward pagination. Pass the
nextStartingAfter value from the
previous response to fetch the next page.string
Filter the list by campaign status. Accepted values:
active, inactive,
expired, upcoming.string
Filter the list by keyword, matched against the coupon / discount campaign
name.
string
Return only the campaigns that apply to the given product (payment link) ID.
Response
Successful ResponseMain Structure (Root)
integer
Status code from API.
string
Status message that describes the status code.
object
The list payload, holding the
coupons array.boolean
Information on whether there is additional data to be retrieved (true/false).
string | null
Cursor to pass as
startingAfter to fetch the next page. null when there is
no further data.data Structure (Object)
array of object
List of coupons / discount campaigns. Each item is one discount campaign.
coupons Structure (Array Of Object)
string<uuid>
Discount campaign ID.
string
Discount campaign name.
string
Campaign status (
active, inactive, expired, or upcoming).number
Discount value applied by the campaign.
integer
Number of times the campaign’s coupons have been used.
string
Creation time in ISO 8601 format.
string | null
Expiration time in ISO 8601 format, or
null when the campaign does not
expire.array of object
Products the campaign applies to (empty when it applies to all products).
coupons.products Structure (Array Of Object)
string<uuid>
Product (payment link) ID the campaign applies to.
string
Name of the product (payment link).
