Skip to content

Get device labels

Request

Returns the label and shipment of up to 20 devices, one entry per requested QR code, in request order. Read-only and safe to retry.

  • A QR code with no device in your account, or a device outside the applications or facilities your account can use, returns {qrcode, found: false}. This is not an error.
  • A device known to your account but never labelled is returned with found: true and status: NOT_ACTIVATED.

Query. Repeat qrcode for several devices (?qrcode=A&qrcode=B); a comma-separated value is not split. Matching is exact and case-sensitive; surrounding spaces are trimmed. include adds optional blocks and accepts either one comma-separated value or the parameter repeated (don't mix the two forms). An unknown include value returns 400.

GET /external/v1/devices/label?qrcode=TRK0012345&qrcode=TRK0099999&include=metadata,fw_configuration,hw_configuration
GET /external/v1/devices/label?qrcode=TRK0012345&include=metadata&include=fw_configuration&include=hw_configuration

Headers. Send customer_id and authorized_group only when your API identity has access to more than one account.

Security
bearerAuth
Query
qrcodeArray of strings, [ 1 .. 20 ] itemsrequired

Device QR code. Repeat the parameter for several devices (1–20 values). Each value must be non-empty after trimming. Exact, case-sensitive match. Comma-separated values are not split.

Examples:
Two devices
qrcode=["TRK0012345","TRK0099999"]
One device
qrcode=["TRK0012347"]
includeArray of strings

Optional extra blocks for each found device: metadata, fw_configuration, hw_configuration. Send one comma-separated value or repeat the parameter.

Items Enum:"metadata""fw_configuration""hw_configuration"
Examples:
All blocks with include=metadata,fw_configuration,hw_configuration
include=["metadata","fw_configuration","hw_configuration"]
Headers
correlation_idstring

Optional request ID. Trackonomy records it with the request so support can trace a call you report.

Example:5f0c2b8e-6a51-4f7e-9d0e-1c2b3a4d5e6f
customer_idstring

Only needed when your API identity has access to more than one account. Send it together with authorized_group to choose the account. When your identity has a single account, omit both headers: the account comes from the access token.

Example:acme
authorized_groupstring

Only needed when your API identity has access to more than one account; send it together with customer_id. authorized_groups is accepted as the same header.

Example:acme-logistics
curl --request GET \
  --url 'https://ppe.api.trackonomy.com/external/v1/devices/label?qrcode=TRK0012345&qrcode=TRK0099999&include=metadata&include=fw_configuration&include=hw_configuration' \
  --header 'Authorization: Bearer <access_token>' \
  --header 'correlation_id: 5f0c2b8e-6a51-4f7e-9d0e-1c2b3a4d5e6f'

Responses

One entry per requested QR code.

Bodyapplication/json
devicesArray of anyrequired
Response
{ "devices": [ { … }, { … } ] }