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": "[email protected]",
"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"
},
"item": {
"id": 1000000006,
"sku": "MOBO-X570",
"quantity": 1,
"itemPrice": {
"price": 100,
"currencyCode": "USD"
},
"weight": 10,
"weightUnit": "lb",
"title": "Vitamin",
"description": "Vitamin C",
"tax": {
"taxCode": "FR020000",
"taxAmount": 10,
"currencyCode": "USD"
}
},
"plan": {
"frequency": 30,
"frequencyType": "Daily",
"id": "1001"
},
"offer": {
"id": "SUB-E10717",
"source": "PDP"
},
"shipping": {
"shipmentCarrier": "USPS",
"shipmentMethod": "Ground",
"shipmentInstructions": "Please leave the package in the box",
"taxCode": "SHP020000",
"shippingAmount": 10,
"taxAmount": 1,
"currencyCode": "USD"
},
"expiry": {
"expiryDate": "2022-07-18T09:16:11.437Z",
"billingCycles": 2
},
"shipTo": {
"name": {
"firstName": "Pat",
"lastName": "Kake",
"middleName": "E"
},
"streetAddress": {
"street1": "123 Main St",
"street2": "Suite 100"
},
"city": "Boston",
"state": "MA",
"postalCode": "02127",
"country": "US",
"phone": {
"number": "5555551234",
"kind": "home"
}
},
"billTo": {
"name": {
"firstName": "Pat",
"lastName": "Kake",
"middleName": "E"
},
"streetAddress": {
"street1": "123 Main St",
"street2": "Suite 100"
},
"city": "Boston",
"state": "MA",
"postalCode": "02127",
"country": "US",
"phone": {
"number": "5555551234",
"kind": "home"
}
},
"paymentDetails": {
"paymentIdentifier": {
"cardIdentifier": "1234",
"expiryDate": "12/20"
},
"paymentMethod": "credit_card",
"paymentKind": "Visa"
},
"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
}
}
}Get all subscriptions (response is paginated)
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": "[email protected]",
"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"
},
"item": {
"id": 1000000006,
"sku": "MOBO-X570",
"quantity": 1,
"itemPrice": {
"price": 100,
"currencyCode": "USD"
},
"weight": 10,
"weightUnit": "lb",
"title": "Vitamin",
"description": "Vitamin C",
"tax": {
"taxCode": "FR020000",
"taxAmount": 10,
"currencyCode": "USD"
}
},
"plan": {
"frequency": 30,
"frequencyType": "Daily",
"id": "1001"
},
"offer": {
"id": "SUB-E10717",
"source": "PDP"
},
"shipping": {
"shipmentCarrier": "USPS",
"shipmentMethod": "Ground",
"shipmentInstructions": "Please leave the package in the box",
"taxCode": "SHP020000",
"shippingAmount": 10,
"taxAmount": 1,
"currencyCode": "USD"
},
"expiry": {
"expiryDate": "2022-07-18T09:16:11.437Z",
"billingCycles": 2
},
"shipTo": {
"name": {
"firstName": "Pat",
"lastName": "Kake",
"middleName": "E"
},
"streetAddress": {
"street1": "123 Main St",
"street2": "Suite 100"
},
"city": "Boston",
"state": "MA",
"postalCode": "02127",
"country": "US",
"phone": {
"number": "5555551234",
"kind": "home"
}
},
"billTo": {
"name": {
"firstName": "Pat",
"lastName": "Kake",
"middleName": "E"
},
"streetAddress": {
"street1": "123 Main St",
"street2": "Suite 100"
},
"city": "Boston",
"state": "MA",
"postalCode": "02127",
"country": "US",
"phone": {
"number": "5555551234",
"kind": "home"
}
},
"paymentDetails": {
"paymentIdentifier": {
"cardIdentifier": "1234",
"expiryDate": "12/20"
},
"paymentMethod": "credit_card",
"paymentKind": "Visa"
},
"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
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Maximum number of subscriptions to return per page
10
Page number
0
Subscription status
"ACTIVE"
Request processed successfully
Subscriptions array
Brief response status
"OK"
Full response message
"Request processed successfully"
Subscriptions array
Show child attributes
Subscriptions
Show child attributes
Subscription ID
"6256610bc312410009b7390b"
Customer details after creation
Show child attributes
Customer ID
"62cffd65e8d7eb868c6a29d6"
Customer reference ID
"12345"
Customer locale (language_country)
"en_US"
Customer's email address
Customer's contact number
"+923333709568"
Customer's first name
"Pat"
Customer's middle name or initial
"E"
Customer's last name
"Kake"
Customer's segments
Customer's segment (employee, management, pro user, etc.)
Customer employee ID
"345"
Customer's communications preferences
Show child attributes
true: Customer agrees to be contacted via email
false: Customer does not want to be contacted via email
true
true: Customer agrees to be contacted via text message
false: Customer does not want to be contacted via text message
true
Customer status
ACTIVE, INACTIVE "ACTIVE"
Time customer was created
"2021-10-12T21:35:05.756Z"
Most recent time customer was updated
"2021-10-14T05:40:55.997Z"
Item details
Show child attributes
Item ID
1000000006
Item SKU
"MOBO-X570"
Number of items
1
Item weight amount
10
Item weight unit
"lb"
Item name
"Vitamin"
Item description
"Vitamin C"
Subscription plan details
Shipping details
Show child attributes
Shipment carrier
"USPS"
Shipment method
"Ground"
Shipment instructions
"Please leave the package in the box"
Shipment tax code
"SHP020000"
Shipping cost
10
Shipment tax amount (value, not percentage)
1
Shipment currency code
"USD"
Ship-to address and phone details
Show child attributes
Customer's name
City name
"Boston"
State name
"MA"
Postal code
"02127"
Country name
"US"
Bill-to address and phone details
Show child attributes
Customer's name
City name
"Boston"
State name
"MA"
Postal code
"02127"
Country name
"US"
Payment details
Show child attributes
Payment method
"credit_card"
Payment type
"Visa"
Custom attributes
Subscription status
"ACTIVE"
true: Subscription is deleted
false: Subscription is not deleted
false
If isDeleted=true, time at which the subscription was deleted
If isDeleted=false, NULL
"2019-01-01T00:00:00.000Z"
Channel
"WEBSITE"
Client's origin order ID
"22-4498-4800"
Number of days after which order is to be created
2
Time subscription was created
"2021-10-12T21:35:05.756Z"
Most recent time subscription was updated
"2021-10-14T05:40:55.997Z"
Most recent time order status was updated
"2021-10-14T10:24:36.468Z"
Was this page helpful?