Discount codes
Show discount code
https://rcur.app/api/v2/discounts/{id}
Requires your API key as Authorization: Bearer <key>. See authentication.
Path parameters
-
idstring required
Responses
200 Discount code details Discount object
-
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
404 Resource not found Error object
-
statusinteger required -
errorstring required