Skip to content
gist.link ↗

connectCarrierAccount

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

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.

shipping:mutation:connectCarrierAccount

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 {
connectCarrierAccount(input: ConnectCarrierAccountInput!): CarrierAccount!
}
Argument Type Required Description
input ConnectCarrierAccountInput! Yes —

CarrierAccount! — 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 ConnectCarrierAccount($input: ConnectCarrierAccountInput!) { connectCarrierAccount(input: $input) { uuid mode accountNumber serviceLevels active testMode configuredCredentials createdAt } }",
"variables": {
"input": {
"carrier": "example",
"credentials": {},
"acceptedTerms": [
"example"
]
}
}
}
JSON