Skip to main content

WonDeal marks a deal as won. `close_reason` is required.

POST 

/api/v1/crm/deals/:id/won

Sets outcome = "won", records closed_at and closed_by, and writes a crm.deal.won activity entry on the parent contact/account.

Errors:

  • NOT_FOUND: deal does not exist.
  • PERMISSION_DENIED: caller lacks write access to the parent object.
  • FAILED_PRECONDITION: deal is already closed.
  • INVALID_ARGUMENT: close_reason is empty.

Request

Responses

A successful response.