Hi Ghofrane,
I'm doing the same testings than you this days with the same contoso database.
I've receive the same shift validation error, and I suppose there are no shift open in this store.
For the moment I have resolve this using a online store instead physical store, because I have suppose that a shift have no sense in a online-store.
You have to specify OUN in the headers with the identification of a online-store:
In the Json body I have put the following:
{
"Id": "",
"CartTypeValue": 2,
"CartLines": [
{
"ItemId": "0003",
"ProductId": 22565421965,
"Quantity": 1
}
]
}
doing this I've get a response with the new cart created. But I have seen that cart lines are empty in the response:
I have try to create lines to this cart with the function API "AddCartLines" but I have no lucky.
I allways receipt a response with "malformed request" error:
If you have resolve the creation of the cart adding some lines, can you explain me how you achieve this, please?