Skip to main content
POST
/
api-offers
/
coupon
/
list
Get list of all coupons
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"
    }
  ]
}

Authorizations

Authorization
string
header
required

Headers

x-site-context
string
required
Example:

Body

application/json
offset
number
Required range: x >= 0
Example:
limit
number
default:10
Required range: 1 <= x <= 100
Example:
keyword
string
Example:
sortBy
enum<string>
default:updatedAt
Available options:
updatedAt,
title,
startDate,
endDate
Example:
sortOrder
enum<string>
default:desc
Available options:
desc,
asc
Example:

Response

query
object
promos
object[]