order_copies
Create an order copy
Changed onCreate an order copy
post/order_copies
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/order_copies
- AuthHTTP bearer
Request body
Example request
{
"data": {
"attributes": {
"place_target_order": true,
"reuse_wallet": true,
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
},
"cancel_source_order": true,
"apply_promotions": true,
"skip_errors": true,
"ignore_invalid_coupon": true
},
"relationships": {
"source_order": {
"data": {
"id": "XAyRWNUzyN"
}
}
}
}
}Response
The created order copy object
Changes
- 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
/// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
the
request property default valueorder_copieswas removed - info
added the new
order_copiesenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking