Skip to main content
POST
cURL
Issue a full refund and return the provider-neutral refund resource with its actual status.

Authorizations

x-api-key
string
header
required

Headers

Idempotency-Key
string

Unique key used to safely retry this write for 24 hours without applying it twice.

Required string length: 1 - 200
Commet-Version
string
default:2026-08-27

API version used by this reference. Send this header to select this contract explicitly.

Path Parameters

id
string
required

Body

application/json
amount
integer

Amount returned to the customer, including tax, in the payment currency’s smallest unit. Omit to refund the remainder.

Required range: x <= 9007199254740991

Response

Success

id
string
required
transactionId
string
required
amount
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
currency
string
required
chargeId
string | null
required
status
enum<string>
required
Available options:
pending,
requires_action,
succeeded,
failed,
canceled
reason
enum<string> | null
required
Available options:
duplicate,
fraudulent,
requested_by_customer
object
string
required
Allowed value: "refund"
livemode
boolean
required