customer_subscriptions
Update a customer subscription
Changed onUpdate a customer subscription
patch/customer_subscriptions/{customerSubscriptionId}
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/customer_subscriptions/{customerSubscriptionId}
- AuthHTTP bearer
Path parameters
customerSubscriptionIdstring required
The resource's id
Request body
Example request
{
"data": {
"id": "XAyRWNUzyN",
"attributes": {
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
}
}
}Response
The updated customer subscription object
Changes
- breaking
request property
/was restricted to a list of enum values - info
the request property
//became nullable - info
the request property
//became nullable - info
the
request property default valuecustomer_subscriptionswas removed - info
added the new
customer_subscriptionsenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking