Skip to main content

Update Sales Rep Target

PUT 

/api/sales-rep-targets/:salesRepTarget

Replace a sales target. Takes the same body as Create Sales Rep Target.

Required scope: settings:write

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

Body fields:

  • sales_rep_id (integer, required) — an existing sales rep.
  • period_type (string, required) — month, quarter or year.
  • period_start (date, required) — any date in the period; it is normalised to the first day of its month, calendar quarter or calendar year (2026-11-17 → 2026-11-01; quarter → 2026-10-01; year → 2026-01-01).
  • customer_id (integer, optional) — narrow the target to one customer (retailer).
  • brand_id (integer, optional) — narrow the target to one product brand.
  • category_id (integer, optional) — narrow the target to one product category instead of a brand. A sale counts toward its product's primary category (a variant without one uses its parent product's), and a category target also counts its subcategories' sales unless a subcategory has its own target. Send a brand or a category, not both: both returns 422 on category_id.
  • amount (number, required) — target sales in your account's currency, more than 0.
  • notes (string, optional, max 1000).

Only one target may exist per rep, period, customer, brand and category. Saving a second one at the same level returns 422 with an error on sales_rep_id.

Request​

Responses​

OK

Response Headers
    Content-Type