GET api/opportunities/accounts/{accountId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| accountId | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
DataSourceResultOfOpportunityListModel| Name | Description | Type | Additional information |
|---|---|---|---|
| data | Collection of OpportunityListModel |
None. |
|
| total | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"data": [
{
"account_id": "7e2eeb82-222a-4752-b90d-82b9d7a28331",
"account": "sample string 2",
"account_mobile": "sample string 3",
"account_email": "sample string 4",
"lead_status_id": "e6e98c93-c8ed-4bc0-aa13-0bdb695ff320",
"lead_status": "sample string 5",
"lead_status_color": "sample string 6",
"opportunity_date": "2026-08-08T15:01:16.9889999+08:00",
"referred_by_id": "42f4025a-1941-4d2d-947a-6cbe3bde2dd1",
"referred_by": "sample string 8",
"referred_to_id": "99a98b95-010f-423d-b548-8620115336ac",
"referred_to": "sample string 9",
"home_design": "sample string 10",
"development": "sample string 11",
"syndicate": "sample string 12",
"property": "sample string 13",
"campaign_recipient_id": "7e9e6760-17af-4612-af6f-7cd84251bba5",
"campaign": "sample string 14",
"event_id": "d0963e3e-6fb3-4cef-bfdd-051b37017dda",
"event": "sample string 15",
"survey_id": "7c130de8-ccb8-4486-ad22-349ef8123d84",
"survey": "sample string 16",
"opportunity_type_id": "73ef5fc1-bbe4-45b2-95a7-c4b445b063c6",
"opportunity_type": "sample string 18",
"opportunity_status_id": "127ce930-4380-4092-acbb-7e12606ab642",
"opportunity_status": "sample string 20",
"opportunity_status_color": "sample string 21",
"source_id": "3fb26212-9b53-4fa2-9b89-1d757bba1974",
"source": "sample string 22",
"source_origin": "sample string 23",
"country": "sample string 24",
"state": "sample string 25",
"city": "sample string 26",
"currency_abbr": "sample string 27",
"currency_culture": "sample string 28",
"referral_fee": 29.0,
"transaction_amount": 30.0,
"can_notify": true,
"can_update": true,
"can_delete": true,
"mark_as_deleted": true,
"id": "a4270025-300f-4a6c-9a8b-593ee60117bd"
},
{
"account_id": "7e2eeb82-222a-4752-b90d-82b9d7a28331",
"account": "sample string 2",
"account_mobile": "sample string 3",
"account_email": "sample string 4",
"lead_status_id": "e6e98c93-c8ed-4bc0-aa13-0bdb695ff320",
"lead_status": "sample string 5",
"lead_status_color": "sample string 6",
"opportunity_date": "2026-08-08T15:01:16.9889999+08:00",
"referred_by_id": "42f4025a-1941-4d2d-947a-6cbe3bde2dd1",
"referred_by": "sample string 8",
"referred_to_id": "99a98b95-010f-423d-b548-8620115336ac",
"referred_to": "sample string 9",
"home_design": "sample string 10",
"development": "sample string 11",
"syndicate": "sample string 12",
"property": "sample string 13",
"campaign_recipient_id": "7e9e6760-17af-4612-af6f-7cd84251bba5",
"campaign": "sample string 14",
"event_id": "d0963e3e-6fb3-4cef-bfdd-051b37017dda",
"event": "sample string 15",
"survey_id": "7c130de8-ccb8-4486-ad22-349ef8123d84",
"survey": "sample string 16",
"opportunity_type_id": "73ef5fc1-bbe4-45b2-95a7-c4b445b063c6",
"opportunity_type": "sample string 18",
"opportunity_status_id": "127ce930-4380-4092-acbb-7e12606ab642",
"opportunity_status": "sample string 20",
"opportunity_status_color": "sample string 21",
"source_id": "3fb26212-9b53-4fa2-9b89-1d757bba1974",
"source": "sample string 22",
"source_origin": "sample string 23",
"country": "sample string 24",
"state": "sample string 25",
"city": "sample string 26",
"currency_abbr": "sample string 27",
"currency_culture": "sample string 28",
"referral_fee": 29.0,
"transaction_amount": 30.0,
"can_notify": true,
"can_update": true,
"can_delete": true,
"mark_as_deleted": true,
"id": "a4270025-300f-4a6c-9a8b-593ee60117bd"
}
],
"total": 1
}
application/xml, text/xml
Sample:
<DataSourceResultOfOpportunityListModelihvqq9wh xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CompleteEmpireApp.Api.Infrastructure.DataSource">
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/CompleteEmpireApp.Api.Models">
<d2p1:OpportunityListModel>
<Id xmlns="http://schemas.datacontract.org/2004/07/CompleteEmpireApp.Api.Models.Base">a4270025-300f-4a6c-9a8b-593ee60117bd</Id>
<d2p1:Account>sample string 2</d2p1:Account>
<d2p1:AccountEmail>sample string 4</d2p1:AccountEmail>
<d2p1:AccountId>7e2eeb82-222a-4752-b90d-82b9d7a28331</d2p1:AccountId>
<d2p1:AccountMobile>sample string 3</d2p1:AccountMobile>
<d2p1:Campaign>sample string 14</d2p1:Campaign>
<d2p1:CampaignRecipientId>7e9e6760-17af-4612-af6f-7cd84251bba5</d2p1:CampaignRecipientId>
<d2p1:CanNotify>true</d2p1:CanNotify>
<d2p1:CanUndelete>true</d2p1:CanUndelete>
<d2p1:CanUpdate>true</d2p1:CanUpdate>
<d2p1:City>sample string 26</d2p1:City>
<d2p1:Country>sample string 24</d2p1:Country>
<d2p1:CurrencyAbbr>sample string 27</d2p1:CurrencyAbbr>
<d2p1:CurrencyCulture>sample string 28</d2p1:CurrencyCulture>
<d2p1:Development>sample string 11</d2p1:Development>
<d2p1:Event>sample string 15</d2p1:Event>
<d2p1:EventId>d0963e3e-6fb3-4cef-bfdd-051b37017dda</d2p1:EventId>
<d2p1:Fund>sample string 12</d2p1:Fund>
<d2p1:HomeDesign>sample string 10</d2p1:HomeDesign>
<d2p1:LeadStatus>sample string 5</d2p1:LeadStatus>
<d2p1:LeadStatusColor>sample string 6</d2p1:LeadStatusColor>
<d2p1:LeadStatusId>e6e98c93-c8ed-4bc0-aa13-0bdb695ff320</d2p1:LeadStatusId>
<d2p1:MarkAsDeleted>true</d2p1:MarkAsDeleted>
<d2p1:OpportunityDate>2026-08-08T15:01:16.9889999+08:00</d2p1:OpportunityDate>
<d2p1:OpportunityStatus>sample string 20</d2p1:OpportunityStatus>
<d2p1:OpportunityStatusColor>sample string 21</d2p1:OpportunityStatusColor>
<d2p1:OpportunityStatusId>127ce930-4380-4092-acbb-7e12606ab642</d2p1:OpportunityStatusId>
<d2p1:OpportunityType>sample string 18</d2p1:OpportunityType>
<d2p1:OpportunityTypeId>73ef5fc1-bbe4-45b2-95a7-c4b445b063c6</d2p1:OpportunityTypeId>
<d2p1:Property>sample string 13</d2p1:Property>
<d2p1:ReferralFee>29</d2p1:ReferralFee>
<d2p1:ReferredBy>sample string 8</d2p1:ReferredBy>
<d2p1:ReferredById>42f4025a-1941-4d2d-947a-6cbe3bde2dd1</d2p1:ReferredById>
<d2p1:ReferredTo>sample string 9</d2p1:ReferredTo>
<d2p1:ReferredToId>99a98b95-010f-423d-b548-8620115336ac</d2p1:ReferredToId>
<d2p1:Source>sample string 22</d2p1:Source>
<d2p1:SourceId>3fb26212-9b53-4fa2-9b89-1d757bba1974</d2p1:SourceId>
<d2p1:SourceOrigin>sample string 23</d2p1:SourceOrigin>
<d2p1:State>sample string 25</d2p1:State>
<d2p1:Survey>sample string 16</d2p1:Survey>
<d2p1:SurveyId>7c130de8-ccb8-4486-ad22-349ef8123d84</d2p1:SurveyId>
<d2p1:TransactionAmount>30</d2p1:TransactionAmount>
</d2p1:OpportunityListModel>
<d2p1:OpportunityListModel>
<Id xmlns="http://schemas.datacontract.org/2004/07/CompleteEmpireApp.Api.Models.Base">a4270025-300f-4a6c-9a8b-593ee60117bd</Id>
<d2p1:Account>sample string 2</d2p1:Account>
<d2p1:AccountEmail>sample string 4</d2p1:AccountEmail>
<d2p1:AccountId>7e2eeb82-222a-4752-b90d-82b9d7a28331</d2p1:AccountId>
<d2p1:AccountMobile>sample string 3</d2p1:AccountMobile>
<d2p1:Campaign>sample string 14</d2p1:Campaign>
<d2p1:CampaignRecipientId>7e9e6760-17af-4612-af6f-7cd84251bba5</d2p1:CampaignRecipientId>
<d2p1:CanNotify>true</d2p1:CanNotify>
<d2p1:CanUndelete>true</d2p1:CanUndelete>
<d2p1:CanUpdate>true</d2p1:CanUpdate>
<d2p1:City>sample string 26</d2p1:City>
<d2p1:Country>sample string 24</d2p1:Country>
<d2p1:CurrencyAbbr>sample string 27</d2p1:CurrencyAbbr>
<d2p1:CurrencyCulture>sample string 28</d2p1:CurrencyCulture>
<d2p1:Development>sample string 11</d2p1:Development>
<d2p1:Event>sample string 15</d2p1:Event>
<d2p1:EventId>d0963e3e-6fb3-4cef-bfdd-051b37017dda</d2p1:EventId>
<d2p1:Fund>sample string 12</d2p1:Fund>
<d2p1:HomeDesign>sample string 10</d2p1:HomeDesign>
<d2p1:LeadStatus>sample string 5</d2p1:LeadStatus>
<d2p1:LeadStatusColor>sample string 6</d2p1:LeadStatusColor>
<d2p1:LeadStatusId>e6e98c93-c8ed-4bc0-aa13-0bdb695ff320</d2p1:LeadStatusId>
<d2p1:MarkAsDeleted>true</d2p1:MarkAsDeleted>
<d2p1:OpportunityDate>2026-08-08T15:01:16.9889999+08:00</d2p1:OpportunityDate>
<d2p1:OpportunityStatus>sample string 20</d2p1:OpportunityStatus>
<d2p1:OpportunityStatusColor>sample string 21</d2p1:OpportunityStatusColor>
<d2p1:OpportunityStatusId>127ce930-4380-4092-acbb-7e12606ab642</d2p1:OpportunityStatusId>
<d2p1:OpportunityType>sample string 18</d2p1:OpportunityType>
<d2p1:OpportunityTypeId>73ef5fc1-bbe4-45b2-95a7-c4b445b063c6</d2p1:OpportunityTypeId>
<d2p1:Property>sample string 13</d2p1:Property>
<d2p1:ReferralFee>29</d2p1:ReferralFee>
<d2p1:ReferredBy>sample string 8</d2p1:ReferredBy>
<d2p1:ReferredById>42f4025a-1941-4d2d-947a-6cbe3bde2dd1</d2p1:ReferredById>
<d2p1:ReferredTo>sample string 9</d2p1:ReferredTo>
<d2p1:ReferredToId>99a98b95-010f-423d-b548-8620115336ac</d2p1:ReferredToId>
<d2p1:Source>sample string 22</d2p1:Source>
<d2p1:SourceId>3fb26212-9b53-4fa2-9b89-1d757bba1974</d2p1:SourceId>
<d2p1:SourceOrigin>sample string 23</d2p1:SourceOrigin>
<d2p1:State>sample string 25</d2p1:State>
<d2p1:Survey>sample string 16</d2p1:Survey>
<d2p1:SurveyId>7c130de8-ccb8-4486-ad22-349ef8123d84</d2p1:SurveyId>
<d2p1:TransactionAmount>30</d2p1:TransactionAmount>
</d2p1:OpportunityListModel>
</Data>
<Total>1</Total>
</DataSourceResultOfOpportunityListModelihvqq9wh>