Create a Return Against an Order
POST {{baseUrl}}/v1/orders/:orderId/returns
Make a return against an order. The maximum amount of the return is the amount of the order
Request Body
{"items"=>[{"description"=>"<string>", "parent"=>"<string>", "type"=>"sku", "quantity"=>"<number>", "currency"=>"<string>", "amount"=>"<number>", "order_id"=>"<string>"}, {"description"=>"<string>", "parent"=>"<string>", "type"=>"sku", "quantity"=>"<number>", "currency"=>"<string>", "amount"=>"<number>", "order_id"=>"<string>"}], "order_id"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"data":{"id":"\u003cstring\u003e","amount":"\u003cnumber\u003e","created":"\u003cinteger\u003e","currency":"KES","items":[{"amount":"\u003cnumber\u003e","currency":"CDF","description":"\u003cstring\u003e","parent":"\u003cnumber\u003e","quantity":"\u003cnumber\u003e","type":"\u003cstring\u003e"},{"amount":"\u003cnumber\u003e","currency":"KPW","description":"\u003cstring\u003e","parent":"\u003cnumber\u003e","quantity":"\u003cnumber\u003e","type":"\u003cstring\u003e"}],"order":"\u003cstring\u003e","refund":"\u003cstring\u003e"},"status":{"error_code":"\u003cstring\u003e","message":"\u003cstring\u003e","operation_id":"\u003cstring\u003e","response_code":"\u003cstring\u003e","status":"\u003cstring\u003e"}}