List all subscription models
How to fetch a collection of subscription models via API
To fetch a collection of subscription models, send a GET request to the /api/subscription_models endpoint.
Request
GET https://yourdomain.commercelayer.io/api/subscription_models
Example
The following request fetches a collection of subscription models:
curl -g -X GET \
'https://yourdomain.commercelayer.io/api/subscription_models/' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer your-access-token'Remember that when you fetch a list of resources you get paginated result.
Sortable fields
The list of subscription models can be sorted by the following fields:
Attributes
namestrategyidcreated_atupdated_atreferencereference_origin
Filterable fields
The list of subscription models can be filtered by the following fields:
Attributes
namestrategyauto_activateauto_cancelidcreated_atupdated_atreferencereference_originmetadata
Relationships
attachments
Last updated

