API - API call to create/update Opportunity in the CRM

Create New Opportunity

POST /crmopportunity?id=XX&i=instance

id = Funnel ID

i = instance_name (example: yourcompany)

Full call: https://sprinthub-api-master.sprinthub.app/crmopportunity?id=xx&i=instancearrow-up-right

<Create a New Opportunity>

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

apitoken

XXXXXXXXX

Body

Name
Type
Description

title

string

Opportunity Title

value

number

Opportunity Value (numbers only)

crm_column

number

Column ID

lead_id

number

Lead ID

sequence

number

Sequence ID

status

string

open/gain/lost

expectedCloseDate

date

ISO Format: 2024-03-21T21:27:00.000Z

user

number

Responsible user ID

"fields": {

"Field1": "Value1",

"Field2": "Value2",

"Field3": "Value3"

}

json object

CRM custom fields need to be inside a JSON Object named "fields"

Response


Update an Opportunity

PUT /crmopportunity/XXX?id=XX&i=instance

XXX = Opportunity ID (number)

id = Funnel ID

i = instance_name (example: yourcompany)

Full call: https://sprinthub-api-master.sprinthub.app/crmopportunity/XXX?id=xx&i=instancearrow-up-right

<Update an Opportunity>

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

apitoken

XXXXXXXXX

Body

Name
Type
Description

title

string

Opportunity Title

value

number

Opportunity Value (numbers only)

crm_column

number

Column ID

lead_id

number

Lead ID

sequence

number

Sequence ID

status

string

open/gain/lost

expectedCloseDate

date

ISO Format: 2024-03-21T21:27:00.000Z

user

number

Responsible user ID

"fields": {

"Field1": "Value1",

"Field2": "Value2",

"Field3": "Value3"

}

json object

CRM custom fields need to be inside a JSON Object named "fields"

Response

Examples using Postman

Create Opportunity

Update an existing Opportunity:

Last updated

Was this helpful?