You can now embed the shipment viewer from nShift Portal into your own website. This allows your customers to view information about their shipments and the latest tracking events without leaving your website.
You can embed the shipment viewer into your website by using an IFRAME. The SRC attribute of the iframe must follow this syntax:
https://www.nshiftportal.com/ui/sv/s?pp={PUBLIC_PROFILE_URL_ENCODED}&q={QUERY_URL_ENCODED}&parentOrigin={PARENT_ORIGIN_URL_ENCODED}
The values in the curly brackets should be replaced with the following:
-
{PUBLIC_PROFILE_URL_ENCODED} - the URL-encoded ID of the public profile you are using for your shipment viewer. This is available in the URL generated when creating or editing a public T&T URL.
Read more in this article: Creating Shipment Viewer Profiles and public tracking URLs
-
{QUERY_URL_ENCODED} – the URL-encoded order number or barcode for the shipment you wish to display.
- {PARENT_ORIGIN_URL_ENCODED} – the URL-encoded origin of the parent page that embeds the iframe.
For technical documentation on URL encoding and iframes, please refer to these external resources: