Skip to content
gist.link ↗

Shipping API

Multi-carrier shipping: live rates, label purchase, tracking, and voids.

Endpoint POST https://shipping.api.gist.link/graphql
Token audience audience=shipping
Permission prefix shipping:

Mint an access token for this API with your IAM key and audience=shipping — see Authentication.

Operation Required permission Description
carrierAccounts shipping:query:carrierAccounts The organization’s carrier accounts (master + BYO).
carriers shipping:query:carriers Full carrier catalog with per-org market availability.
customRateTables shipping:query:customRateTables —
defaultOrigin shipping:query:defaultOrigin The org’s default ship-from: default settings ship-from location → first ships_from location → business address.
health shipping:query:health Public liveness/identity probe (no auth required).
label shipping:query:label —
labelByTracking shipping:query:labelByTracking Look up a purchased label by carrier + tracking number.
labelFile shipping:query:labelFile Label file bytes (base64) for download/printing; org-scoped. Never a bucket URL.
labels shipping:query:labels —
origins shipping:query:origins Ship-from origins: the org’s settings locations with ships_from (the business address when there are none).
parcelTemplates shipping:query:parcelTemplates —
quoteRates shipping:query:quoteRates Stateless rate quote: no shipment is persisted unless persist is true. Used by pay’s checkout/invoice builder and the quick-quote calculator.
shipment shipping:query:shipment —
shipments shipping:query:shipments —
shippingSummary shipping:query:shippingSummary Postage + fee totals for the overview dashboard.
webhookEndpoints shipping:query:webhookEndpoints —
Operation Required permission Description
acceptCarrierTerms shipping:mutation:acceptCarrierTerms Accept updated terms for an existing account (when termsCurrent is false).
completeCarrierConnection shipping:mutation:completeCarrierConnection Finish a carrier-hosted connection with the callback’s query parameters (single use, 30 min).
connectCarrierAccount shipping:mutation:connectCarrierAccount Connect the org’s own carrier account for account_number / api_key carriers (non-secret identifiers or a carrier-issued API key — never a website login; encrypted and write-only). oauth / partner_redirect carriers are rejected: use startCarrierConnection.
createShipment shipping:mutation:createShipment Persist a shipment and fetch rates from every eligible carrier.
deleteCustomRateTable shipping:mutation:deleteCustomRateTable —
deleteParcelTemplate shipping:mutation:deleteParcelTemplate —
deleteWebhookEndpoint shipping:mutation:deleteWebhookEndpoint —
disconnectCarrierAccount shipping:mutation:disconnectCarrierAccount —
enableMasterCarrier shipping:mutation:enableMasterCarrier Enable a GistLink master account for a carrier (postage paid from billing credits). acceptedTerms must be exactly the carrier’s master terms + the GistLink Shipping Terms as “key@version” (see Carrier.terms with appliesTo master|both).
purchaseLabel shipping:mutation:purchaseLabel Buy a label for a rate. Billing fails closed.
refreshRates shipping:mutation:refreshRates Re-fetch rates for an existing shipment (old rates are expired).
refreshTracking shipping:mutation:refreshTracking Pull the latest tracking events from the carrier now.
saveCustomRateTable shipping:mutation:saveCustomRateTable —
saveParcelTemplate shipping:mutation:saveParcelTemplate —
saveWebhookEndpoint shipping:mutation:saveWebhookEndpoint Create (no uuid) or update (uuid) an outbound webhook. The secret is only returned on create.
startCarrierConnection shipping:mutation:startCarrierConnection Begin a carrier-hosted connection (oauth / partner_redirect): returns where to send the browser. The carrier returns to the shipping frontend’s /carriers/callback.
updateCarrierAccount shipping:mutation:updateCarrierAccount —
validateAddress shipping:mutation:validateAddress Validate (and normalize) an address. Stateless — nothing is stored.
voidLabel shipping:mutation:voidLabel Void an unused label; master-account postage is refunded to billing credits.