Browse the extensions reference

classificationStats

returns ClassificationStats

How one month's bank lines were classified, per suggestion source.

Taken as suggested, overridden, split, or chosen with no suggestion to take, and the share that needed a person's choice. Counted from the lines committed in the month; lines posted before outcomes were recorded are unstamped and outside the share.

Arguments

NameTypeDescription
periodString!The month, YYYY-MM, over the lines' own dates.
entityIdStringThe entity whose lines to count. Omit for the group parent.

Returns ClassificationStats

How a month's bank lines were classified, counted from the lines.

FieldTypeDescription
periodString!The month, YYYY-MM.
entityIdStringThe entity counted.
linesInt!Committed bank lines in the month that recorded an outcome.
acceptedInt!Lines posted to the account suggested.
overriddenInt!Lines posted to another account than the one suggested.
unsuggestedInt!Lines that had no suggestion, so a person chose.
splitInt!Lines split across accounts.
unstampedInt!Committed lines from before outcomes were recorded; outside the share.
humanChoiceShareFloatThe share of lines that needed a person's choice: everything but accepted, over lines. Null when no line recorded an outcome.
openLinesInt!Lines in the month still captured or classified, not posted.
bySource[ClassificationSourceStats!]!The same counts per suggestion source, largest first.

Example

query
{ classificationStats(period: "...") { period entityId lines accepted } }
curl
curl -X POST "https://api.robosystems.ai/extensions/$GRAPH_ID/graphql" \
  -H "X-API-Key: $ROBOSYSTEMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "{ classificationStats(period: \"...\") { period entityId lines accepted } }"}'