cURL
curl --request POST \ --url https://live.copilot.fabric.inc/api-offers/coupon/list \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-site-context: <x-site-context>' \ --data '{ "offset": 0, "limit": 10, "keyword": "PROMO", "sortBy": "updatedAt", "sortOrder": "desc" }'
{ "query": { "limit": 10, "offset": 0, "count": 50 }, "promos": [ { "_id": "abcdefg1ee7ce20123456789", "promoId": 100013, "promoCodes": { "0": "SUMMER100", "1": "SUMMER20" }, "promoCount": 1, "state": "SCHEDULED", "isImplicit": false, "title": "CREATE PROMO", "startDate": "2019-08-24T14:15:22Z", "endDate": "2019-08-25T14:15:22Z", "isExclusive": true, "eligiblePriceList": [ 10000056 ], "level": 1, "stackingType": "STACKABLE", "updatedAt": "2019-08-20T14:15:22Z" } ] }
Retrieves a paginated list of all coupons.
x >= 0
1 <= x <= 100
updatedAt
title
startDate
endDate
desc
asc
Show child attributes
Was this page helpful?