Create a subscription model
How to create a subscription model via API
Request
Arguments
Body Parameter
Type
Required
Example
curl -g -X POST \
'https://yourdomain.commercelayer.io/api/subscription_models' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer your-access-token' \
-H 'Content-Type: application/vnd.api+json' \
-d '{
"data": {
"type": "subscription_models",
"attributes": {
"name": "EU Subscription Model",
"frequencies": [
"hourly",
"10 * * * *",
"weekly",
"monthly",
"two-month"
]
}
}
}'Last updated