Skip to main content
GET
/
v1
/
subscriptions
Get all subscriptions
curl --request GET \
  --url https://prod01.copilot.fabric.inc/data-subscription/v1/subscriptions \
  --header 'Authorization: Bearer <token>'
{
  "responseStatus": "OK",
  "message": "Request processed successfully",
  "data": {
    "subscriptions": [
      {
        "id": "6256610bc312410009b7390b",
        "customer": {
          "id": "62cffd65e8d7eb868c6a29d6",
          "customerReferenceId": "12345",
          "locale": "en_US",
          "email": "customer@example.com",
          "contactNumber": "+923333709568",
          "firstName": "Pat",
          "middleName": "E",
          "lastName": "Kake",
          "segment": [
            "employee"
          ],
          "employeeId": "345",
          "communicationPreference": {
            "email": true,
            "sms": true
          },
          "status": "ACTIVE",
          "createdAt": "2021-10-12T21:35:05.756Z",
          "updatedAt": "2021-10-14T05:40:55.997Z"
        },
        "expiry": {
          "expiryDate": "2022-07-18T09:16:11.437Z",
          "billingCycles": 2
        },
        "customAttributes": {
          "storeId": "60cb07fc20387b000821c5c3",
          "associateId": 1,
          "trackingUrl": "609436d21baded0008945b05"
        },
        "status": "ACTIVE",
        "isDeleted": false,
        "deletedAt": "2019-01-01T00:00:00.000Z",
        "channel": "WEBSITE",
        "originOrderId": "22-4498-4800",
        "offsetDays": 2,
        "createdAt": "2021-10-12T21:35:05.756Z",
        "updatedAt": "2021-10-14T05:40:55.997Z",
        "statusUpdatedAt": "2021-10-14T10:24:36.468Z"
      }
    ],
    "query": {
      "limit": 10,
      "offset": 10,
      "count": 100
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

limit
number

Maximum number of subscriptions to return per page

Example:

10

offset
number

Page number

Example:

0

status
string

Subscription status

Example:

"ACTIVE"

Response

Request processed successfully

Subscriptions array

responseStatus
string

Brief response status

Example:

"OK"

message
string

Full response message

Example:

"Request processed successfully"

data
object

Subscriptions array