Hello Team,
Can you please put some light on the following issue that we have faced at one of our customer setup.
Provisioning 'Dynamics 365 for Financials Business Edition Trial' [Offer GUID:
75816B01-D6E5-46DC-B2CD-0C6CF7F00761] with CREST API got failed.
Error message, that we have received from Microsoft end :
{
"object_type": "Error",
"code": "OMS_6057",
"error_code": "TrialLineItemCannotHaveBillingCycle",
"message": "Trial offer line item should not have billing cycle defined. Line item number:0 has defined the billing cycle"
}
Please go through the below request and response params that we have sent during API call of trail provisioning
Request:
POST: https://api.cp.microsoft.com/{cid-for-reseller}/orders HTTP/1.1
Headrs:
User-Agent: Ensim-ESCM
Accept: application/json, application/*+json
Content-Type: application/json
x-ms-tracking-id: 4eb2d0fe-8b3a-4b04-99d2-3c4cd204bd19
Authorization: bearer <GENERATED AUTH_TOKEN>
x-ms-correlation-id: 558fc326-ada9-4a20-8b92-edb141b58e63
api-version: 2015-03-31
Content-Length: 247
Host: api.cp.microsoft.com
Connection: Keep-Alive
Accept-Encoding: gzip,deflate
Body:
{
"object_type": "SubscriptionRequest",
"line_items": [{
"line_item_number": 0,
"offer_uri": "/429C0787-049E-4036-8E8B-5C6DBDA7157E/offers/75816B01-D6E5-46DC-B2CD-0C6CF7F00761",
"quantity": 1
}
],
"recipient_customer_id": "<RECIPIENT_CUSTOMER_ID>"
}
Response:
Header:
HTTP/1.1 400 Bad Request
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 214
Content-Type: application/json; charset=utf-8
Expires: -1
Server: Microsoft-IIS/8.5
api-version: 2015-03-31
X-AspNet-Version: 4.0.30319
x-ms-correlation-id: 558fc326-ada9-4a20-8b92-edb141b58e63
x-ms-session-id: 6fd898f2-59ba-4d95-a8d0-f42db4269412
X-Server: CO1OS1OMSORDW06
Strict-Transport-Security: max-age=15724800; includeSubDomains
Date: Mon, 12 Jun 2017 04:42:09 GMT
Response Body:
{
"object_type": "Error",
"code": "OMS_6057",
"error_code": "TrialLineItemCannotHaveBillingCycle",
"message": "Trial offer line item should not have billing cycle defined. Line item number:0 has defined the billing cycle"
}
As I know, that 'billing cycle' property is not required for provisiong trial offer using CREST API, so can you tell me why we received the above error.
Waiting for your response.
Regards
Sougata