Discounts
List Discounts
GET
/
api
/
v1
/
discounts
curl --request GET \
--url https://app.flowglad.com/api/v1/discounts \
--header 'Authorization: <api-key>'
{
"data": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdByCommit": "<string>",
"updatedByCommit": "<string>",
"livemode": true,
"organizationId": "<string>",
"name": "<string>",
"code": "<string>",
"amount": 123,
"amountType": "percent",
"active": true,
"duration": "forever",
"numberOfPayments": "null"
}
],
"currentCursor": "<string>",
"nextCursor": "<string>",
"hasMore": true,
"total": 123
}
Authorizations
Response
200
application/json
Successful response
The response is of type object
.
curl --request GET \
--url https://app.flowglad.com/api/v1/discounts \
--header 'Authorization: <api-key>'
{
"data": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdByCommit": "<string>",
"updatedByCommit": "<string>",
"livemode": true,
"organizationId": "<string>",
"name": "<string>",
"code": "<string>",
"amount": 123,
"amountType": "percent",
"active": true,
"duration": "forever",
"numberOfPayments": "null"
}
],
"currentCursor": "<string>",
"nextCursor": "<string>",
"hasMore": true,
"total": 123
}
Assistant
Responses are generated using AI and may contain mistakes.