Checkout
Request a return for delivered physical items
Path Parameters
storeId*string
uniqueId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/v1/public/stores/string/invoices/string/returns" \ -H "Content-Type: application/json" \ -d '{ "reason": "string", "items": [ { "orderLineId": "3bba51e3-a0c1-4b14-a700-b2d3b8ed156d", "qty": 1 } ], "idempotencyKey": "stringst" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5", "status": "string", "reason": "string", "merchantNote": "string", "refundMinor": -9007199254740991, "refundId": "3324897f-393a-4bf6-b3af-0b999cbc2521", "items": [ { "orderLineId": "3bba51e3-a0c1-4b14-a700-b2d3b8ed156d", "qty": -9007199254740991 } ], "requestedAt": "string", "decidedAt": "string", "receivedAt": "string"}