Skip to content
gist.link ↗

shippingSummary

Query Shipping API — POST https://shipping.api.gist.link/graphql

Postage + fee totals for the overview dashboard.

shipping:query:shippingSummary

The calling IAM key must hold this permission (or a wildcard that covers it: shipping:query:* or shipping:*) and the access token must have been minted with audience=shipping. See Permissions.

type Query {
shippingSummary(from: String, to: String): ShippingSummary!
}
Argument Type Required Description
from String No —
to String No —

ShippingSummary! — see the Shipping types reference.

Terminal window
curl https://shipping.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query ShippingSummary($from: String, $to: String) { shippingSummary(from: $from, to: $to) { labelCount inTransit delivered exceptions } }",
"variables": {
"from": "example",
"to": "example"
}
}
JSON