Discounts
List discounts
Discounts, a page at a time, filtered by the query fields listed; a repeated field matches any of its values.
Authorization
bearer discounts:readAuthorizationBearer <token>
A v1 API key; the scope named is the one the route needs.
In: header
Scope: discounts:read
Query Parameters
limit?integer
Range
1 <= value <= 100Default
20cursor?string
Match
^[A-Za-z0-9_-]{1,512}$type?string
active?string
currency?string
code?string
archived?string
expired?string
Response Body
application/json
application/problem+json
curl -X GET "https://example.com/v1/discounts"{ "data": [ { "id": "string", "liveMode": true, "type": "string", "name": "string", "value": 0, "valueType": "string", "code": "string", "currency": "string", "validFrom": "2019-08-24T14:15:22Z", "validUntil": "2019-08-24T14:15:22Z", "timezone": "string", "purchaseLimit": 1, "timesUsed": 0, "includedOfferIds": [ "string" ], "excludedOfferIds": [ "string" ], "appliesToAllOffers": true, "active": true, "archivedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "nextCursor": "string"}