Skip to main content

Get Customer Spend Tier

GET 

/api/customers/:customer/spend-tier

Get a customer's spend-ladder standing: current tier, qualifying spend, progress to the next step, lock state, any open proposal and recent tier moves.

Required scope: customers:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token. Token scope: customers:read.

Qualifying spend. A customer's qualifying spend is the product-line revenue of their sales orders, net of line discounts and credits, in the account's base currency. Tax and shipping are excluded. Canceled and draft orders never count. By default only orders that have shipped (partially or fully) or been invoiced count (spend_basis=shipped_or_invoiced); spend_basis=confirmed counts every confirmed order. Orders are placed in the window by their order date, in the account's timezone.

Window. spend_window=trailing_12_months measures the last 12 months up to and including today. spend_window=calendar_ytd measures 1 January to today; a calendar ladder uses the larger of year-to-date spend and the last full calendar year's spend, so a customer keeps credit for last year's spend while the new year builds up.

Response fields: on_ladder — false when the customer's current tier is on no spend ladder (or the ladder is portal-only and the customer has no portal access); then only on_ladder, ladder (null), current_tier and the lock and history fields are returned. On a ladder you also get is_enabled, show_on_portal, ladder (id, name, spend_window, spend_window_label, spend_basis, downgrade_policy, is_enabled), current_step_label, qualifying_spend (the spend the ladder judges the customer on — for a calendar ladder the larger of this year and last full year), window_spend (spend in the current window), previous_period_spend (last full calendar year, calendar ladders only, else null), window_start / window_end (the window qualifying_spend was measured over), period_end (31 December for calendar ladders, null for trailing), next_step (tier_id, tier_name, label, min_spend, remaining; null at the top step) and steps.

Always returned: current_tier (id, name, is_default — true when the customer has no tier of their own and gets the account default), locked, locked_reason, locked_at, locked_by_user_id, pending_move (the open proposal, or null) and history (the 10 most recent moves, newest first). Moves use the same shape as List Customer Pricing Tier Moves.

Request​

Responses​

OK

Response Headers
    Content-Type