Create a stock transfer
Changed onCreate a stock transfer
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/stock_transfers
- AuthHTTP bearer
Request body
Example request
{
"data": {
"attributes": {
"number": "1234",
"sku_code": "TSHIRTMM000000FFFFFFXLXX",
"quantity": 2,
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
},
"relationships": {
"sku": {
"data": {
"id": "XAyRWNUzyN"
}
},
"origin_stock_location": {
"data": {
"id": "XAyRWNUzyN"
}
},
"destination_stock_location": {
"data": {
"id": "XAyRWNUzyN"
}
},
"shipment": {
"data": {
"id": "XAyRWNUzyN"
}
},
"line_item": {
"data": {
"id": "XAyRWNUzyN"
}
}
}
}
}Response
The created stock transfer object
Changes
- breaking
added the new required request property
/// - breaking
added the new required request property
/// - breaking
added the new required request property
/// - 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
/// - warning
removed the request property
/// - warning
removed the request property
/// - 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
the
request property default valuestock_transferswas removed - info
added the new
stock_transfersenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking