Refund Payment
Issues a partial or full refund for an existing payment transaction.
amount, a partial refund will be created. If the amount is omitted, a full refund of the original payment will be processed.
amount.value minus discount_amount. A full refund returns that amount, and an amount above what is left to refund is rejected with 400 INVALID_PARAMETERS. See Promotions.X-Idempotency-Key. Check the Authentication page for more information.Authorizations
Path Parameters
Body
Indicating the reason for the refund. If set, possible values are DUPLICATE, FRAUDULENT, REQUESTED_BY_CUSTOMER, and REVERSE. Use REVERSE to request an automatic reverse of the recipient funds when a recipient is involved in the transaction.
DUPLICATE, FRAUDULENT, REQUESTED_BY_CUSTOMER, REVERSE Determines whether Yuno should automatically attempt to refund a payment after an initial error or decline. When set to true, Yuno will retry the process if the first attempt fails. By default, this is set to false. Access Transaction Retries for more details.
Response
201
- Full Refund
- Partial Refund
The total discount of the Yuno promotion applied to the payment: the sum of the YUNO_PROMOTION lines of additional_data.order.discounts. Absent when no promotion applied. The amount charged is amount.value minus this value, and it is on transactions.amount. See Promotions.