Skip to content
gist.link ↗

winLossSummary

Query CRM API — POST https://crm.api.gist.link/graphql

The winLossSummary query on the CRM API.

crm:query:winLossSummary

The calling IAM key must hold this permission (or a wildcard that covers it: crm:query:* or crm:*) and the access token must have been minted with audience=crm. See Permissions.

type Query {
winLossSummary(days: Int): WinLossSummary!
}
Argument Type Required Description
days Int No —

WinLossSummary! — see the CRM types reference.

Terminal window
curl https://crm.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query WinLossSummary($days: Int) { winLossSummary(days: $days) { days wonCount wonAmountMinor lostCount lostAmountMinor winRateBps } }",
"variables": {
"days": 10
}
}
JSON