Skip to content
gist.link ↗

customers

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

Cursor-paginated customers (billing profiles). Any org member.

pay:query:customers

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

CustomerConnection! — 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 Customers($filter: CustomerFilter, $sort: SortInput, $first: Int, $after: String) { customers(filter: $filter, sort: $sort, first: $first, after: $after) { totalCount edges { cursor node { id uuid name email created_at updated_at } } } }",
"variables": {
"filter": {
"search": "example"
},
"sort": {
"field": "example"
},
"first": 10,
"after": "cursor"
}
}
JSON