# NextEngine integration

> STEP 2-3

## 1. Create a bulk order registration pattern in NextEngine

1. In the NextEngine admin, go to Settings > Orders > Bulk order registration patterns

   ![The NextEngine admin. Open Settings > Orders > Bulk order registration patterns.](images/02c_nextengine-pattern-menu.png)

2. Select the shops whose orders you want to import into Recustomer (that is, the shops you want to accept cancellations for)

   ![Bulk order registration pattern settings. Select the target shops from the list.](images/02c_nextengine-store-select.png)

3. Select the file pattern **汎用標準パターン** (general standard pattern)

4. Give the pattern a recognizable name

   ![Entering a name for the bulk order registration pattern. Use a recognizable name such as 'for Recustomer'.](images/02c_nextengine-pattern-name.png)

## 2. Authenticate in Recustomer

1. Purchase the app **ECサイト購入体験プラットフォームRecustomer** from the following URL

   [https://base.next-engine.org/apps/5371/detail/](https://base.next-engine.org/apps/5371/detail/)

2. In Recustomer, go to Settings > External service integrations > Integrations > NextEngine

3. Click **Go to the NextEngine app store**

   ![The NextEngine authentication screen. Click the Go to the NextEngine app store button.](images/02c_nextengine-appstore-button.png)

4. The NextEngine sign-in screen opens. Sign in.

5. Go back to Settings > External service integrations > Integrations in Recustomer. The setup is complete when the status shows **Authenticated**.

## 3. Configure the shops to connect

1. On the left side of **NextEngine shops**, select the shops whose orders you want to import into Recustomer (that is, the shops you want to accept cancellations for)

   ![NextEngine shop settings. Select the target shops on the left.](images/02c_nextengine-store-left.png)

2. On the right side, select the bulk order registration pattern you created in step 4 of section 1

   ![NextEngine shop settings. Select the bulk order registration pattern you created on the right.](images/02c_nextengine-pattern-right.png)

   > **注意: Important**
   >
   > The shop selected for bulk order registration must match the shop registered in Recustomer.

3. Click **Save** at the top right

## 4. If you also use Shopify, align the order number format

When you use Shopify as well, Recustomer matches orders on the assumption that the Shopify order number and the NextEngine order number are **exactly identical, including the leading hash (#)**. If they differ, shoppers get an error and cannot find their order on the cancellation request page.

If you use an order number prefix or suffix in Shopify (such as `#`), configure the following in NextEngine.

1. Open the NextEngine app **Shopify用 自動連携アプリ** (Shopify automatic integration app)

2. Click **店舗登録** (register shop) or **店舗変更** (change shop) for the target shop in the shop list

3. On the shop information screen, check **プリフィックスとサフィックスを付与** (apply prefix and suffix) and save

> **ヒント: Tip**
>
> To check whether a prefix or suffix is in use, see the NextEngine manual: "Adding a shop / changing shop information > (Supplement) How to check prefixes and suffixes".
