Refund payment
POST
/v1/payments/{payment_id}/refund
Refund a succeeded payment. Optionally specify an amount for partial refund.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” payment_id
required
Payment Id
string format: uuid
Request Body
Section titled “Request Body ” Any of:
RefundRequest
Schema for refund request with optional partial amount.
null
Responses
Section titled “ Responses ”Successful Response
PaymentResponse
Schema for payment response.
object
id
required
Id
string format: uuid
invoice_id
required
Invoice Id
string format: uuid
customer_id
required
Customer Id
string format: uuid
amount_cents
required
Amount Cents
string
currency
required
Currency
string
status
required
Status
string
provider
required
Provider
string
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time
Only succeeded payments can be refunded
Unauthorized – invalid or missing API key
Payment not found
Validation Error
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context