Dear Ladies and Gentlemen,
I want to integrate shopware in my application and i have a problem with the api.
I used dockware.io solution to get started with shopware and create a demo store. I was able to create customers and products and place orders.
But while I request the order through the API, I am not able to get lineItems of the order, it is always null. I have the same problem with the deliveries attribute. Here is a screenshot of the response to my request.
Do you have any idea why I am not receiving the items in the reply? Is there any other request I can make to receive them? I hope you can give me a suitable answer so that I can find a solution to this problem.
Thank you in advance for your reply.
CodePudding user response:
You need to add the lineItems
association in the request body of your API request. Same for the deliveries
association and so on.
{
"associations": {
"lineItems": [],
"deliveries": []
}
}