We are using the API to show total (and open etc) tickets for a customer. But the number returned doesn't match the number of tickets shown for that customer through the main web interface, or the number that we get when we use the API to return the actual tickets (using search.json). The numbers are quite different, for example with the query below (with ids redacted, of course) we get a count of 19 but in actual fact the customer has 36 tickets in the system.
curl https://redacted.zendesk.com/api/v2/views/preview/count.json --silent --show-error -u redacted:redacted -X POST -H "Content-Type: application/json" -d '
[view_count] => Array
[value] => 19
[pretty] => 19
[fresh] => 1
Please sign in to leave a comment.