Onward is requesting a refund of products for the specified Order in your platform. The onward_refundable object identifies the record that triggered the refund (for example, a Claim).
Security
api_key
- https://api.your-store.com/onwardhttps://api.your-store.com/onward/orders/{shopOrderId}/refund
curl -i -X POST \
https://api.your-store.com/onward/orders/18282/refund \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"shop_order_id": "18282",
"onward_refundable": {
"id": "456001",
"type": "Claim"
},
"line_items": [
{
"to_issue_amount": {
"currency": "USD",
"cents": 1099
},
"to_issue_amount_presentment": {
"currency": "CAD",
"cents": 1525
},
"shop_line_item_id": "91827",
"quantity_to_issue": 1
}
]
}'Response
{ "shop_refund_id": "123456" }