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

Authorization
string
header
required

Query Parameters

cursor
string
limit
number
Required range: 1 <= x <= 100

Response

200
application/json

Successful response

The response is of type object.