Update Sales Rep Target
PUT/api/sales-rep-targets/:salesRepTarget
Replace a sales target. Takes the same body as Create Sales Rep Target.
settings:writeGrant 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,quarteroryear.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 oncategory_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
- 200
- 401
- 403
- 404
- 422
- 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.
Unprocessable Content
Response Headers
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.