Skip to main content

Change Shipment Tracking Carrier

POST 

/api/shipment-trackings/:tracking/change-carrier

Correct a mis-detected carrier via 17TRACK's /changecarrier endpoint and re-hydrate the row under the new carrier. 17TRACK auto-detects the carrier from the number format when registering and sometimes picks wrong — this fixes it without stopping/re-registering.

Authorization

Any valid API token can call this endpoint — no specific scope required. Manage tokens.

17TRACK caps carrier changes at 5 per number (error -18019807).

Request body:

On success the local row's carrier_code is updated, carrier_name clears (re-hydrated on the next /gettrackinfo), and the tracking history reloads under the new carrier.

Responses:

  • 200 OK — re-hydrated detail payload
  • 422 Unprocessable Entity with code: change_carrier_failed — 17TRACK rejected the change, or validation failed (missing/invalid carrier_code)
  • 404 Not Found — tracking ID does not exist

Request

Responses

OK

Response Headers
    Content-Type