# Refund Import

## What it does

The Refund Import flow reads cash refund records created in NetSuite (typically from credit memos or refund authorizations) and sends them to Shopify, updating the order and notifying the customer. When you issue a refund in NetSuite, IDC automatically syncs it to Shopify to maintain consistent order and payment status across both systems.

## Direction

**NetSuite → Shopify**

## When it runs

This flow is typically triggered when you create a cash refund record in NetSuite. You can also schedule it to run on a recurring basis to catch refunds created outside of IDC. See [Configure a Flow](/idc/idc-core/apps/configure-flow.md) for scheduling details.

## Settings

| Setting                 | What it does                                                                                                                                                 |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Shopify Location ID** | The numeric Shopify location ID where refunded inventory should be restocked. For example, "12345". This is used when the refund includes inventory restock. |

## Default field mappings

Field mappings for this flow are pre-configured to map NetSuite refund and credit memo data to Shopify refund format. The mappings are managed by IDC's custom logic. If you need to customize mappings, contact In8Sync support.

## Use cases

* **Sync refunds automatically:** Enable the flow so that refunds issued in NetSuite are immediately reflected in Shopify's order history.
* **Restock items:** If the refund includes returned inventory, configure the "Shopify Location ID" setting to automatically restock items at the correct warehouse in Shopify.

## Common issues

| Symptom                                | What to try                                                                                                                                                               |
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Refunds don't sync to Shopify          | Check that the flow is enabled. Verify that the cash refund record in NetSuite is correctly linked to the original sales order. Check the flow's activity log for errors. |
| Wrong location is restocked in Shopify | Verify the "Shopify Location ID" setting contains the correct numeric location ID from your Shopify store.                                                                |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.in8sync.com/idc/shopify/flows/refund-import.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
