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

# BlueCherry

> Connect BlueCherry so Redo creates an RMA for each approved return and processes the return when BlueCherry marks it completed.

Redo creates a return merchandise authorization (RMA) in BlueCherry for each approved return, so your team sees incoming returns without data entry. When BlueCherry marks the RMA completed, Redo processes the return.

## What is BlueCherry?

BlueCherry, from CGS, is a supply chain platform for fashion, apparel, footwear and lifestyle businesses. Its ERP covers inventory, order management and warehouse operations, and [BlueCherry reports](https://bluecherry.com/en) more than 500 fashion businesses as customers.

## What the integration does

* **Creates the RMA.** When a return is approved, Redo creates an RMA in BlueCherry and records the RMA ID on the return. The return timeline shows `RMA <ID> successfully created in BlueCherry`. A return gets one RMA, because Redo reuses the recorded ID.
* **Builds the RMA from the Shopify order.** The RMA carries the data in the table below.
* **Processes completed returns.** Every 15 minutes, Redo asks BlueCherry for RMAs at the completed stage that changed since the previous check.
  * For each RMA that matches a Redo return by RMA ID, Redo processes the items that are not already processed or pending, and marks them for restock. Items the customer keeps stay out of restock.
  * The first check after you connect starts from that moment, so Redo doesn't process RMAs that BlueCherry completed earlier.
* **Skips returns shipping to a Redo returns center.** A return whose destination is a Redo returns center doesn't get an RMA in BlueCherry.

### What Redo sends to BlueCherry

| RMA data | What Redo sends |
| - | - |
| Order reference | The Shopify order name. |
| Redo return reference | The Redo return ID. |
| Customer | Your **Customer code**. |
| Return tracking number | The tracking number of the return label. It is empty when the return has no label. |
| Contact and address | The order's shipping address, with the customer's name, email and phone. Redo sends no address when the order has none. |
| Tax and discount | The order's tax amount and discount amount, and the tax country, state and ZIP code from the shipping address. |
| Item lines | One line per returned item: the Shopify barcode as the UPC, the order line's price, the quantity, the Shopify order ID, and the Shopify line item ID. |
| Reason codes | The reason code that your return flow sets on each item, with `E71` when an item has none. The RMA header uses the first item's reason code. |

## How to set it up

### Prerequisites

> [accordion] BlueCherry account with API access
>
> You need an active BlueCherry account and its API key, company code, environment code and customer code.

> [accordion] Shopify orders in Redo
>
> Redo builds each RMA from the return's Shopify order. Connect your Shopify store to Redo before you connect BlueCherry.

> [accordion] Barcodes on your products
>
> Redo sends each item's Shopify barcode to BlueCherry as the UPC. Keep your product barcodes filled in and consistent with the UPCs in BlueCherry.

> [accordion] Permission in Redo
>
> You need permission to change returns and claims settings in your Redo merchant dashboard.

### Configuration steps

**1. Open Settings → Integrations**

In your Redo merchant dashboard, open **Settings → Integrations**.

**2. Find BlueCherry**

Search for **BlueCherry**.

**3. Open the BlueCherry integration**

Click the **BlueCherry** card.

**4. Start the connection**

On the **Returns** row, click **Connect**.

**5. Enter the connection details**

Fill in all four fields. **Connect** stays unavailable until each one has a value.

| Field | What to enter |
| - | - |
| **API key** | Your BlueCherry API subscription key. |
| **Company code** | Your BlueCherry company code. |
| **Environment code** | Your BlueCherry environment code. |
| **Customer code** | The BlueCherry customer that RMAs are created under. |

**6. Save the connection**

Click **Connect** below the fields. When the connection saves, the **Returns** row shows **Active**.

**7. Create a test return**

Create a test return in your Redo return portal for a Shopify order.

**8. Approve the test return**

Approve the test return in Redo.

**9. Check the RMA in BlueCherry**

Check that the return timeline shows `RMA <ID> successfully created in BlueCherry`, and that the RMA appears in BlueCherry with the right order, items and customer.

### Change the settings

On the **Returns** row, click **Manage** to change the **Company code**, **Environment code** or **Customer code**, then click **Save**. Leave **API key (Optional)** blank to keep the saved key, or enter a new key to replace it.

To stop creating RMAs and checking for completed returns, click **Disconnect** and confirm.

## FAQ

> [accordion] Does Redo check my credentials when I connect?
>
> No. Redo saves the four values without calling BlueCherry. A wrong value shows up when Redo creates the first RMA, so create a test return after you connect.

> [accordion] What happens when BlueCherry rejects the RMA?
>
> When BlueCherry answers with a 4xx or 503 response, nothing was created. Redo tags the return **RMA creation failed**, adds `RMA creation failed in BlueCherry` to the return timeline, and retries the request. You can also retry from the return's actions menu.

> [accordion] What if BlueCherry doesn't confirm the RMA?
>
> When BlueCherry doesn't answer, answers with another error status, or answers without an RMA ID, the RMA may exist. Redo doesn't retry, so it can't book a second RMA. The return gets the **RMA creation failed** tag, and its timeline shows `RMA creation failed in BlueCherry (BLUE_CHERRY_RMA_OUTCOME_UNKNOWN)`. Check BlueCherry for an RMA for this return, then retry from the return's actions menu or create the RMA in BlueCherry yourself.

> [accordion] Why does a return show a missing customer code error?
>
> Redo creates an RMA only when a **Customer code** is saved. Connections saved before Redo asked for a customer code have none. The return timeline shows `RMA creation failed in BlueCherry (BLUE_CHERRY_MISSING_CUSTOMER_CODE)`. Click **Manage** on the **Returns** row, enter the **Customer code**, click **Save**, then retry from the return's actions menu.

> [accordion] Does Redo update or cancel the RMA after it creates it?
>
> No. Redo creates the RMA when the return is approved and doesn't change it afterward. Resetting or rejecting a return in Redo doesn't cancel the RMA in BlueCherry.

> [accordion] What if processing a completed RMA fails?
>
> Redo adds `Error during automated BlueCherry return processing` to the return timeline and leaves the return's items unprocessed. Redo doesn't check that RMA again, so process the return in Redo yourself.

> [accordion] Can a return span several orders?
>
> No. Redo creates one RMA for the return and builds it from the return's first order: its order reference, shipping address, tax and discount.

## Support

For issues with the Redo integration configuration, return processing, or data synchronization, contact **[support@getredo.com](mailto:support@getredo.com)**.

For issues with BlueCherry access, API credentials, or warehouse operations, contact your BlueCherry account manager or support team.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.