Skip to content
gist.link ↗

products

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

Cursor-paginated products for the caller’s organization (all statuses). ADMIN.

shop:query:products

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 {
products(filter: ProductFilter, sort: SortInput, first: Int, after: String): ProductConnection!
}
Argument Type Required Description
filter ProductFilter No —
sort SortInput No —
first Int No —
after String No —

ProductConnection! — 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 Products($filter: ProductFilter, $sort: SortInput, $first: Int, $after: String) { products(filter: $filter, sort: $sort, first: $first, after: $after) { totalCount edges { cursor node { id uuid title status created_at updated_at } } } }",
"variables": {
"filter": {
"status": "example",
"search": "example"
},
"sort": {
"field": "example"
},
"first": 10,
"after": "cursor"
}
}
JSON