Magento 2 Order Status & Shipping Tracking Pro v1.x REST API

The Order Status & Shipping Tracking Pro REST API lets you add a “Track Order” feature to a mobile app, PWA, or any custom storefront. With one request to Magento, a signed-in customer gets the status of their own order, its shipments, the saved tracking numbers, and the tracking events available from the carrier.

The API is available in Order Status & Shipping Tracking Pro starting from version 1.3.6.

Before you start:

In the Magento store:

  • Install Order Status & Shipping Tracking Pro version 1.3.6 or later.
  • Enable the extension for the store view where orders are placed: go to Stores > Configuration > Plumrocket > Order Status & Shipping Tracking > General.
  • Set up and enable the carrier integrations you need. Carrier credentials stay on the Magento server and are never sent to the app.

In your app:

  • Send all requests over HTTPS.
  • Have the internal ID (entity_id) of the order ready. Take it from your checkout or order history integration.

Endpoint

GET /rest/V1/shippingtracking/orders/<order_id>
Authorization: Bearer <customer_access_token>
Accept: application/json

The endpoint is read only and returns tracking data for one order per request. It accepts only the access token of the customer who owns the order. Guest access, admin tokens, and integration tokens are not supported, so never embed an admin or integration token in your app.

Authenticate the Customer

The API uses the standard Magento customer authentication. If your app already has a valid customer access token, reuse it. Otherwise, request one:

curl --request POST \
  'https://shop.example.com/rest/V1/integration/customer/token' \
  --header 'Content-Type: application/json' \
  --header 'Accept: application/json' \
  --data '{"username":"customer@example.com","password":"YOUR_CUSTOMER_PASSWORD"}'

A successful request returns HTTP 200 with the token as a JSON string:

"CUSTOMER_ACCESS_TOKEN"

Pass the token value without the outer quotes in the Authorization header, and store it securely on the device. The token lifetime is set in your Magento configuration. When the token expires or is revoked, ask the customer to sign in again.

Request Order Tracking

curl --request GET \
  'https://shop.example.com/rest/V1/shippingtracking/orders/42' \
  --header 'Authorization: Bearer CUSTOMER_ACCESS_TOKEN' \
  --header 'Accept: application/json'
ParameterWhereDescription
order_idURL pathInternal Magento order ID (entity_id), for example 42. This is not the order number (increment_id) that the customer sees.
AuthorizationHeaderBearer <customer_access_token>
AcceptHeaderapplication/json

The request has no body and accepts no other parameters. Shipments and tracking numbers always come from the data saved in the order.

Multiple store views: the URL above works for the default store view. If the order was placed in another store view, add the code of that store view after /rest/, for example /rest/french/V1/shippingtracking/orders/42. Otherwise, the API returns HTTP 404.

Response

A successful request returns HTTP 200 and a JSON object with the order, its shipments, and the tracking numbers of each shipment. The example uses sample data.

{
  "order_id": 42,
  "increment_id": "000000042",
  "status": "processing",
  "shipments": [
    {
      "shipment_id": 11,
      "increment_id": "000000011",
      "created_at": "2026-11-16 10:00:00",
      "tracks": [
        {
          "carrier_code": "dhl",
          "title": "DHL",
          "tracking_number": "0012345678",
          "state": "available",
          "events": [
            {
              "location": "Toronto",
              "date": "11/16/2026",
              "time": "10:00 AM",
              "status": "Delivered",
              "scan_type": ""
            }
          ]
        }
      ]
    }
  ]
}

Order Fields

FieldTypeDescription
order_idintegerInternal Magento order ID.
increment_idstringOrder number shown to the customer.
statusstringMagento order status code, including custom statuses. It describes the order in the store, not a carrier event.
shipmentsarrayAll shipments of the order. Empty if the order has not been shipped yet.

Shipment Fields

FieldTypeDescription
shipment_idintegerInternal Magento shipment ID.
increment_idstringShipment number for display.
created_atstringDate and time the shipment was created in Magento, in UTC.
tracksarrayTracking numbers saved for the shipment. Empty if none are saved.

