Skip to content
gist.link ↗

locations

Query Settings API — POST https://settings.api.gist.link/graphql

The organization’s own locations (warehouses, stores, offices) — the suite’s ship-from origins (shipping) and inventory locations (shop). Active only unless include_inactive; ships_from filters by origin eligibility. Default ship-from first. Any org member or org-bound ROLE_SERVICE.

settings:query:locations

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

type Query {
locations(include_inactive: Boolean, ships_from: Boolean): [Location!]!
}
Argument Type Required Description
include_inactive Boolean No —
ships_from Boolean No —

[Location!]! — see the Settings types reference.

Terminal window
curl https://settings.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query Locations($include_inactive: Boolean, $ships_from: Boolean) { locations(include_inactive: $include_inactive, ships_from: $ships_from) { uuid name kind email created_at updated_at } }",
"variables": {
"include_inactive": true,
"ships_from": true
}
}
JSON