The Solution play of the Customer need in the opportunity. Required for Services co-sell referrals only
Request example
Important
This sample request describes how to create a Private referral with minimal information required. Notice that the key parameter to make this referral a private deal is consentToShareReferralWithMicrosoftSellers.
POST https://api.partner.microsoft.com/v1.0/engagements/referrals HTTP/1.1
Authorization: Bearer <token>
Host: api.partner.microsoft.com
Content-Type: application/json
{
"name": "Contoso Test Deal - [Private]",
"qualification": "SalesQualified",
"type": "Independent",
"customerProfile": {
"name": "Contoso Customer Inc",
"address": {
"addressLine1": "One Microsoft Way",
"addressLine2": "34",
"city": "Redmond",
"state": "WA",
"postalCode": "98052",
"country": "US"
},
"size": "10to50employees",
"team": [
{
"firstName": "Sue",
"lastName": "Smith",
"phoneNumber": "1234567890",
"email": "sue.smith@contosocustomer.com"
}
]
},
"consent": {
"ConsentToToShareInfoWithOthers": true,
"ConsentToContact": true,
"ConsentToMicrosoftToContactSpecificPartners": true,
"consentToShareReferralWithMicrosoftSellers": false
},
"details": {
"notes": "Customer is looking to leverage Dynamics 365 to manage their supply chain. There's also a need to leverage a set of custom apps to enable their business processes.",
"dealValue": 50000,
"currency": "USD",
"closingDateTime": "2024-11-14T00:00:00Z",
"requirements": {
"solutions": [
{
"type": "Name",
"id": "SOL-15974-MQF",
"name": "Contoso-Ale_Test",
"publisherName": "Contoso_Test",
"solutionType": "3P"
}
],
"additionalRequirements": {
"iot": {},
"attributes": [
{
"id": "HaveNotDecided",
"type": "CustomerMarketplaceIntent"
}
]
}
}
},
"team": [
{
"firstName": "John",
"lastName": "Doe",
"phoneNumber": "1231231234",
"email": "john.doe@contoso.com"
}
],
"target": [],
"mpnId": "<ENTER PARTNER_ID>"
}
REST Response
If successful, this method returns the populated Referral resource in the response body.
Response success and error codes
Each response comes with an HTTP status code that indicates success or failure and more debugging information. Use a network trace tool to read this code, error type, and other parameters. For the full list, see Error Codes.
The following flowchart illustrates these two steps in creating a shared referral.
Step 1: Create a Partner-led deal visible to Microsoft sellers
First, create a Partner-led deal visible to Microsoft sellers using the following request payload.
Important
Note that to make a referral Partner-led, consentToShareReferralWithMicrosoftSellers is supplied as true. An active Private referral can be converted to Partner-led just by updating the referral for this field.
POST https://api.partner.microsoft.com/v1.0/engagements/referrals HTTP/1.1
Authorization: Bearer <token>
Host: api.partner.microsoft.com
Content-Type: application/json
{
"name": "Contoso Test Deal - [PartnerLed]",
"qualification": "SalesQualified",
"type": "Shared",
"customerProfile": {
"name": "Contoso Customer Inc",
"address": {
"addressLine1": "One Microsoft Way",
"addressLine2": "34",
"city": "Redmond",
"state": "WA",
"postalCode": "98052",
"country": "US"
},
"size": "10to50employees",
"team": [
{
"firstName": "Sue",
"lastName": "Smith",
"phoneNumber": "1234567890",
"email": "sue.smith@contosocustomer.com"
}
]
},
"consent": {
"ConsentToToShareInfoWithOthers": true,
"ConsentToContact": true,
"ConsentToMicrosoftToContactSpecificPartners": true,
"consentToShareReferralWithMicrosoftSellers": true
},
"details": {
"notes": "Customer is looking to leverage Dynamics 365 to manage their supply chain. There's also a need to leverage a set of custom apps to enable their business processes.",
"dealValue": 50000,
"currency": "USD",
"closingDateTime": "2024-11-14T00:00:00Z",
"requirements": {
"solutions": [
{
"type": "Name",
"id": "SOL-15974-MQF",
"name": "Contoso-Ale_Test",
"publisherName": "Contoso_Test",
"solutionType": "3P"
}
],
"additionalRequirements": {
"iot": {},
"attributes": [
{
"id": "HaveNotDecided",
"type": "CustomerMarketplaceIntent"
}
]
}
}
},
"team": [
{
"firstName": "John",
"lastName": "Doe",
"phoneNumber": "1231231234",
"email": "john.doe@contoso.com"
}
],
"target": [],
"mpnId": "<ENTER PARTNER_ID>"
}
ReferralTarget represents additional information a partner can provide when inviting other organizations into the engagement. To specify 'target' in a referral for type SolutionProfile, here's a sample value for reference:
The field type provided as Independent or Shared in the request input is just an indicative value and it does not impact the deal type. The actual value in assigned within API based on other parameters like consent and inviteContext.
Step 2: Create a Microsoft referral using partner referral details
Then, create the Microsoft referral via another API call and link it to the Partner referral using the Engagement ID field returned from Step 1.
To create a Services Co-sell opportunity, PartnerRole, SolutionArea, and SolutionPlay must be provided in details > requirements > additionalRequirements.
Solution details are optional in Services Co-sell opportunities.
Improve business processes for customer service functions, such as automatic case creation and queue management with Microsoft Dynamics 365 Customer Service.