Integrate Loop with Tailor Platform

Overview

Loop is a leading platform designed to simplify returns and exchanges, helping merchants streamline the post-purchase experience while reducing the operational burden of managing returns.

The integration of the Tailor Platform with Loop enables businesses to synchronize orders and product catalogs for efficient return processing. It also allows automation of key tasks such as return approvals, shipping label generation, and restocking, significantly saving time for merchants.

Tailor Platform Triggers

You can integrate Loop with Tailor Platform using triggers. Refer to executor service guide to learn about different types of triggers.

Connect Loop

This integration guide will walk you through the steps to set up a connection between Tailor PF and Loop.

1. Get the API key

Before you can begin integrating the Tailor Platform with Loop, you'll need to get an API key.

To get your API key, follow the below steps:

  1. Create an account with Loop

This is a prerequisite to access the Loop admin portal.

  1. Connect your store (e.g., your Shopify store)

Integrating your store is essential for managing returns through Loop.

  1. Set Up Return Portal URL

This URL is essential for directing customers to the correct page for processing returns.

  1. Navigate to Returns management and select Tools & integrations.

  2. Within Tools & integrations, select Developer tools.

In the Developer tools section, you can generate and manage your API keys. To generate a new API key, click on Generate API Key.

Integration Guide – Loop API

  1. Select the desired scopes

Select the scope and then click Generate.

Integration Guide – Loop API

2. Store Loop Credentials

Store your Loop API key as a secret in the Tailor PF using one of the following methods:

Using the Tailor CLI

  1. Create a vault to store the API key

Run the following commands to create a vault named loop-vault and to store the secret key.

<span><span style="color: var(--shiki-token-function)">tailorctl</span><span style="color: var(--shiki-color-text)"> </span><span style="color: var(--shiki-token-string)">workspace</span><span style="color: var(--shiki-color-text)"> </span><span style="color: var(--shiki-token-string)">vault</span><span style="color: var(--shiki-color-text)"> </span><span style="color: var(--shiki-token-string)">create</span><span style="color: var(--shiki-color-text)"> </span><span style="color: var(--shiki-token-string)">--name</span><span style="color: var(--shiki-color-text)"> </span><span style="color: var(--shiki-token-string)">loop-vault</span></span>
<span><span style="color: var(--shiki-token-function)">tailorctl</span><span style="color: var(--shiki-color-text)"> </span><span style="color: var(--shiki-token-string)">workspace</span><span style="color: var(--shiki-color-text)"> </span><span style="color: var(--shiki-token-string)">vault</span><span style="color: var(--shiki-color-text)"> </span><span style="color: var(--shiki-token-string)">secret</span><span style="color: var(--shiki-color-text)"> </span><span style="color: var(--shiki-token-string)">create</span><span style="color: var(--shiki-color-text)"> </span><span style="color: var(--shiki-token-string)">--name</span><span style="color: var(--shiki-color-text)"> </span><span style="color: var(--shiki-token-string)">loop-key</span><span style="color: var(--shiki-color-text)"> </span><span style="color: var(--shiki-token-string)">--vault</span><span style="color: var(--shiki-color-text)"> </span><span style="color: var(--shiki-token-string)">loop-vault</span><span style="color: var(--shiki-color-text)"> </span><span style="color: var(--shiki-token-string)">--value</span><span style="color: var(--shiki-color-text)"> </span><span style="color: var(--shiki-token-string)">{</span><span style="color: var(--shiki-color-text)">$api_key</span><span style="color: var(--shiki-token-string)">}</span></span>
<span></span>

Through the Console

  1. Navigate to your workspace where the app is deployed and select settings tab to add the secret

Integration Guide – Add Secret

  1. Create a new vault and add the API key

Integration Guide – Create Vault

3. Making API requests to loop API

You can call the Loop APIs using triggers.