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",
"amount": {
"currency": "<string>",
"value": 123
}
}
'