Preview Grade Suggestions
GET/api/crm/grade-suggestions
Suggest a grade for each customer from the last 12 months' sales (ABC split). Nothing is saved: apply the suggestions with Apply Grade Suggestions.
customers:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Requires Bearer token with the customers scope and the customers.update permission.
The CRM activities feature must be switched on for the account; otherwise every CRM endpoint returns 404.
Customers covered: the active (not archived) customers you can see. Without permission to view all customers, that is only the customers whose default sales rep is your own sales rep.
How grades are suggested: customers are ranked by revenue over the last 12 months (product-line revenue less discounts and credits on confirmed, non-cancelled sales orders, in the account's base currency, excluding tax and shipping). A customer is A while the customers ranked above it make less than 65% of the total revenue (so the top customer is always A), B while they make less than 90% (the next 25%), and C after that. A customer with no revenue is C.
Rows are ordered by revenue, highest first. The response has the standard pagination fields plus summary: customers (all rows), total_revenue, currency_code (base currency), suggested (count per suggested grade) and changes (rows whose grade would change).
Request
Responses
- 200
- 401
- 403
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.