Skip to main content

Change a deal's status

POST 

/deals/:id/status

Moves a deal through the pipeline with the DMS's rules. Scope sales:write. Setting the status it already has does nothing.

SOLD cannot be set: raising the invoice in the DMS is what sells a deal. CANCELLED is the DMS's Cancel order, which releases the vehicle and voids the order's invoices. ORDERED reserves the deal's vehicle. Conflicts (409): deal_closed (already cancelled or declined), deal_sold, deal_has_no_enquiry and deal_has_no_vehicle (for ORDERED).

Request​

Responses​

The deal.

Response Headers
    X-Request-Id

    This request's id. Quote it to support.

    X-RateLimit-Limit

    Requests allowed per minute for this key.

    X-RateLimit-Remaining

    Requests left in the current minute.

    Idempotent-Replayed

    true when this is the stored response to an earlier request with the same Idempotency-Key.