Skip to content
gist.link ↗

defaultOrigin

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

The org’s default ship-from: default settings ship-from location → first ships_from location → business address.

shipping:query:defaultOrigin

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

type Query {
defaultOrigin: Address
}

This query takes no arguments.

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": "query DefaultOrigin { defaultOrigin { name company line1 line2 city region postalCode country } }",
"variables": {}
}
JSON