LoyaltyLionLoyaltyLionHelp center
Developer docs (opens in a new tab)Sign in

Gorgias

Show LoyaltyLion profiles next to Gorgias tickets, and award points or share referral links from macros

IntegrationAll platformsAll plansUpdated Sep 30, 2026
On this page

Overview

Gorgias is a helpdesk built for Shopify stores. Connect it to LoyaltyLion and your support team sees each customer’s loyalty profile next to their ticket, and can award points and share referral links from macros.

How the Gorgias integration can help you

  • When a customer contacts you on Gorgias, display their profile from LoyaltyLion

  • Award points to customers using macros*

  • Insert a customer’s referral URL into a macro*

*Both of these use custom HTTP actions in a macro. To set these up, see this Gorgias article.

How to connect Gorgias

  1. Open this form and fill in your email address and your Gorgias sub-domain.

  2. Log in to your Gorgias account, and go to Settings -> Advanced -> REST API.

    1. If you don't have an API key there already, click on Create API Key.

    2. Under Password (API Key), click on Copy, and paste this into the Gorgias API Key field in the form.

  3. Log in to your LoyaltyLion account, and go to Settings, then Program settings.

    1. Find the Token and secret section. Both values look like this: 12345a67a8bbb90ccd00.

    2. Paste your token into the LoyaltyLion API Token field, and your secret into the LoyaltyLion API Secret field.

  4. Click on Connect with LoyaltyLion.

The LoyaltyLion widget will then show in tickets from customers who have LoyaltyLion data:

How to set up loyalty Macros in Gorgias

Once you have integrated LoyaltyLion with Gorgias, there are several loyalty macros and automations you can set up in Gorgias. Here are a couple to get you started:

1) Refer a Friend macro

Use this macro to pull through LoyaltyLion data as a custom variable and auto-populate the macro, and send the customer’s unique referral link.

Steps to set up:

  1. Navigate to Settings → Productivity → Macros

  2. Click Create macro in the top right

  3. Add the variable {{ticket.customer.integrations.loyaltylion.referral_url}} in your macro

Example:

2) Award Points macro

Set up this macro to award any number of points to a customer using a custom HTTP action and updating the points balance in LoyaltyLion without leaving Gorgias.

Steps to set up:

  1. Navigate to Settings → Productivity → Macros

  2. Click Create macro in the top right

  3. Click Add action → External actions → HTTP hook

  4. Configure the HTTP hook with the following settings:

Title: Award any number of points to a customer

Method: POST

URL: https://api.loyaltylion.com/v2/customers/{{ticket.customer.integrations[XXXXX].customers[0].merchant_id}}/points

Headers:

Authorization: Basic {your token and secret, as token:secret, base64-encoded}

Content-Type: application/json

Body: {"points": 1500}

Key Configuration Notes

  • Replace XXXXX in the URL with the integration number of the LoyaltyLion integration. In your Gorgias account, this is the last string of numbers visible in the URL when on the LoyaltyLion integration page under Settings → App Store → HTTP integration.

  • Authorization: join your LoyaltyLion token and secret with a colon (token:secret), base64-encode the result, and pass it as a Basic auth header.

  • Points value: The "points": 1500 in the body can be adjusted to whatever number the brand wants to award. The points field must be a whole number. We add them as approved points straight away. You can also send an optional reason, which your customer sees.

Example:

FAQ

Not yet using Gorgias?

Contact support@loyaltylion.com and we can refer you to Gorgias and answer your questions.

Was this helpful?

Related

Type at least two characters.