Skip to content
gist.link ↗

settingsLocations

Query Shop API — POST https://shop.api.gist.link/graphql

The org’s own locations from the settings service (settings owns their addresses) — the picker for a shop location’s settings_location_uuid and the label ship-from. ships_from filters to shipping origins. ADMIN.

shop:query:settingsLocations

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

type Query {
settingsLocations(ships_from: Boolean): [LocationAddress!]!
}
Argument Type Required Description
ships_from Boolean No —

[LocationAddress!]! — see the Shop types reference.

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