curl --request GET \
--url https://app.flowglad.com/api/v1/discounts/{id} \
--header 'Authorization: <api-key>'{
"discount": {
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"organizationId": "<string>",
"name": "<string>",
"code": "<string>",
"amount": 123,
"amountType": "percent",
"active": true,
"duration": "<string>",
"numberOfPayments": "<unknown>"
}
}curl --request GET \
--url https://app.flowglad.com/api/v1/discounts/{id} \
--header 'Authorization: <api-key>'{
"discount": {
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"organizationId": "<string>",
"name": "<string>",
"code": "<string>",
"amount": 123,
"amountType": "percent",
"active": true,
"duration": "<string>",
"numberOfPayments": "<unknown>"
}
}Successful response
A discount record, which describes a discount that can be applied to purchases or subscriptions. Discounts can be one-time, have a fixed number of payments, or be applied indefinitely.
Show child attributes
Epoch milliseconds.
-9007199254740991 <= x <= 9007199254740991Epoch milliseconds.
-9007199254740991 <= x <= 9007199254740991The discount code, must be unique and between 3 and 20 characters.
3 - 20A positive integer
x <= 9007199254740991percent, fixed "forever"Was this page helpful?