> For the complete documentation index, see [llms.txt](https://docs.xorosoft.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xorosoft.com/xoroerp-1/connected-apps/shopify/installation-guide/configuration-settings/gift-cards/how-to-use-shopify-gift-cards-in-xoro.md).

# How to Use Shopify Gift Cards in Xoro

Shopify gift cards can be synchronized with Xoro through the **Gift Cards** settings available in the Shopify Sales Channel. Once a gift card is imported into Xoro, a corresponding credit memo is automatically created using the configured gift card SKU. When the gift card is subsequently used on a Shopify order, the gift card application is reflected when the order is imported into Xoro.

### Configure Gift Card Settings

**Step 1:** Navigate to **Menu → Apps → Sales Channels** and open the Shopify sales channel.

**Step 2:** Select **Gift Cards** from the available settings in the menu.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2F172b43EdTWDYdEkJvaW0%2Fimage.png?alt=media&amp;token=fc081a71-7ccd-4c2a-81e9-1d143745410d" alt=""><figcaption></figcaption></figure>

**Step 3:** Now, configure the required gift card settings, including:

* **Sync gift cards** – Enables synchronization of gift cards from Shopify to Xoro.
* **Gift Card SKU Name** – Specifies the SKU used for gift card orders.
* **Gift Card Liability Account** – Specifies the account used to record the gift card liability.
* **Exchange Sales Gift Card Account** – Specifies the account used for exchange gift card orders.
* **Third Party Gift Card Provider** – Specifies the third-party provider used for fetching gift cards, if applicable.
* **Advanced Settings** – Provides additional options for gift card synchronization, including filtering by API Client ID, fetching gift cards if they are not found in Xoro, synchronizing gift cards before the integration start date, allowing partial gift card order synchronization, and refunding disabled or expired gift cards.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FvXbOnIWMlPEvdkvaPDHp%2Fimage.png?alt=media&amp;token=53cf7d28-9028-4659-8987-0c741e9dd4e0" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FpjKgBV6dICUHnxg9Wnni%2Fimage.png?alt=media&amp;token=c888abf3-a807-4a86-8925-b2a5a3369d08" alt=""><figcaption></figcaption></figure>

Configure these settings according to the requirements of the Shopify integration.

### Creating a Gift Card in Shopify

**Step 1:** In Shopify, navigate to **Products → Gift cards and** click **Create gift card.**&#x20;

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2Fa6gVpVdJ45xtPsujnKQu%2Fimage.png?alt=media&amp;token=ef029252-b9f3-4dc2-bd60-379d4896dadf" alt=""><figcaption></figcaption></figure>

**Step 2:** Enter the required gift card details, such as the **Gift card code**, **Initial value**, and **Customer**. Click **Save** to create the gift card.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FUWLygJK9aVL9iv0IcRHL%2Fimage.png?alt=media&amp;token=c3c87dc0-89b0-4fff-bbac-422d2dc3eabb" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FeXesLB0lVu4HyRR8OTiW%2Fimage.png?alt=media&amp;token=fa09f284-cae0-4e1d-9d2f-fb03096cf9b2" alt=""><figcaption></figcaption></figure>

You can also enable the **Send gift card now** checkbox to send the gift card to the customer's email address. Click **Preview email** to preview the gift card email before sending it.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FdctfXMf1oqZMP8uINVZ7%2Fimage.png?alt=media&amp;token=8aa96128-ef87-4400-a9b6-8742022ca012" alt=""><figcaption></figcaption></figure>

**Step 3:** In Xoro, open the Shopify Sales Channel and select **Gift Cards**. Click **Actions → Import by gift card**.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2F2YkhOEiUVGgBkFbJ59op%2Fimage.png?alt=media&amp;token=039a011f-2c35-4a50-9e3b-a4fd50e300dd" alt=""><figcaption></figcaption></figure>

**Step 4:** In the **Import by gift card** popup, select **Shopify gift card id** and enter the Shopify gift card ID in the **Value** field. Click **Import**.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2Fl3jhrTlYUYeOc1Ydv2Co%2Fimage.png?alt=media&amp;token=984cbe30-70a5-42aa-9739-4b4bc28b747e" alt=""><figcaption></figcaption></figure>

**Step 5:** Refresh the Gift Cards page. The imported gift card is displayed with a message indicating that the **Gift Card synced successfully**.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2Fa6p9q26pvrZ7xF9CTJDn%2Fimage.png?alt=media&amp;token=17cdd464-1bef-4328-9d07-b70928d529ca" alt=""><figcaption></figcaption></figure>

**Step 6:** After the gift card is successfully imported, Xoro automatically creates a corresponding **Credit Memo** for the gift card using the configured gift card SKU as a **non-inventory item**.

**Step 7:** Navigate to the **Credit Memo Centre** and open the credit memo created for the imported gift card to view its details.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FjJucKPh4xcZZfnzbYj6q%2Fimage.png?alt=media&amp;token=44c9c792-23e0-4482-9ad2-179590012949" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2F1X23HsXEA8zKDQCEiPmO%2Fimage.png?alt=media&amp;token=f4d6406c-bcf2-4078-ad88-cdd954ba2a0b" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Creating a [**gift card product (purchased gift card)**](#how-to-purchase-a-gift-card-and-import-the-order-into-xoro) and creating an **actual gift card (issued gift card)** are separate actions. Use **Create gift card** to issue an individual gift card that can be imported into Xoro.
{% endhint %}

### How to Apply a Gift Card to a Shopify Order

**Step 1:** In Shopify, open the online store, select the required product, and proceed to checkout. Apply the created gift card during checkout.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2Fx7rEfS5ufBvAQp4swYs0%2Fimage.png?alt=media&amp;token=492d440c-755e-4816-bc6a-77b49cb53aa6" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FJ7AJMIft1ZPLSlkYzj4P%2Fimage.png?alt=media&amp;token=29bb5ac6-42e7-4c0e-91c4-0b79e056c2d9" alt=""><figcaption></figcaption></figure>

**Step 2:** Navigate to the **Orders** tab in Shopify and view the newly created sales order record. The **Tags** column displays the **Gift card used** tag for orders where a gift card has been applied.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FugVb1UqMu5fMye5UY3Oi%2Fimage.png?alt=media&amp;token=8ecbca35-3e60-460f-bc56-df102b04f96a" alt=""><figcaption></figcaption></figure>

**Step 3:** In the **Orders** tab of the **Sales Channel**, view the import status of the newly created order.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FOOGr2xJiD49qwsiWZpIF%2Fimage.png?alt=media&amp;token=2686e8d8-e3c6-4322-acd5-5bfc50145efe" alt=""><figcaption></figcaption></figure>

**Step 4:** Go to the **Sales Order Centre** and open the sales order to view the gift card applied to the order in the **Credit Memo** section of the **Linked Credits/Deposits** tab.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FC42aE6E8Ls5oE4oth6YC%2Fimage.png?alt=media&amp;token=596973a5-a81e-4f9a-a2fc-d5095eb5b05b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2F7MNckAZklglHGgn9pTUQ%2Fimage.png?alt=media&amp;token=6609cfea-52b4-4af2-9647-3b46d04b5989" alt=""><figcaption></figcaption></figure>

In the **Customer Deposit** section, you can view the **Remaining Amount** of the customer deposit linked to the sales order.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2F7JhGQFzoqHAjMQD25ehJ%2Fimage.png?alt=media&amp;token=c9c37f3b-e0c8-417a-a65c-1d36367d75aa" alt=""><figcaption></figcaption></figure>

### How to Purchase a Gift Card and Import the Order into Xoro

**Step 1:** In Shopify, navigate to **Products → Gift cards** and click **Add gift card product**.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2F3wCrXc7ypbOwxeO0dtXc%2Fimage.png?alt=media&amp;token=b39342ba-2b9a-4ab3-af01-30e18b667da1" alt=""><figcaption></figcaption></figure>

**Step 2:** On the **Create gift card product** page, enter the required details, such as the **Title** and **Description**, and configure the gift card product as required. Click **Save** to create the gift card product.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2F0lNuxcWZvygN82HnBvEx%2Fimage.png?alt=media&amp;token=01b5ffa0-49cf-4562-9d95-1d3ed363e259" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FZ8KAHIsGTYpOicmwrIaW%2Fimage.png?alt=media&amp;token=effb506b-f08f-423b-9972-3cbb69ffc264" alt=""><figcaption></figcaption></figure>

**Step 3:** Navigate to the **Orders** tab in Shopify and double-click on the record to open the required sales order.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2F19taM4JCmViqcigcKSDX%2Fimage.png?alt=media&amp;token=ded0eed7-6007-40fe-b66f-a1124e40673f" alt=""><figcaption></figcaption></figure>

**Step 4:** Click **Edit** and then click **Add product**. Search for and select the required gift card product and its value. Click **Done**.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2Fs9i528AGaYnSgs62KghV%2Fimage.png?alt=media&amp;token=44e41ff6-fc05-43f8-9f79-52779d5909ce" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2Fducf91clNfB0agowiIVa%2Fimage.png?alt=media&amp;token=f4f0bdbd-514a-42a8-b3e5-89bd09c52104" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FQpyRlbXtvf5E87lzLIcA%2Fimage.png?alt=media&amp;token=fb77ea50-e674-4bd2-ae5c-64505146a16a" alt=""><figcaption></figcaption></figure>

**Step 5:** Click **Update order** to add the gift card product to the order.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FjXbltz8Kp2vTPOoGj6Vl%2Fimage.png?alt=media&amp;token=411bf0ac-257b-4e9a-848b-df9a76c2e3f8" alt=""><figcaption></figcaption></figure>

**Step 6:** Fulfill the purchased products in the order by clicking **Mark as fulfilled**. For the gift card product, click **Send gift card** to issue the gift card to the customer.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2Fa664m1DpKkTWdUBSL0Vs%2Fimage.png?alt=media&amp;token=25c92642-526e-427a-9bc1-99a0f40444eb" alt=""><figcaption></figcaption></figure>

**Step 7:** After the gift card is issued, click **Collect payment → Mark as paid** and select the required payment method to mark the order as paid.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2F32HOXpoWKBr1HPT8Gx2r%2Fimage.png?alt=media&amp;token=03d0be0c-d4cd-4e7c-8780-e0adc0a239f6" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2F8WWNPS2L9gIJb8S3vqTX%2Fimage.png?alt=media&amp;token=fc051c29-63a5-4316-9b04-9810f04311ca" alt=""><figcaption></figcaption></figure>

**Step 8:** In Xoro, open the Shopify **Sales Channel** and go to the **Orders** tab. Click **Actions → Import by order**.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FfJWOySUG7FVh9oGuLZpd%2Fimage.png?alt=media&amp;token=3c93528f-404e-447d-a9ec-af6fcac0c9a5" alt=""><figcaption></figcaption></figure>

**Step 9:** In the **Import by order** popup, select **Shopify order number**, enter the Shopify order number in the **Value** field, and click **Import**.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FplaEU1tNZic844zTwzFA%2Fimage.png?alt=media&amp;token=29e436f2-68c2-4d6c-b825-cbcb81e17aee" alt=""><figcaption></figcaption></figure>

**Step 10:** After the order is successfully imported, open the corresponding sales order in the **Sales Order Centre**. The purchased gift card is reflected on the sales order, and the corresponding **Customer Deposit** is created for the gift card amount.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FW2Gm4XCkDVAF8TLbGMGD%2Fimage.png?alt=media&amp;token=7dcd00ef-c9be-471a-a01b-d327ce4ee751" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FPd9OpmD8W8oeqMJxV8M5%2Fimage.png?alt=media&amp;token=04e0a5fc-f333-481d-856b-0e64c4030334" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If the Gift Card product is not available in Xoro, the **Default SKU Name** configured in the **Advanced** section of **Order Settings** in the **Shopify Sales Channel** is used on the imported Sales Order.

To map the Shopify Gift Card product to a specific item in Xoro, create the corresponding item in Xoro using the **same product handle** as the Shopify product. The product handle can be identified by opening the product in Shopify and checking the **URL handle** in the **Search engine listing** section. The value after **`/products/`** is the product handle. For example, in `.../products/sandbox2`, **`sandbox2`** is the product handle.

Alternatively, you can append **`.json`** to the URL of the required product at the top of the page to access the product details, including the product handle.
{% endhint %}

### FAQ

**1. How Do I Convert a Gift Card Product into a Gift Card?**

**A:** A **Gift Card product cannot be converted directly into a gift card**. The product represents the gift card being purchased, while the actual gift card is generated separately.

To issue the gift card:

1. Add the **Gift Card product** to the required order.
2. Complete the order and click **Send gift card**.
3. The actual gift card is generated/activated and sent to the recipient via email.
4. The recipient can use the generated gift card for a future purchase.

The original **Gift Card product** remains as the product/order line and is not converted into the actual gift card.

**2. Why is the Gift Cards option not visible in the Shopify channel menu?**

**A:** If **Gift Cards** are not available in the Shopify channel menu, the **Sync Gift Cards** setting may not be enabled for the account.

To enable the option:

1. Go to the **Shopify channel**.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2F1jr0DHu2dKsNuSFQGG4l%2Fimage.png?alt=media&amp;token=bc61e9dd-56e3-4a6e-afab-81291de7e13c" alt=""><figcaption></figcaption></figure>

2. Open **Account Settings**.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2Fl7lskuXD88SD1HCt1Lxz%2Fimage.png?alt=media&amp;token=d573007d-a543-4a1c-b1f2-b0149d993647" alt=""><figcaption></figcaption></figure>

3. Under **Settings**, select **Gift Cards**. The **Sync gift cards** checkbox is disabled, so the **Gift Cards** option is not available in the menu.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FyPwmz70725mnbMKpt4zr%2Fimage.png?alt=media&amp;token=5025ee8f-c7d9-4a7c-b303-69c40b8d4702" alt=""><figcaption></figcaption></figure>

4. Select the **Sync gift cards** checkbox to enable gift card synchronization from Shopify to Xoro.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FVH6PoZ9KJBTXOfmztgCy%2Fimage.png?alt=media&amp;token=106eb3bb-3b93-4706-82c5-45a06c2da577" alt=""><figcaption></figcaption></figure>

5. Configure the required [**Gift Card SKU Name**](/xoroerp-1/connected-apps/shopify/installation-guide/configuration-settings/gift-cards.md), **Gift Card Liability Account**, and **Exchange Sale Gift Card Account** fields. Click **Save**.
6. Return to the Shopify channel menu. The **Gift Cards** option is now available.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FsQ5xDPPcYMuNITSEGD2y%2Fimage.png?alt=media&amp;token=94ca1a06-7b91-4558-85cd-d355829a16eb" alt=""><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.xorosoft.com/xoroerp-1/connected-apps/shopify/installation-guide/configuration-settings/gift-cards/how-to-use-shopify-gift-cards-in-xoro.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
