Skip to content
gist.link ↗

crmCompanies

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

Search the CRM customer book’s companies for the invoice customer picker. Any org member.

pay:query:crmCompanies

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

[CrmCompany!]! — 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 CrmCompanies($search: String, $first: Int) { crmCompanies(search: $search, first: $first) { uuid name domains website industry size } }",
"variables": {
"search": "example",
"first": 10
}
}
JSON