POST api/opportunities
Request Information
URI Parameters
None.
Body Parameters
OpportunityCreateModel| Name | Description | Type | Additional information |
|---|---|---|---|
| opportunity_date | date |
Required |
|
| account_id | globally unique identifier |
None. |
|
| account_name | string |
None. |
|
| new_account_fields_hidden | boolean |
None. |
|
| auto_account_id | boolean |
None. |
|
| new_account_id | string |
String length: inclusive between 0 and 75 |
|
| new_account_name | string |
String length: inclusive between 0 and 255 |
|
| new_account_type_id | globally unique identifier |
None. |
|
| new_account_email | string |
String length: inclusive between 0 and 255 |
|
| new_account_mobile | string |
String length: inclusive between 0 and 25 |
|
| new_account_country | string |
String length: inclusive between 0 and 75 |
|
| referred_by_id | globally unique identifier |
None. |
|
| referred_by | string |
None. |
|
| referred_to_id | globally unique identifier |
None. |
|
| opportunity_type_id | globally unique identifier |
Required |
|
| opportunity_status_id | globally unique identifier |
None. |
|
| source_id | globally unique identifier |
Required |
|
| source_origin | string |
String length: inclusive between 0 and 255 |
|
| referral_fee_payable | boolean |
None. |
|
| notify | boolean |
None. |
|
| event_registrant_id | globally unique identifier |
None. |
|
| event_registrant_email | string |
None. |
|
| campaign_recipient_id | globally unique identifier |
None. |
|
| campaign_recipient_to | string |
None. |
|
| created_date | date |
None. |
|
| external_activity | boolean |
None. |
|
| id | globally unique identifier |
None. |
|
| subscription_id | globally unique identifier |
None. |
|
| ts | Collection of byte |
None. |
Request Formats
application/json, text/json
Sample:
{
"opportunity_date": "2026-12-06T15:19:57.1724149+08:00",
"account_id": "563f5e57-8558-46d1-958a-4502cd2a2205",
"account_name": "sample string 2",
"new_account_fields_hidden": true,
"auto_account_id": true,
"new_account_id": "sample string 5",
"new_account_name": "sample string 6",
"new_account_type_id": "4f6cd1b3-9e82-4d43-a41d-8eccbe5af4a7",
"new_account_email": "sample string 7",
"new_account_mobile": "sample string 8",
"new_account_country": "sample string 9",
"referred_by_id": "5c4bfcea-deb9-45d3-943e-33c0bada547f",
"referred_by": "sample string 10",
"referred_to_id": "3f95fd63-1ba6-412b-ab52-a4c76f137004",
"opportunity_type_id": "c234ebd7-493c-4ce3-ac61-d0af13c0172d",
"opportunity_status_id": "9d6fbc96-5987-489b-81d3-abf9c225f9e4",
"source_id": "bbcc32d5-5ae9-49cf-a1cf-7b62f46524c6",
"source_origin": "sample string 11",
"referral_fee_payable": true,
"notify": true,
"event_registrant_id": "0e681d50-c0c7-43b4-a040-bb8febeee6bb",
"event_registrant_email": "sample string 14",
"campaign_recipient_id": "01ed6d47-32cd-4127-be08-5a8e240cee1f",
"campaign_recipient_to": "sample string 15",
"created_date": "2026-12-06T15:19:57.1724149+08:00",
"external_activity": true,
"id": "476ef09d-c82f-49a3-acdc-f3a5b6cd0f2e",
"subscription_id": "6ab4a795-723e-4577-b596-fb934fec18e4",
"ts": "QEA="
}
application/xml, text/xml
Sample:
<OpportunityCreateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CompleteEmpireApp.Api.Models"> <Id xmlns="http://schemas.datacontract.org/2004/07/CompleteEmpireApp.Api.Models.Base">476ef09d-c82f-49a3-acdc-f3a5b6cd0f2e</Id> <SubscriptionId xmlns="http://schemas.datacontract.org/2004/07/CompleteEmpireApp.Api.Models.Base">6ab4a795-723e-4577-b596-fb934fec18e4</SubscriptionId> <Ts xmlns="http://schemas.datacontract.org/2004/07/CompleteEmpireApp.Api.Models.Base">QEA=</Ts> <AccountId>563f5e57-8558-46d1-958a-4502cd2a2205</AccountId> <AccountName>sample string 2</AccountName> <AutoAccountID>true</AutoAccountID> <CampaignRecipientId>01ed6d47-32cd-4127-be08-5a8e240cee1f</CampaignRecipientId> <CampaignRecipientTo>sample string 15</CampaignRecipientTo> <CreatedDate>2026-12-06T15:19:57.1724149+08:00</CreatedDate> <EventRegistrantEmail>sample string 14</EventRegistrantEmail> <EventRegistrantId>0e681d50-c0c7-43b4-a040-bb8febeee6bb</EventRegistrantId> <ExternalActivity>true</ExternalActivity> <NewAccountCountry>sample string 9</NewAccountCountry> <NewAccountEmail>sample string 7</NewAccountEmail> <NewAccountFieldsHidden>true</NewAccountFieldsHidden> <NewAccountID>sample string 5</NewAccountID> <NewAccountMobile>sample string 8</NewAccountMobile> <NewAccountName>sample string 6</NewAccountName> <NewAccountTypeId>4f6cd1b3-9e82-4d43-a41d-8eccbe5af4a7</NewAccountTypeId> <Notify>true</Notify> <OpportunityDate>2026-12-06T15:19:57.1724149+08:00</OpportunityDate> <OpportunityStatusId>9d6fbc96-5987-489b-81d3-abf9c225f9e4</OpportunityStatusId> <OpportunityTypeId>c234ebd7-493c-4ce3-ac61-d0af13c0172d</OpportunityTypeId> <ReferralFeePayable>true</ReferralFeePayable> <ReferredBy>sample string 10</ReferredBy> <ReferredById>5c4bfcea-deb9-45d3-943e-33c0bada547f</ReferredById> <ReferredToId>3f95fd63-1ba6-412b-ab52-a4c76f137004</ReferredToId> <SourceId>bbcc32d5-5ae9-49cf-a1cf-7b62f46524c6</SourceId> <SourceOrigin>sample string 11</SourceOrigin> </OpportunityCreateModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.