Skip to main content
PATCH
Move an existing opportunity to another stage in the same inbox. The destination stage determines whether additional sale or loss details are required.

cURL examples

The request panel includes complete commands for regular, sale, and loss stage transitions. Replace YOUR_API_ACCESS_TOKEN, account ID 10, inbox ID 25, opportunity ID 123, and stage IDs with values from your account. Stage IDs identify Kanban columns. The cURL commands use Bash syntax. --include prints the HTTP status and response headers along with the JSON body.

Authentication

Send a user or AgentBot API access token in the request header:
The token must have access to the account and inbox. A session login alone does not authorize this endpoint. Administrators can move accessible opportunities. Agents can move opportunities assigned to them, subject to the restrictions below. AgentBot tokens are treated as administrators for Kanban access.

Path parameters

Common fields

Move to a regular stage

The opportunity is placed at the end of the destination stage. Moving a won or lost opportunity to a regular stage reopens it and requires administrator privileges.

Move to a sale stage

For stages categorized as sales or sales_BR, provide:
The transition marks the opportunity as won, records the sale details, and clears previous loss details.

Move to a loss stage

For stages categorized as sales_lost, provide: Accepted reasons: price, no_response, credit_denied, competitor, unavailable, gave_up, invalid_contact, duplicate, and other.
The transition marks the opportunity as lost and records the reason, notes, and loss time.

Validation and access rules

  • The opportunity must be active (not archived) and belong to the specified inbox.
  • The destination stage must be active, accessible, and belong to the same inbox. It can belong to another board within that inbox.
  • An agent must be assigned to the opportunity to move it.
  • Moving an opportunity that is already won or currently in a sale stage requires administrator privileges.
  • Reopening a won or lost opportunity requires administrator privileges.
  • Entering a stage with an enabled GIA campaign entry action requires administrator privileges and a linked contact.
  • If the opportunity is already in the requested stage, the request leaves it unchanged and returns transitioned: false. Additional sale or loss details are not required for that no-op request.

Response models

200 OK

Returns 200 OK:
status is the resulting CriaChat opportunity status: open, won, or lost. transitioned indicates whether a stage change occurred.

401 Unauthorized

The API access token is missing or invalid. Account access failures and suspended accounts can also return 401, with a different error message.

404 Not Found

The opportunity, inbox, or destination stage is invalid or inaccessible. Archived opportunities are excluded from the lookup.
Both error examples use this model:

Errors

Example resource error: