Discount codes
List discount codes
https://rcur.app/api/v2/discounts
Requires your API key as Authorization: Bearer <key>. See authentication.
Query parameters
-
pageintegerPage number for pagination
Default:
1
Responses
200 List of discount codes object
-
dataarray of Discounts18 child attributes · Discount
-
idstring required -
codestring required -
namestring nullable -
typestring requiredOne of
percentagefixed -
valuestring requiredA percentage, or an amount in the currency of the code
-
currencystring nullableOnly for a fixed amount
-
durationstring requiredHow many payments of a subscription get the discount: the first, the first duration_periods, or every payment
One of
oncerepeatingforever -
duration_periodsinteger nullable -
all_linksboolean requiredValid for every payment link, or only for the links in links
-
linksarray of stringsIds of the payment links the code is limited to
-
max_redemptionsinteger nullableHow often the code can be used in total, by all customers together
-
times_redeemedinteger -
once_per_customerboolean -
starts_atstring nullable -
expires_atstring nullable -
is_activeboolean required -
statusstring requiredOne of
activeinactivescheduledexpiredused_up -
created_atstring required
-
-
linksobject4 child attributes
-
firststring -
laststring -
prevstring nullable -
nextstring nullable
-
-
metaobject4 child attributes
-
current_pageinteger -
last_pageinteger -
per_pageinteger -
totalinteger
-