Skip to content
gist.link ↗

validateAddress

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

Validate (and normalize) an address. Stateless — nothing is stored.

shipping:mutation:validateAddress

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 {
validateAddress(input: AddressInput!): Address!
}
Argument Type Required Description
input AddressInput! Yes —

Address! — 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 ValidateAddress($input: AddressInput!) { validateAddress(input: $input) { name company line1 line2 city region postalCode country } }",
"variables": {
"input": {
"line1": "example",
"city": "example",
"country": "example"
}
}
}
JSON