Skip to content
gist.link ↗

customer

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

A single customer by uuid. ADMIN. (shop has no customer list — customers live in crm.)

shop:query:customer

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 {
customer(id: String!): Customer
}
Argument Type Required Description
id String! Yes —

Customer — 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 Customer($id: String!) { customer(id: $id) { id uuid email name created_at updated_at } }",
"variables": {
"id": "example"
}
}
JSON