> For the complete documentation index, see [llms.txt](https://developer.esw.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.esw.com/adobe-commerce-magento/esw-adobe-extension-features/order-fulfillment-returns.md).

# Order Fulfillment (Returns)

The extension supports different types of synchronization that support the various return solutions in ESW. Integration allows further downstream synchronization between Adobe Commerce (Magento) and retailers' ERP or OMS systems, keeping records up to date.

### Synchronize ESW Returns with Adobe

The configuration section for the Synchronize ESW Returns with Magento is accessible from the main ESW Module configuration tab.

Returns orders can then be synchronized to Adobe Commerce (Magento) via a API (legacy integration) or webhook triggered by ESW and processed by the module.

{% hint style="info" icon="webhook" %}
Note: To ensure that the webhook process is set up correctly, follow the [webhook integration section](https://know.esw.com/space/TDR/1234732351/Webhooks+Integration) for guidance.
{% endhint %}

### Return Types <a href="#return-types" id="return-types"></a>

You can select the type of entity that will be created in Adobe Commerce (Magento) when ESW returns are synchronized. The options are limited to **Credit Memo** and **Return Merchandise Authorization** (RMA).

Note: A RMA is created for ESW return with a '*processed*' status for shipped order, while a credit memo is generated for ESW return with a '*refunded*' status for invoiced order.

#### **Credit Memo** <a href="#credit-memo" id="credit-memo"></a>

Selecting this option within the extension triggers the creation of an offline credit memo. The return request is triggered either via webhook or through API retrieval, specifically when a legacy system integration is in use. Only the approved line items are included in the credit memo. The credit memo Grand Total value matches the refunded amount (subtotal, shipping, and tax that is the combined value of tax and duty), and the extension saves the return reasons per item in a custom database table. To display the return reason in the admin credit memo view, customize the credit memo template.

#### **RMA** <a href="#rma" id="rma"></a>

When this option is selected, the extension creates an RMA entry during the synchronization process. Both approved and rejected items are a part of the RMA. The rejected item is saved as **Return received** and the approved item is saved as  **Authorized**. The Adobe Commerce (Magento) RMA item return reason codes are extended to match the options supported by ESW


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://developer.esw.com/adobe-commerce-magento/esw-adobe-extension-features/order-fulfillment-returns.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
