{"section":"tutorials","requestedLocale":"en","requestedSlug":"payment-refunds","locale":"en","slug":"payment-refunds","path":"docs/en/tutorials/payments/payments-overview/payment-refunds.md","branch":"main","content":"A refund returns the amount paid by the customer for a store purchase. This action may be required in several scenarios, such as:\n\n- The product can not be delivered due to logistical issues.\n- The product is temporarily out of stock.\n- The customer requests a product return.\n\nThere are two types of refunds:\n\n- __Total refund__: The entire order is canceled and the full purchase amount is returned to the customer.\n- __Parcial refund__: Only part of the purchase amount is refunded. For example, when the customer keeps one or more order items.\n\n## Priority rules for partial refunds\n\nFor purchases made using two different payment methods where a partial refund is requested, you need to determine which payment method will be prioritized for the refund. The VTEX payment gateway offers two priority rules:\n\n- __Lowest settled amount__: Defines that the refund will begin with the payment method that has the lowest settled (captured) amount so far.\n\n- __Credit card first (card-first)__: Determines that the refund will be made from the credit card balance first, followed by the other payment method used in the purchase, such as gift cards. This rule is subject to [specific payment settlement scenarios](#payment-settlement-scenarios).\n\n> ℹ️ VTEX stores are configured by default to use the **Lowest settled amount** rule. If you want to switch to the **Credit card first rule**, submit a request by opening a ticket with [VTEX Support](https://supporticket.vtex.com/support).\n\n### Payment settlement scenarios\n\nThe __Credit card first__ rule prioritizes credit card refunds in partial refunds with two payment methods. If the credit card balance isn’t enough, the remaining amount is refunded through the other method. However, when a partial refund is requested, the system checks the settled amount on the credit card, which may lead to variations in how the rule is applied.\n\nBelow are some possible scenarios for partial refunds involving a purchase made with both a credit card and a gift card:\n\n#### The credit card amount is already fully settled, or the refund amount is less than the settled amount\n\nThe refund will be issued using the total credit card balance. If the refund amount exceeds the available credit card balance, the remaining value will be refunded using the gift card balance.\n\n#### Credit card amount already settled is less than the refund amount\n\nThe refund will be issued first using the available credit card balance (settled amount). Any remaining amount will be refunded via gift card.\n\n#### Credit card amount not yet settled\n\nThe refund will first be issued using the gift card balance. If necessary, the system will wait for the remaining credit card amount to be cleared before completing the refund."}