Skip to content
gist.link ↗

startCarrierConnection

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

Begin a carrier-hosted connection (oauth / partner_redirect): returns where to send the browser. The carrier returns to the shipping frontend’s /carriers/callback.

shipping:mutation:startCarrierConnection

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

type Mutation {
startCarrierConnection(input: StartCarrierConnectionInput!): CarrierConnectionStart!
}
Argument Type Required Description
input StartCarrierConnectionInput! Yes —

CarrierConnectionStart! — 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": "mutation StartCarrierConnection($input: StartCarrierConnectionInput!) { startCarrierConnection(input: $input) { uuid method authorizeUrl postFields expiresAt } }",
"variables": {
"input": {
"carrier": "example",
"acceptedTerms": [
"example"
]
}
}
}
JSON