Copy {
"data" : {
"id" : "xYZkjABcde" ,
"type" : "stock_reservations" ,
"links" : {
"self" : "https://yourdomain.commercelayer.io/api/stock_reservations/xYZkjABcde"
} ,
"attributes" : {
"created_at" : "2018-01-01T12:00:00.000Z" ,
"expires_at" : "2018-01-02T12:00:00.000Z" ,
"metadata" : {
"foo" : "bar"
} ,
"quantity" : 4 ,
"reference" : "ANY-EXTERNAL-REFEFERNCE" ,
"reference_origin" : "ANY-EXTERNAL-REFEFERNCE-ORIGIN" ,
"status" : "draft" ,
"updated_at" : "2018-01-01T12:00:00.000Z"
} ,
"relationships" : {
"line_item" : {
"links" : {
"self" : "https://yourdomain.commercelayer.io/api/stock_reservations/xYZkjABcde/relationships/line_item" ,
"related" : "https://yourdomain.commercelayer.io/api/stock_reservations/xYZkjABcde/line_item"
}
} ,
"order" : {
"links" : {
"self" : "https://yourdomain.commercelayer.io/api/stock_reservations/xYZkjABcde/relationships/order" ,
"related" : "https://yourdomain.commercelayer.io/api/stock_reservations/xYZkjABcde/order"
}
} ,
"reserved_stock" : {
"links" : {
"self" : "https://yourdomain.commercelayer.io/api/stock_reservations/xYZkjABcde/relationships/reserved_stock" ,
"related" : "https://yourdomain.commercelayer.io/api/stock_reservations/xYZkjABcde/reserved_stock"
}
} ,
"sku" : {
"links" : {
"self" : "https://yourdomain.commercelayer.io/api/stock_reservations/xYZkjABcde/relationships/sku" ,
"related" : "https://yourdomain.commercelayer.io/api/stock_reservations/xYZkjABcde/sku"
}
} ,
"stock_item" : {
"links" : {
"self" : "https://yourdomain.commercelayer.io/api/stock_reservations/xYZkjABcde/relationships/stock_item" ,
"related" : "https://yourdomain.commercelayer.io/api/stock_reservations/xYZkjABcde/stock_item"
}
}
} ,
"meta" : {
"mode" : "test"
}
}
}