Cancel or Refund Payment
Automatically determines whether to cancel or refund a payment based on its current status. If the payment is authorized but not captured, it cancels. If captured, it refunds.
Authorizations
Your public API key from the Yuno Dashboard
Your private secret key (server-side only)
Path Parameters
The unique identifier of the payment
Body
Response
Payment cancelled or refunded successfully
Unique payment identifier
"f47ac10b-58cc-4372-a567-0e02b2c3d479"
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Current payment status
SUCCEEDED, PENDING, DECLINED, REJECTED, CANCELLED, REFUNDED, PARTIALLY_REFUNDED, AUTHORIZED "SUCCEEDED"
{ "currency": "BRL", "value": 100 }
"BR"
"order-20260301-001"
"2026-03-01T14:31:00.000Z"
"2026-03-01T14:31:02.000Z"
Individual processing attempts for this payment
Refund records associated with this payment
3DS authentication details, present for card payments
Custom key-value pairs set by the merchant
Decline details when status is DECLINED or REJECTED
ID of the associated customer record
Installment details if payment was split into installments