Skip to content

Getting started with Track & Trace

The Track & Trace API scopes every call to a single shipment through an mxtt_traceinfo cookie. Unlike the rest of the MendriX REST API, there is no API-token exchange and no bearer token — you obtain a cookie by presenting a shipment’s trace credentials, then send that cookie on every subsequent call.

  1. Start a trace session. Perform a GET on the entry point https://<your-client-name>.mendrix.cloud/WorldLink/TrackAndTrace/ with the shipment’s trace credentials as query parameters. On a successful lookup the response carries a Set-Cookie: mxtt_traceinfo=<value> header.
  2. Reuse the cookie. Send that cookie on every call under https://<your-client-name>.mendrix.cloud/WorldLink/TrackAndTrace/v1 (address, goods, milestones, traces, appointment, and so on).

Tracecode is always required. Combine it with either of:

FlowQuery parameters
Trace code + order idTracecode + Orderid
Trace code + addressTracecode + Postalcode + Number (house number)

The server validates the combination against the order; only a matching shipment yields data.

Terminal window
CLIENT="your-client-name" # the client name assigned by MendriX
BASE="https://$CLIENT.mendrix.cloud/WorldLink/TrackAndTrace"
TRACECODE="MXTTF5F23DD15103C8BE"
POSTALCODE="5171KW"
NUMBER="1"
# 1. Start the trace session and capture the mxtt_traceinfo cookie
curl -s -c cookies.txt \
"$BASE/?Tracecode=$TRACECODE&Postalcode=$POSTALCODE&Number=$NUMBER" \
-o /dev/null
# 2. Call a v1 endpoint with the stored cookie
curl "$BASE/v1/Milestones" \
-b cookies.txt \
-H "Accept: application/json"

Failed trace lookups are throttled per client IP. Once too many lookups with unknown trace credentials arrive from one IP within a short window, further lookups from that IP are rejected with 429 Too Many Requests carrying a Retry-After header with the number of seconds to wait; the body is the usual Code/Msg error object. Read Retry-After instead of hard-coding a back-off — the window is a server-side setting.

Normal portal traffic is unaffected:

  • Successful lookups are not counted, so repeatedly opening a valid trace link is never throttled.
  • Calls that already carry an mxtt_traceinfo cookie are exempt, so polling /v1/Milestones for a live shipment never consumes the budget.

The appointment flow is a multi-step “concept” process: propose a new date or address as a concept, confirm it, and — when the reschedule carries an extra cost — complete a Mollie payment before the final confirmation. Every step is documented in the interactive reference under the Appointment and Payment tags.

  • Browse every endpoint in the interactive reference — address, goods, milestones, traces, live route, task instructions, and the full appointment/payment reschedule flow.