> For the complete documentation index, see [llms.txt](https://docs.parcellab.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.parcellab.com/docs/developers/status-updates/order-status-page-configuration/order-status-page-version-upgrade.md). Agents can also search and read this documentation through its [MCP server](https://docs.parcellab.com/docs/~gitbook/mcp).

# Order Status Page Version Upgrade

Learn how to upgrade to the latest Order Status page, manage its configuration in the parcelLab App, and review updates to earlier versions.

The changelog of the Order Status page is described in the following sections.

## New App self-service features

Configure the Order Status page in Experience Design in the parcelLab App with themes, translations, and supported content. Publish a custom theme separately from the page.

You can now customize your Order Status page using the relevant features in the App:

* **Themes and page settings** to control the design and layout
* **Translations** to support additional languages. English is included by default but you need to add translations in the App for other languages.
* **Campaigns** to manage additional content, including banners and surveys
* **App Store** to add supported Order Status page app functionality

## Updated JavaScript snippet

You can embed a published Order Status page on your website or use the parcelLab hosted version. The embed loads the Order Status page you configure in the App.

You need to replace your current snippet with the new snippet in the \<body /> of your Order Status page.

{% code overflow="wrap" %}

```html
parcellab-new-order-status-page-snippet.html
<pl-track-and-trace 
    account="your_account_id" 
    osp_key="my-shop"
    >
</pl-track-and-trace>
<script src="https://orderstatus.parcellab.com/static/track/embed/v1/osp-embed.js"></script>
```

{% endcode %}

## Mapped URL parameters

The latest Order Status Page uses updated URL parameter names. Parameters from earlier versions are mapped to their new equivalent values, as described in the following table.

| Previous Parameter         | New Parameter                   | Purpose                                                                            |
| -------------------------- | ------------------------------- | ---------------------------------------------------------------------------------- |
| `orderNo`                  | `order_number`                  | Identifies an order and its associated deliveries.                                 |
| `trackingNo` and `courier` | `tracking_number` and `courier` | Identifies a specific delivery rather than an order when both values are provided. |
| `customerNo`               | `customer_number`               | Identifies orders by customer number.                                              |
| `email`                    | `recipient_email`               | Verifies the customer's email.                                                     |
| `zip`                      | `recipient_postal_code`         | Verifies the customer's postal/zip code.                                           |

The `lang` and `s` parameters remain unchanged in the Order Status page, but there are some requirements to consider:

* `lang` - the requested language must have a translation configured in the App
* `s` - use the unique, order-specific security hash generated by parcelLab

## Changes to verification

The Order Status page handles verification differently. A valid security hash (`s`) gives shoppers direct access to the full page. Without it, they must verify using their email or postal/zip code, depending on your account settings.

## Using an earlier version of the Order Status page?

The following updates apply to earlier versions of the Order Status page that use the previous JavaScript tracking plugin. If you're looking to move to the latest Order Status page, see the [upgrade instructions above](#new-app-self-service-features).

<details>

<summary>Updated JavaScript plugin</summary>

You need to replace your current snippet with the new snippet in the \<body /> of your Order Status page.

```html
<div id="parcellab-track-and-trace">
  <img src="https://cdn.parcellab.com/img/loading-spinner-1.gif" alt="loading" />
</div>

<script>
  function plTrackAndTraceStart() {
    window.parcelLabTrackAndTrace.initialize({
      plUserId: TYPE_YOUR_USER_ID_HERE
    });
    var linkTag = document.createElement('link');
    linkTag.rel = 'stylesheet';
    linkTag.href = 'https://cdn.parcellab.com/css/v5/main.min.css';
    document.getElementsByTagName('head')[0].appendChild(linkTag);
  }
</script>
<script async onload="plTrackAndTraceStart()" 
src="https://cdn.parcellab.com/js/v5/main.min.js"></script>
```

</details>

<details>

<summary>Changes to URL query parameters</summary>

URL query parameters that serve as on/off switches to enable/disable components in the page now expect to receive the following values: FALSE|TRUE|YES|NO.

If you are using the `disableVoting` option, the values `true` or `yes` need to be set to disable any voting features that are configured for your Order Status page.

If you are using the `pwrdBy_parcelLab` option, the values `false` or `no` need to be set to disable the parcelLab reference on your Order Status page.

**parcelLab User ID Option**

When using the tracking plugin with orders, the `plUserId` option should be used.

```
https://myshop.com/track-and-trace?plUserId=1612197&orderNo=00PL004
```

The `userId` and `u` options are backward compatible, however `plUserId` takes precedence for retrieving the value of your parcelLab user ID.

**Discontinued URL Options**

The following URL options are no longer available:

* `animateTruck`
* `customCss`
* `margin`

If you were using the `margin` option to control the margins of the tracking plugin, this should now be managed in the root container. The tracking plugin takes the full width of the screen (that is: capped at 750px in small devices, 970px in medium devices, and 1170px in large devices).

</details>

<details>

<summary>Custom ID for plugin root container</summary>

You can now pass a custom ID to be used for the root container where the tracking plugin will be loaded. If a custom ID is not implemented, the ID of the root container falls back to `parcellab-track-and-trace`.

</details>

<details>

<summary>New HTML classes for styling</summary>

If you are using a custom stylesheet to override the default CSS styles, you may need to update your CSS rules to accommodate the discontinued URL options. You can also use the options described in the following table for additional customization of your Order Status page.

| Option             | Description                                                   | Sample/Default     |
| ------------------ | ------------------------------------------------------------- | ------------------ |
| icon\_theme        | Enables holiday-themed status icons.                          | `xmas` or `easter` |
| liveMapBackground  | The background color of the live tracking map footer.         | Hex color code     |
| liveMapColor       | The text color in the live tracking map footer.               | Hex color code     |
| tabIconColor       | The color of tab icons for multi parcel deliveries.           | Hex color code     |
| tabActiveIconColor | The color of the active tab icon for multi parcel deliveries. | Hex color code     |

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.parcellab.com/docs/developers/status-updates/order-status-page-configuration/order-status-page-version-upgrade.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
