{
"data": [
{
"id": "xYZkjABcde",
"type": "subscription_models",
"links": {
"self": "https://yourdomain.commercelayer.io/api/subscription_models/xYZkjABcde"
},
"attributes": {
"auto_activate": true,
"auto_cancel": false,
"created_at": "2018-01-01T12:00:00.000Z",
"frequencies": [
"hourly",
"10 * * * *",
"weekly",
"monthly",
"two-month"
],
"metadata": {
"foo": "bar"
},
"name": "EU Subscription Model",
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"strategy": "by_frequency",
"updated_at": "2018-01-01T12:00:00.000Z"
},
"relationships": {
"attachments": {
"links": {
"self": "https://yourdomain.commercelayer.io/api/subscription_models/xYZkjABcde/relationships/attachments",
"related": "https://yourdomain.commercelayer.io/api/subscription_models/xYZkjABcde/attachments"
}
},
"markets": {
"links": {
"self": "https://yourdomain.commercelayer.io/api/subscription_models/xYZkjABcde/relationships/markets",
"related": "https://yourdomain.commercelayer.io/api/subscription_models/xYZkjABcde/markets"
}
},
"order_subscriptions": {
"links": {
"self": "https://yourdomain.commercelayer.io/api/subscription_models/xYZkjABcde/relationships/order_subscriptions",
"related": "https://yourdomain.commercelayer.io/api/subscription_models/xYZkjABcde/order_subscriptions"
}
}
},
"meta": {
"mode": "test"
}
},
{
"other": "... 9 subscription_models (first page)"
}
],
"meta": {
"record_count": 140,
"page_count": 14
},
"links": {
"first": "https://yourdomain.commercelayer.io/api/subscription_models?page[number]=1&page[size]=10",
"next": "https://yourdomain.commercelayer.io/api/subscription_models?page[number]=2&page[size]=10",
"last": "https://yourdomain.commercelayer.io/api/subscription_models?page[number]=14&page[size]=10"
}
}