myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

Move stage

PATCH

/api/v1/ext/opportunities/{id}/stage

Move an opportunity to another stage of its pipeline.

Auth: Bearer access_token
Scope: opportunities.write

Runs any workflow that triggers on Opportunity stage changed. Moving it to the stage it is already in changes nothing.

Parameters

NameInTypeRequiredDescription
id
path
number
yes
Opportunity id.
stage_id
body
number
yes
A stage of the same pipeline (from List pipelines).

Responses

StatusWhen
200
OK
400
Missing or foreign stage
401
Missing or invalid token
403
Missing scope
404
Opportunity does not exist or is not owned by the installer
Request
curl -X PATCH "https://backend.mysmsgateway.app/api/v1/ext/opportunities/{id}/stage" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
  "stage_id": 10
}'
Responses
OK
{
  "success": true,
  "message": "Stage changed",
  "data": {
    "id": 55,
    "workspace_id": 7,
    "name": "Website redesign",
    "value": 1200,
    "currency": "USD",
    "status": "open",
    "lost_reason": null,
    "pipeline_id": 3,
    "pipeline": {
      "id": 3,
      "name": "Sales"
    },
    "stage_id": 10,
    "stage": {
      "id": 10,
      "name": "Won",
      "color": "#16a34a",
      "position": 2,
      "is_won": true,
      "is_lost": false
    },
    "contact_id": 1234,
    "contact": {
      "id": 1234,
      "first_name": "Ann",
      "last_name": "Lee",
      "email": "ann@example.com",
      "phone_number": "+61412345678",
      "company_name": "Lee Studio"
    },
    "owner_id": null,
    "source": "website",
    "tags": [
      "web"
    ],
    "custom_fields": {},
    "closed_at": null,
    "stage_changed_at": "2026-10-27T09:00:00.000Z",
    "last_activity_at": "2026-10-27T09:00:00.000Z",
    "created_at": "2026-10-27T09:00:00.000Z",
    "updated_at": "2026-10-27T09:00:00.000Z"
  }
}
Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters

Opportunity id.

Body (JSON)
Request URL
PATCHhttps://backend.mysmsgateway.app/api/v1/ext/opportunities/%7Bid%7D/stage
Previous

« Update opportunity

Next

Change status »