# Return Authorization

## What it does

When a buyer opens a return case on eBay, this flow imports the case details into NetSuite as a Return Authorization. IDC captures the return reason, buyer comments, current state (e.g. waiting to ship, item in transit, delivered), and line items. This gives your operations team visibility into returns and lets you track them through NetSuite.

## Direction

**eBay → NetSuite**

## When it runs

This flow runs on a schedule you set. Configure when it runs in [Triggers](/idc/idc-core/apps/triggers.md). For most setups, schedule this flow to run every hour. See [Configure a Flow](/idc/idc-core/apps/configure-flow.md) for a step-by-step walkthrough.

## Settings

| Setting                  | What it does                                                                                                                           |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------- |
| Line Item Match Field ID | The custom NetSuite line item field used to link eBay return items to RMA lines (default: eBay Line ID).                               |
| Initial Lookback (days)  | On the first sync, how many days back to pull returns (default: 30 days).                                                              |
| Sync Overlap (hours)     | Hours to re-scan before the last sync to catch returns in flight and ensure none are missed (default: 24 hours).                       |
| States Filter            | Optional comma-separated list of return states to import (e.g. READY\_FOR\_SHIPPING, ITEM\_SHIPPED). Leave blank to import all states. |

## Default field mappings

IDC maps these eBay return fields to NetSuite Return Authorization fields automatically:

| eBay field     | NetSuite field |
| -------------- | -------------- |
| Return ID      | External ID    |
| Return ID      | eBay Return ID |
| Return State   | Return Status  |
| Return Reason  | Return Reason  |
| Buyer Comments | Buyer Comments |
| Creation Date  | Return Date    |

## Use cases

* **Full return visibility:** Enable this flow to track every eBay return from case opening through resolution. Your operations team can see the reason and status in NetSuite.
* **Filtered returns import:** Use the States Filter to import only returns ready to ship or currently in transit, so you focus on actionable cases first.

## Common issues

| Symptom                   | What to try                                                                                                                                 |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| Returns not importing     | Check the [activity log](/idc/idc-core/logs.md) to see if the flow ran successfully. Verify the flow is Active and scheduled.               |
| Return lines not matching | Verify the Line Item Match Field ID matches the custom field ID used on your NetSuite line items. The default is `custcol_in8_ebay_lineid`. |
| Duplicates appearing      | Return matching is idempotent by eBay return ID, so duplicates shouldn't occur. If you see them, contact In8Sync support.                   |


---

# 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/ebay/flows/return-authorization.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.
