Skip to main content

Delete Sales Rep

DELETE 

/api/sales-reps/:id

Deletes a sales rep.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

Authentication: Requires Bearer token

Side effects (performed in a single transaction before the delete):

  • Unlinks the rep from all sales orders (sales_orders.sales_rep_id set to null)
  • Clears the rep as the default on any linked customers (customers.default_sales_rep_id set to null)

Returns 404 if the sales rep does not exist.

Request

Responses

OK

Response Headers
    Content-Type