> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upflow.io/llms.txt
> Use this file to discover all available pages before exploring further.

# NetSuite - Upflow refund management

> How Upflow exports refunds to NetSuite as Customer Refunds, including handling for payments with or without invoice allocation and partial refunds.

When you trigger a refund for a payment that Upflow initiated, we will export that refund to NetSuite. For a refund in Upflow, we generate a *Customer Refund* in NetSuite.

# Refund of a payment not applied to an invoice

When the original payment is not applied to an invoice, we will generate the refund and apply it directly to the payment.

<img src="https://mintcdn.com/upflow-04dc27cd/2qhrUMUVDO3Bt9n_/images/45487767232273.png?fit=max&auto=format&n=2qhrUMUVDO3Bt9n_&q=85&s=071c4b8c7f488012f07a4622741f380e" alt="" width="640" data-path="images/45487767232273.png" />NetSuite - Refund applied to the original payment<img src="https://mintcdn.com/upflow-04dc27cd/2qhrUMUVDO3Bt9n_/images/45487757069457.png?fit=max&auto=format&n=2qhrUMUVDO3Bt9n_&q=85&s=d36058a2584b739b1cdb781c4ecb06be" alt="" width="640" data-path="images/45487757069457.png" />Upflow - Refund applied to the original payment

# Refund of a payment with invoice allocation

When the original payment is applied to an invoice, we will leave the payment applied to the invoice and generate a credit memo on which the refund will be applied.

If the payment impacts multiple invoices, we will generate multiple credit notes.

## Refund of a payment fully applied to an invoice

In the case of a refund for a payment that fully paid the invoice, we will generate a credit memo using the invoice line items.

<img src="https://mintcdn.com/upflow-04dc27cd/2qhrUMUVDO3Bt9n_/images/45487767505297.png?fit=max&auto=format&n=2qhrUMUVDO3Bt9n_&q=85&s=3a0836f06505fa7817c25b66b083da31" alt="" width="640" data-path="images/45487767505297.png" />Upflow - Original payment applied to several invoices<img src="https://mintcdn.com/upflow-04dc27cd/2qhrUMUVDO3Bt9n_/images/45487754769169.png?fit=max&auto=format&n=2qhrUMUVDO3Bt9n_&q=85&s=eece9c5ce483bdc3ac124afb7a00a5e0" alt="" width="640" data-path="images/45487754769169.png" />Upflow - Refund applied to several credit notes<img src="https://mintcdn.com/upflow-04dc27cd/2qhrUMUVDO3Bt9n_/images/45487754893329.png?fit=max&auto=format&n=2qhrUMUVDO3Bt9n_&q=85&s=27e67923d703110a8cc3aaf617be0f73" alt="" width="640" data-path="images/45487754893329.png" />NetSuite - Refund applied to several credit notes<img src="https://mintcdn.com/upflow-04dc27cd/2qhrUMUVDO3Bt9n_/images/45487755016337.png?fit=max&auto=format&n=2qhrUMUVDO3Bt9n_&q=85&s=342bef35ccf2dcbd7e028f745e167f5d" alt="" width="640" data-path="images/45487755016337.png" />NetSuite - Credit memo created from the invoice following the payment refund

## Refund of a payment partially paying an invoice

When a payment only partially covers an invoice, we don't know which line items of that invoice the refund corresponds to. As such, we ask you to select the appropriate line item in NetSuite that will be used to generate the credit memo.

<img src="https://mintcdn.com/upflow-04dc27cd/2qhrUMUVDO3Bt9n_/images/45487757772433.png?fit=max&auto=format&n=2qhrUMUVDO3Bt9n_&q=85&s=f2cbcde26b64647d7de983b3b6656bd7" alt="" width="610" data-path="images/45487757772433.png" />Upflow - Integrations payment sync settings<img src="https://mintcdn.com/upflow-04dc27cd/2qhrUMUVDO3Bt9n_/images/45487757898513.png?fit=max&auto=format&n=2qhrUMUVDO3Bt9n_&q=85&s=3b1602ad93fe802423301fbc5a6a9b20" alt="" width="640" data-path="images/45487757898513.png" />Credit Memo generated by Upflow using the Partial invoice refund line item
