Skip to content
gist.link ↗

quoteRates

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

Stateless rate quote: no shipment is persisted unless persist is true. Used by pay’s checkout/invoice builder and the quick-quote calculator.

shipping:query:quoteRates

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 {
quoteRates(input: QuoteRatesInput!): RateQuote!
}
Argument Type Required Description
input QuoteRatesInput! Yes —

RateQuote! — 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 QuoteRates($input: QuoteRatesInput!) { quoteRates(input: $input) { shipmentUuid } }",
"variables": {
"input": {
"parcels": [
{
"lengthMm": 10,
"widthMm": 10,
"heightMm": 10,
"weightGrams": 10
}
]
}
}
}
JSON