Skip to content
gist.link ↗

shopLocations

Query Pay API — POST https://pay.api.gist.link/graphql

Active shop stock locations (purchase-order receiving picker). ROLE_ADMIN or ROLE_PAY_MANAGER.

pay:query:shopLocations

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

type Query {
shopLocations: [ShopLocation!]!
}

This query takes no arguments.

[ShopLocation!]! — see the Pay types reference.

Terminal window
curl https://pay.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query ShopLocations { shopLocations { uuid name } }",
"variables": {}
}
JSON