order_subscriptions
Create an order subscription
Changed onCreate an order subscription
post/order_subscriptions
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/order_subscriptions
- AuthHTTP bearer
Request body
Example request
{
"data": {
"attributes": {
"frequency": "monthly",
"activate_by_source_order": true,
"place_target_order": true,
"renewal_alert_period": 1,
"starts_at": "2018-01-01T12:00:00.000Z",
"expires_at": "2018-01-02T12:00:00.000Z",
"options": {
"place_target_order": false
},
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
},
"relationships": {
"market": {
"data": {
"id": "XAyRWNUzyN"
}
},
"source_order": {
"data": {
"id": "XAyRWNUzyN"
}
},
"tags": {
"data": {
"id": "XAyRWNUzyN"
}
}
}
}
}Response
The created order subscription object
Changes
- info
added the optional property
//to the response with the status
- info
- warning
added the new
pendingenum value to the//response property for the response status
- warning