Skip to main content

Opportunity Details

Endpoint

GET /api/v6.1/opportunity

Request Example

curl --location 'https://demo.getflycrm.com/api/v6.1/opportunity?fields=id%2Copportunity_name%2Cprobability%2Copportunity_code%2Copportunity_status%2Copportunity_status_name%2Crecipient%2Crcpt_avatar%2Crcpt_display_name%2Crcpt_role_name%2Crcpt_department_name%2Ccreated_at%2Ctime_registed%2Cresponsible%2Cc_display_name%2Ccreate_user%2Caccount_id%2Caccount_name%2Cphone_office%2Caccount_email%2Ccampaign_id%2Ccampaign_name&opportunity_code=CH2284' \
--header 'X-API-KEY: YOUR_API_KEY' \
--header 'Cookie: v6_getflycrm_session=YOUR_SESSION_TOKEN'

Query Parameters

NameTypeRequiredDescription
fieldsstring✔️List of fields to retrieve (comma-separated, URL encoded)
opportunity_codestring✔️Opportunity code to query

Sample Response

{
"id": 4404,
"opportunity_name": "Demo Opportunity",
"probability": 0,
"opportunity_code": "CH2284",
"opportunity_status": 37,
"opportunity_status_name": "Customer Information",
"recipient": 2,
"rcpt_avatar": "https://example.com/avatar.jpg",
"rcpt_display_name": "Handler",
"rcpt_role_name": "Manager",
"rcpt_department_name": "Sales Department",
"created_at": "2025-01-13 10:46:47",
"time_registed": 0,
"responsible": 2,
"c_display_name": "Creator",
"create_user": 2,
"account_id": 11970,
"account_name": "Demo Customer",
"account_email": "[email protected]",
"campaign_id": 10,
"campaign_name": "Sample Campaign"
}

Key Field Descriptions

FieldTypeDescription
idintOpportunity ID
opportunity_namestringOpportunity name
opportunity_codestringOpportunity code
probabilityintSuccess probability (%)
opportunity_statusintOpportunity status code
opportunity_status_namestringStatus name
recipientintHandler ID
rcpt_avatarstringHandler avatar
rcpt_display_namestringHandler name
rcpt_role_namestringHandler role
rcpt_department_namestringHandler department
created_atdatetimeOpportunity creation time
time_registedintRegistration time (if any)
responsibleintResponsible person ID
c_display_namestringOpportunity creator name
create_userintCreator ID
account_idintRelated customer ID
account_namestringCustomer name
account_emailstringCustomer email
campaign_idintLinked campaign ID
campaign_namestringCampaign name