return_line_items
Update a return line item
Changed onUpdate a return line item
patch/return_line_items/{returnLineItemId}
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/return_line_items/{returnLineItemId}
- AuthHTTP bearer
Path parameters
returnLineItemIdstring required
The resource's id
Request body
Example request
{
"data": {
"id": "XAyRWNUzyN",
"attributes": {
"quantity": 4,
"_restock": true,
"return_reason": {
"size": "was wrong"
},
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
}
}
}Response
The updated return line item 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
//became nullable - info
the request property
//became nullable - info
the
request property default valuereturn_line_itemswas removed - info
added the new
return_line_itemsenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking