Skip to main content

How to share order tracking link

GraphQL mutation

The ShareOrders mutation allows partner carriers to generate links for tracking orders, requesting bids, or assigning orders, making it easy to access and manage order information efficiently.

const fetch = require("node-fetch")

fetch("https://backend.impargo.eu/", {
method: "POST",
headers: {
authorization: token,
"content-type": "application/json",
},
body: JSON.stringify([
{
operationName: "ShareOrders",
variables: {
orders: ["65c7f1a5e6688870613c2135"],
type: "TRACKING"
},
query: `mutation ShareOrders($orders: [ObjectId!]!, $type: EnumShareType!) {
shareOrders(orders: $orders, type: $type)
}`
}
]),
});

[
{
"data":{
"shareOrders":"https://apps.impargo.de/orders/tracking/Ve2oarH-u"
}
}
]