stores
Update a store
Changed onUpdate a store
patch/stores/{storeId}
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/stores/{storeId}
- AuthHTTP bearer
Path parameters
storeIdstring required
The resource's id
Request body
Example request
{
"data": {
"id": "XAyRWNUzyN",
"attributes": {
"name": "Rome Shop",
"code": "europe1",
"shipment_policy": "auto_delivered",
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
},
"relationships": {
"market": {
"data": {
"id": "XAyRWNUzyN"
}
},
"merchant": {
"data": {
"id": "XAyRWNUzyN"
}
},
"stock_location": {
"data": {
"id": "XAyRWNUzyN"
}
}
}
}
}Response
The updated store object
Changes
- info
added the new optional request property
// - info
added the optional property
//to the response with the status
- info
- info
endpoint added
- info