Get Customer Buying Matrix
GET/api/crm/customers/:customer/buying-matrix
Every category (or brand) with this customer's status over the period, bought first, for the customer page.
customers:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Requires Bearer token with the customers scope and the customers.index 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 who have ordered at least once. Without permission to view all customers, that is only the customers whose default sales rep is your own sales rep (plus the reps in the sales rep groups you manage, with team access).
Cell statuses, per customer and column: bought (at least one product line of a non-draft, non-cancelled sales order in the period), else quoted (a product line on a sent quote created in the period; draft, template, revised, archived and deleted quotes do not count), else lapsed (bought before the period), else never. Lines map to a column through the product: its brand, or each of its categories rolled up the category tree to the column on its path (a product in two categories counts in both). Column 0 holds products without a category (top level only) or without a brand; drilled into a category, a column with that category's id holds products filed on it directly rather than in a subcategory. These catch-all columns are shown only when someone bought from them. Revenue is line revenue less discounts and credits, in the base currency, excluding tax and shipping.
Period: period_start and period_end (Y-m-d, account timezone, inclusive; default the last 12 months, at most five years, ending no later than today).
The none column is left out when the customer never bought anything without a category or brand. A customer you cannot see returns 404.
Request
Responses
- 200
- 401
- 403
- 404
- 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.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
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.