Search shipments for the authenticated shop by order name or tracking code. Requests require a Wonderment API access token with shipment read access. Some shops also require customer verification with the optional t query parameter.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Search shipments for the authenticated shop by order name or tracking code. Requests require a Wonderment API access token with shipment read access. The optional t query parameter is separate customer verification and is only required when customer search authentication is enabled for the shop.
Creating the t token
t tokenThe t parameter must be Base64-encoded JSON containing the search query and either the customer's email or phone. The query can be an order name or tracking code and overrides the searchTerm in the URL.
Use JSON.stringify so the value passed to btoa is valid JSON:
const t = btoa(
JSON.stringify({
email: "[email protected]",
query: "1049"
})
)
Then include the token as a query parameter:
const url = `https://api.wonderment.com/2022-10/shipments/search/1049?t=${encodeURIComponent(t)}`
403Token does not include shipment read access.
