The nShift Returns widget lets your customers initiate their returns directly on your website without leaving your store.
Prerequisites
- Access to the nShift Returns configuration interface
- Ability to edit your website's HTML (or access to a developer who can)
- A market identifier (see Step 1)
Step 1. Find your identifier
- Log in to the nShift Returns configuration interface
- Go to Widget Settings > Market Setup
- The following identifiers are available. Use one of the supported combinations:
| Combination | Parameters used |
|---|---|
| Market ID alone | marketId |
| Company Name alone | customerName |
| Company Name + Market Name | customerName + marketName |
| Identifier | Where to find it |
|---|---|
| Market ID | Click Open widget on your market - the UUID appears in the browser URL bar |
| Market Name | Visible directly in the Market Setup list |
| Company Name | Your company name as configured in nShift |
Which should I use?
marketIdis recommended when possible - if a customer is redirected to the login page, it ensures the correct branding and language are shown immediately.customerNamealone works when you have a single market. UsecustomerName+marketNamewhen you have multiple markets under the same company.Note: If you use Company Name alone, nShift Returns will automatically redirect the customer to the correct market based on their input.
Step 2. Configure embed permissions
Before the widget will load on your website, you need to tell nShift Returns which URL it is allowed to be displayed on.
- In the configuration UI, go to Widget Settings > Market Setup > Embed permissions
- Enter the full URL of the page where the widget will be shown - for example:
https://www.yourstore.com/returns - Save your changes
This acts as an allowlist - the widget will only render when loaded from this exact URL.
Step 3. Add the widget to your website
Paste the following snippet into the page where the widget should appear, replacing the src value with the appropriate URL for your setup (see combinations below).
<!-- nShift Returns Widget --> <iframe src="INSERT_URL_HERE" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="700px" style="border: none;" title="Returns portal"> </iframe>
Supported URL combinations for the src:
| Combination | URL |
|---|---|
| Market ID | …/redirect?marketId=YOUR_MARKET_ID |
| Company Name alone | …/redirect?customerName=YOUR_COMPANY_NAME |
| Company Name + Market Name | …/redirect?customerName=YOUR_COMPANY_NAME&marketName=YOUR_MARKET_NAME |
Language — if no lang is provided, the widget will use the default language configured on the market. Supported language codes:
Base URLs by environment:
| Environment | Base URL |
|---|---|
| Production | https://www.nshiftreturns.com/ui/widget |
| QA | https://www.qa.nshiftreturns.com/ui/widget |
Pre-populating customer data
If your website has order information available - for example, when a customer arrives from an order confirmation page - you can pass their details directly in the widget URL. When valid credentials are present, the widget skips the login screen and takes the customer straight to orders page. Without them, the customer lands on the login page and enters their details manually.
These values are typically injected server-side by your platform when the page loads, keeping the embed snippet static while values are added dynamically per session.
Supported credential combinations
The widget accepts the following combinations. If multiple are present in the URL, the first match in this priority order is used:
| Priority | Parameters | Encoding |
|---|---|---|
| 1 | order + customerId | Plain text |
| 2 | order + email | Plain text |
| 3 | orderBase + customerId | Order base64-encoded |
| 4 | emailBase + orderBase | Both base64-encoded |
Examples
Plain text - email and order:
https://www.nshiftreturns.com/ui/widget/redirect?marketId=YOUR_MARKET_ID&lang=en-us&email=customer@example.com&order=1234
Plain text - customer ID and order:
https://www.nshiftreturns.com/ui/widget/redirect?marketId=YOUR_MARKET_ID&lang=en-us&customerId=0b6d015d-8f6d-412b-b976-6a1caebef839&order=1234
Base64-encoded - email and order (recommended — hides values in the URL):
https://www.nshiftreturns.com/ui/widget/redirect?marketId=YOUR_MARKET_ID&lang=en-us&emailBase=Y3VzdG9tZXJAZXhhbXBsZS5jb20=&orderBase=MTIzNA==
Base64-encoded order with plain text customer ID:
https://www.nshiftreturns.com/ui/widget/redirect?marketId=YOUR_MARKET_ID&lang=en-us&customerId=0b6d015d-8f6d-412b-b976-6a1caebef839&orderBase=MTIzNA==