Features
Refunds
Tokenization
Recurring Payments
POST/payments/{paymentId}/refund

Refund Payment

Process a refund for an existing payment

paymentId

string
required

Unique identifier for the payment to refund

example

Request Body

2 parameters

amount

number

Refund amount in cents (optional for full refund)

reason

stringrequired

Reason for refund

Request Preview
{
  "amount": 500,
  "reason": "requested_by_customer"
}

Responses

200

Refund processed successfully

{
  "id": "ref_1234567890",
  "payment_id": "pay_1234567890",
  "amount": 500,
  "currency": "USD",
  "status": "succeeded",
  "reason": "requested_by_customer",
  "created": 1647875400
}
Log in to use your API keys with Try It!
REQUEST
1234567