Example JSON response format:
{
"@odata.context": "https://api.mypcorp.com/$metadata#Opportunity(OpportunityOwner(),PrimaryContact(),Team(),OpportunityType(),OpportunityStage(),FollowUpStaff(),OpportunityOutcomeReason())",
"value": [
{
"OpportunityId": 12345,
"Name": "Community Services Client",
"Source": "ClientCustomer",
"SourceDetails": "Client introduced this opportunity",
"ReferrerEmail": "lskywalker@yahoo.com",
"ReferrerFirstName": "Luke",
"ReferrerLastName": "Skywalker",
"ReferrerOrganisation": "Muller Inc",
"Outcome": "SaleSuccessful",
"OutcomeDate": "2022-08-25",
"AddEMarketingContactList": false,
"UpfrontValueOfSale": 100.0,
"ChanceOfSales": 0.5,
"RecurringAnnualValue": 50.0,
"ExpiryDate": "2022-10-25",
"FollowUpDate": "2022-09-01",
"ExpectedDate": "2022-10-20",
"CreationDate": "2022-08-25T00:00:00+10:00",
"ModifyDate": "2022-08-25T00:00:00+10:00",
"ArchiveDate": null,
"OpportunityOwner": {
"StaffGuid": "B6DFFC66-48A5-4540-A747-9D38630E0371",
"FirstName": "Bruce",
"LastName": "Wayne",
"ArchiveDate": null
},
"PrimaryContact": {
"StaffGuid": "90EB386B-D880-419A-A757-C6127D674C6C",
"FirstName": "Johnny",
"LastName": "Lawrence",
"ArchiveDate": null
},
"Team": {
"TeamId": 164,
"Name": "Executive",
"ArchiveDate": null
},
"Type": {
"TypeId": 42,
"Name": "Plan management",
"ArchiveDate": null
},
"Stage": {
"StageId": 42,
"Name": "Proposal",
"ArchiveDate": null
},
"FollowUpStaff": {
"StaffGuid": "00CF9FC0-711F-4DDD-B18E-0640F63E5DDA",
"FirstName": "Morticia",
"LastName": "Addams",
"ArchiveDate": null
},
"OutcomeReason": [
{
"OutcomeReasonId": 3000,
"Name": "Understood needs",
"ArchiveDate": null
}
]
}
]
}