-
Full Refund: Set
amount
to0
or omit it entirely. The entire transaction amount will be refunded. Subscription immediately becomes EXPIRED, One-off payment - revoked. -
Partial Refund: Set
amount
to a positive value (in the transaction’s currency). Auto-renewal is disabled automatically. Must not exceed the original transaction amount. -
Soft Refund: Set
soft_refund
totrue
. Funds are refunded, but auto-renewal remains enabled. No effect on subscription or one-off purchase.
- Transaction must belong to the project associated with the API key
- Project must have billing configured with appropriate organization IDs
- Transaction status should be in a refundable state
Headers
Project Secret Key
Example:
"secret_"
Path Parameters
Transaction ID
Body
application/json
Refund amount in cents. 0 for full refund, positive value for partial refund
Example:
0
If true, the refund is only recorded but not actually processed with the payment provider
Reason for the refund (e.g., duplicate, fraudulent, requested_by_customer)
Example:
"requested_by_customer"
Additional comment or details about the refund
Example:
"Customer requested refund due to billing error"
Response
Refund processed successfully
The ID of the refunded transaction
Status of the refund operation
Available options:
success
, pending
, failed
Additional information about the refund
Amount that was refunded
Example:
100
Currency of the refund
Timestamp when the refund was processed