StatusCode: 409 when creating Cart using partner center api

Roy Visser 1 Reputation point
2020-05-19T08:01:02.853+00:00

Hi all,

For a project we use the partner center api. When creating a cart using

Occasionally I'm getting response errors when creating a Cart for a customer.

We use the following request json body:

{ "ExpirationTimestamp":"2020-05-19T00:00:00Z",
"LineItems":[
{
"BillingCycle":"Monthly",
"CatalogItemId":"DZH318Z0BPS6:0001:DZH318Z0BMGV",
"FriendlyName":"Azure plan db7f8966-0cf8-473e-8d48-42f32b73378c",
"Id":0,
"Participants":[
{
"Key":"TransactionReseller",
"Value":"6026721"
}
],
"ProvisioningContext":{
},
"Quantity":1
}
],
"Attributes":{
"ObjectType":"Cart"
}
}

As response I get:

"StatusCode: 409, ReasonPhrase: 'Conflict', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
{
MS-CorrelationId: 4bf560a1-e6c0-41e8-b54e-51b3f6836604
MS-RequestId: f0db34ea-82eb-4b85-a528-5719f1845f9b
X-Locale: en-US
Request-Context: appId=cid-v1:03ce8ca8-8373-4021-8f25-d5dd45c7b12f
Date: Mon, 18 May 2020 11:11:55 GMT
Content-Length: 67
Content-Type: application/json
}

Any idea, what is causing this conflict?

Microsoft Partner Center API
Microsoft Partner Center API
Microsoft Partner Center: A Microsoft website for partners that provides access to product support, a partner community, and other partner services.API: A software intermediary that allows two applications to interact with each other.
344 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.