Skip to main content

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.

Required scope: customers:read

Grant 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​

OK

Response Headers
    Content-Type