Create a refund
Creates a full or partial refund for an order owned by the authenticated organization. Specify either amountUnits or amount for a partial refund; omit both to refund the entire remaining refundable balance. The amount must be positive and cannot exceed the order’s remaining refundable balance.
Authorizations
The Server API Key obtained from the kelviq application. Pass as a Bearer token in the Authorization header. Example: 'Authorization: Bearer YOUR_API_KEY'
Body
Parameters for a full or partial refund. Omit both amount fields to refund the order's entire remaining refundable balance.
The ID of an order owned by the authenticated organization.
"ORD-20260715123000-A1B2C"
Amount to refund in the currency's minor unit (for example, cents for USD). Takes precedence when amount is also provided.
x >= 12500
Amount to refund in the currency's major unit (for example, dollars for USD). Used only when amountUnits is omitted. For zero-decimal currencies, provide a whole number.
x > 025
Reason for the refund. Defaults to REQUESTED_BY_CUSTOMER.
DUPLICATE, FRAUDULENT, REQUESTED_BY_CUSTOMER, OTHER "REQUESTED_BY_CUSTOMER"
Optional internal note associated with the refund.
"Customer requested a partial refund."
Response
Refund initiated. The returned status reflects the payment provider's current result.
A refund returned by list, create, and retrieve operations.
"7c2f3a91-2d4e-4a8b-9b1c-6f0a2e5d9c11"
DUPLICATE, DASHBOARD_INITIATED, FRAUDULENT, REQUESTED_BY_CUSTOMER, OTHER "REQUESTED_BY_CUSTOMER"
2500
25
"Customer requested a partial refund."
null
PENDING, PROCESSING, SUCCEEDED, FAILED, CANCELED "SUCCEEDED"
The complete serialized order associated with the refund.