Tracking Number Fields

FieldTypeDescription
carrier_codestringCarrier code, for example dhl.
titlestringCarrier name for display.
tracking_numberstringTracking number. Always a string, so leading zeros are kept.
statestringResult of the carrier request. See Tracking States.
eventsarrayTracking events in the order the carrier returns them.

If several tracking numbers are saved in one field separated by commas, the API returns a separate entry for each unique number.

Event Fields

FieldTypeDescription
locationstringLocation of the event.
datestringEvent date.
timestringEvent time.
statusstringEvent description from the carrier, for example “Delivered”.
scan_typestringScan classification. Filled for Purolator, can be empty for other carriers.

Event values come from the carrier, so show them as plain text. The date and time formats and time zones differ between carriers: do not parse them. A value the carrier does not provide is returned as an empty string.

Tracking States

Each tracking number has its own state. It shows whether carrier data was received, not whether the package was delivered.

StateMeaning
availableCarrier events were received.
no_eventsThe carrier returned no events yet.
disabledThe carrier connection is disabled in this store view.
unsupportedThe extension has no tracking service or configuration for this carrier.
unavailableThe carrier returned an error, or the request failed.

For every state except available, events is empty, but the carrier name and tracking number are still returned. Show the tracking number with a short message: “no updates yet” for no_events, and “tracking details are not available” for the other three. Raw carrier errors are never included in the response.

HTTP Status Codes and Errors

HTTP codeMeaningWhat to do
200Order data was received. A carrier failure does not change this code: it is reported in the state of the tracking number.Show the order and check each tracking number.
400Magento rejected the input.Check the request URL and the order ID.
401The token is missing, invalid, or of an unsupported type.Ask the customer to sign in again.
404The order does not exist, belongs to another customer or store view, or the extension is disabled.Show that tracking is not available for this order.

Errors use the standard Magento JSON format:

{
  "message": "The order is not available for tracking."
}

Magento can translate error messages, so base your app logic on the HTTP code, not on the message text.

How to Build the Tracking Screen

Step-by-step guide:

  1. Request tracking data when the customer opens the order screen or asks for an update. Avoid continuous polling.
  2. Show the order number (increment_id), the order status, and each shipment with its tracking numbers.
  3. Show events or a message for each tracking number according to its state. If one carrier fails, keep the rest of the order on the screen.
  4. If shipments is empty, show that the order has not been shipped yet. This is a normal response, not an error.

Limitations

  • Updates on request only. The API has no webhooks or push notifications. Carriers are requested live on each call with no caching, so response time depends on the carrier.
  • No order list or search. The endpoint does not return a list of orders and does not search by order number or tracking number.
  • Tracking data only. The response does not include order items, totals, addresses, or customer contact and payment data.
  • REST for signed-in customers only. There is no GraphQL endpoint. Guest tracking stays available on the Track My Order pages of the Magento storefront.

FAQ

Can guests track orders through the API?

No. The API requires a signed-in customer and checks that the order belongs to them. Guest tracking by order number and email or phone stays available on the Track My Order page of the Magento storefront.

Can I use the API in an iOS app, an Android app, or a headless storefront?

Yes, as a data source for your own integration. Your team builds the customer sign-in, the order selection, the API call, and the tracking screen. The extension does not include an SDK or ready-made app screens.

Is the API available in Order Status & Shipping Tracking Lite?

No. The API is part of the Pro extension, version 1.3.6 and later.

Does the app need carrier API keys?

No. The app uses only the Magento customer token. Carrier connections and credentials are configured on the Magento server.

Can I get all orders of a customer in one request?

No. One request returns tracking data for one order by its internal ID. Load the order list with another part of your integration.

What happens if a carrier is unavailable?

The tracking number stays in the response with a state that explains why events are missing. The app can show the number with a message and keep the rest of the order on the screen.

Does the API change the Magento order status when a package is delivered?

No. The endpoint only reads data. It does not change order statuses based on carrier responses.

Was this article helpful?