- Moving it into the pipeline’s won or lost stage wins or loses it; moving it out of one reopens it.
- Setting
statustowonorlostmoves it to the pipeline’s won or lost stage, if the pipeline has one. Settingopenon a deal in a closing stage moves it back to the last ordinary stage. - Sending
stageandstatustogether moves it and sets that status, whatever the stage.
stage must be one of that pipeline’s. The change shows in the deal’s history, made by the API key.
Needs the
crm.deals:write scope.Path parameters
Body
Request
Response
200 OK — the deal. A change sends one event to your webhook endpoints: deal.won, deal.lost or deal.reopened when its status changed, otherwise deal.stage_changed when it moved, otherwise deal.updated. A request that changes nothing sends none.
Errors
Every refusal is{"error": {"code", "message", "field"}}; field is there when one input is at fault.
Any request can also be refused for its key, its account or its rate (
key_required, invalid_key, account_suspended, plan_excludes_api, address_not_allowed, rate_limited); see the overview.