Deep linking customers into the returns portal enables a frictionless returns experience. You only need two pieces of information to deep link: the Shopify order name and the shop's Shopify domain. Here's how to get started.
If you are creating deep links for your own store and have access to your Loop admin, then use the generate order link endpoint instead
Please submit the Loop Technology Partner Registration form to become a registered third-party app in the Loop App Marketplace. Becoming a third-party app enables you to deep link customers into the returns portal. Once approved, Loop will provide a shared secret. Securely store this secret because you will use it to sign requests. Never allow this secret to be visible in the browser.
To deep link the customer into the returns portal you need to redirect the browser to our deep link api. When successful, the deep link api redirects to the returns portal.
The deep link API can be reached at
Required query parameters:
|order||Shopify order name|
|partner||Your registered partner name|
|shop_domain||The Shopify domain where the order was placed e.g. example.myshopify.com|
|hmac||HMAC value used to verify authenticity of request|
Use the shared secret to generate the HMAC digest. The HMAC should be added to the request's query parameters. If the HMAC is verified and the other query parameters are valid then we will respond with a
307 Temporary Redirect that loads the returns portal for the order.
The HMAC used in the above API call should be generated using the following steps:
- Construct the query string with the keys sorted in alphabetical order. e.g.
- Using the query string, generate a (lowercase) hex encoded HMAC using SHA-256.
See this in code:
Updated 3 months ago