returns
Create a return
Changed onCreate a return
post/returns
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/returns
- AuthHTTP bearer
Request body
Example request
{
"data": {
"attributes": {
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
},
"relationships": {
"order": {
"data": {
"id": "XAyRWNUzyN"
}
},
"stock_location": {
"data": {
"id": "XAyRWNUzyN"
}
},
"reference_capture": {
"data": {
"id": "XAyRWNUzyN"
}
},
"tags": {
"data": {
"id": "XAyRWNUzyN"
}
}
}
}
}Response
The created return object
Changes
- breaking
added the new required request property
/// - breaking
added the new required request property
/// - breaking
request property
/was restricted to a list of enum values - warning
removed the request property
/// - warning
removed the request property
/// - warning
removed the request property
/// - warning
removed the request property
/// - info
added the new optional request property
// - info
added the new optional request property
// - info
the
request property default valuereturnswas removed - info
added the new
returnsenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking