Skip to content
gist.link ↗

acceptCarrierTerms

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

Accept updated terms for an existing account (when termsCurrent is false).

shipping:mutation:acceptCarrierTerms

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 {
acceptCarrierTerms(uuid: ID!, acceptedTerms: [String!]!): CarrierAccount!
}
Argument Type Required Description
uuid ID! Yes —
acceptedTerms [String!]! 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 AcceptCarrierTerms($uuid: ID!, $acceptedTerms: [String!]!) { acceptCarrierTerms(uuid: $uuid, acceptedTerms: $acceptedTerms) { uuid mode accountNumber serviceLevels active testMode configuredCredentials createdAt } }",
"variables": {
"uuid": "01a01234-abcd-7000-9000-0123456789ab",
"acceptedTerms": [
"example"
]
}
}
JSON