Skip to main content

Get Customer Sales Targets

GET 

/api/sales-rep-targets/customers/:customer

Every target set for one customer (retailer) in one period, across all sales reps — for the retailer as a whole, for a brand at the retailer, and for a category at the retailer — with actual sales to that customer so far and the pace the period implies.

Required scope: settings:read

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

Each row carries scope (customer, customer_brand or customer_category), target, actual, variance and percent_of_target. Actual sales are counted exactly as in Get Sales Rep Target Performance. A category target also counts its subcategories' sales unless a subcategory has its own target.

period.elapsed_percent is how much of the period has gone by today (0 before it starts, 100 once it ends). expected_to_date is target × that share, and on_pace is true when actual has reached it — halfway through the year needs half the target.

Targets without a customer are not included. Rows are ordered retailer-wide first, then brand, then category. Requires the sales_reps.index permission.

A user who sees only their own customers gets 404 for a customer that is not theirs or their team's. For a customer they can see, only their own and their team's reps' targets are listed.

Request​

Responses​

OK

Response Headers
    Content-Type