Skip to content
gist.link ↗

shopProducts

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

Search the shop catalog (the suite’s single product catalog) for invoice lines and purchase orders. Proxied from shop with a service token; archived products are excluded. Fails with UPSTREAM_UNAVAILABLE when shop is unreachable. ROLE_ADMIN or ROLE_PAY_MANAGER.

pay:query:shopProducts

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 {
shopProducts(search: String, first: Int): [ShopProduct!]!
}
Argument Type Required Description
search String No —
first Int No —

[ShopProduct!]! — 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 ShopProducts($search: String, $first: Int) { shopProducts(search: $search, first: $first) { variant_uuid product_uuid title sku price currency on_hand tracked } }",
"variables": {
"search": "example",
"first": 10
}
}
JSON