A customer ID (customer-tenant-id). If you don't know the customer's ID, you can look it up in Partner Center by selecting the Customers workspace, then the customer from the customer list, then Account. On the customer's Account page, look for the Microsoft ID in the Customer Account Info section. The Microsoft ID is the same as the customer ID (customer-tenant-id).
The date (dateAgreed) when the customer accepted the Microsoft Customer Agreement.
Information about the user from the customer organization that accepted the Microsoft Customer Agreement. This includes:
First name
Last name
Email address
Phone number (optional)
If the following values change for a customer, Partner Center will allow for another agreement to be created for that customer:
First Name
Last Name
Email address
Phone number
Otherwise partners will receive the following error code, due to a duplicate customer being created
{
"code": 600061,
"message": "A partner confirmed agreement already exists for the customer.",
"description": "A partner confirmed agreement already exists for the customer.",
"errorName": "PartnerConfirmedAgreementAlreadyExists",
"isRetryable": false,
"parameters": {},
"errorMessageExtended": "InternalErrorCode=600061"
}
.NET
To confirm or reconfirm customer acceptance of the Microsoft Customer Agreement:
Retrieve the agreement metadata for the Microsoft Customer Agreement. You must obtain the templateId of the Microsoft Customer Agreement. For more information, see Get agreement metadata for Microsoft Customer Agreement.
C#
// IAggregatePartner partnerOperations;string agreementType = "MicrosoftCustomerAgreement";
var microsoftCustomerAgreementDetails = partnerOperations.AgreementDetails.ByAgreementType(agreementType).Get().Items.Single();
Create a new Agreement object containing details of the confirmation.
Use the IAgreggatePartner.Customers collection and call the ById method with the specified customer-tenant-id.
Use the Agreements property, followed by calling Create or CreateAsync.
To confirm or reconfirm customer acceptance of the Microsoft Customer Agreement:
Retrieve the agreement metadata for the Microsoft Customer Agreement. You must obtain the templateId of the Microsoft Customer Agreement. For more information, see Get agreement metadata for Microsoft Customer Agreement.
Information about the user from the customer organization who accepted the Microsoft Customer Agreement, including: firstName, lastName, email, and phoneNumber (optional)
dateAgreed
string in UTC date time format
The date when the customer accepted the agreement.
templateId
string
Unique identifier of the agreement type accepted by the customer. You can obtain the templateId for Microsoft Customer Agreement by retrieving the agreement metadata for Microsoft Customer Agreement. See Get agreement metadata for Microsoft Customer Agreement for details.
type
string
Agreement type accepted by the customer. Use "MicrosoftCustomerAgreement" if customer accepted the Microsoft Customer Agreement.
Improve business processes for customer service functions, such as automatic case creation and queue management with Microsoft Dynamics 365 Customer Service.