subscription_models
Create a subscription model
Changed onCreate a subscription model
post/subscription_models
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/subscription_models
- AuthHTTP bearer
Request body
Example request
{
"data": {
"attributes": {
"name": "EU Subscription Model",
"strategy": "by_frequency",
"frequencies": [
"hourly",
"10 * * * *",
"weekly",
"monthly",
"two-month"
],
"auto_activate": true,
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
}
}
}Response
The created subscription model object
Changes
- info
endpoint added
- info