Invoices
Refund an invoice (full or partial)
AuthorizationBearer <token>
API key from Settings → API keys
In: header
Path Parameters
storeId*string
orderId*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/stores/string/invoices/string/refunds" \ -H "Content-Type: application/json" \ -d '{ "amountMinor": 1, "idempotencyKey": "stringst" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "lineAllocations": [ { "orderLineId": "3bba51e3-a0c1-4b14-a700-b2d3b8ed156d", "amountMinor": "string" } ], "amountMinor": -9007199254740991, "currency": "string", "kind": "string", "state": "string", "reason": "string", "externalId": "string", "failureMessage": "string", "createdAt": "string", "resolvedAt": "string", "reverseCashback": true, "reverseCommission": true, "undoable": true, "reversedAt": "string", "reversalReason": "string"}