Reference
cURL
curl --request POST \ --url https://api-sandbox.y.uno/v1/payments/{payment_id}/transactions/{transaction_id}/cancel-or-refund \ --header 'Content-Type: application/json' \ --header 'X-Idempotency-Key: <x-idempotency-key>' \ --data ' { "merchant_reference": "<string>", "description": "<string>", "reason": "DUPLICATE" } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "status": "<string>", "type": "PURCHASE", "amount": { "currency": "<string>", "value": 123 }, "created_at": "2023-11-07T05:31:56Z" }
Smart endpoint — cancels if authorized-only, refunds if already captured.
Unique UUID per request. Prevents duplicate processing on retries.
3 - 255
DUPLICATE
FRAUDULENT
REQUESTED_BY_CUSTOMER
REVERSE
Include for partial refund. Omit for full refund.
Show child attributes
Cancelled or refunded
PURCHASE
CAPTURE
CANCEL
REFUND
VERIFY
Was this page helpful?
Contact support