# Order endpoint - Associations for Line Items - doesn't work!?

**URL:** <https://forum.shopware.com/t/order-endpoint-associations-for-line-items-doesnt-work/95015>\
**Category:** Shopware 6 (English)\
**Created:** [28. Juni 2022 um 16:10 UTC](https://forum.shopware.com/t/order-endpoint-associations-for-line-items-doesnt-work/95015 "2022-06-28T16:10:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dominic.coutts](https://avatars.discourse-cdn.com/v4/letter/d/c67d28/32.png) [@dominic.coutts](https://forum.shopware.com/u/dominic.coutts)\
**Post date:** [28. Juni 2022 um 16:10 UTC](https://forum.shopware.com/t/order-endpoint-associations-for-line-items-doesnt-work/95015/1 "2022-06-28T16:10:00Z")

</div>

I have tried everything to get the line items for an order using the associations request from the Admin API. Not sure if I’m going wrong or it doesn’t work.

{  
„id“: „25d2bf073f08442daa036e9c06e29792“,  
„associations“: {  
„lineItems“: {},  
„addresses“: {},  
„transactions“: {}  
},  
„includes“: {  
„order\_line\_item“: [„id“, „label“, „quantity“]  
}  
}

---

<div class="post-metadata">

**Author:** ![sammyadam1](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@sammyadam1](https://forum.shopware.com/u/sammyadam1)\
**Post date:** [29. Juni 2022 um 07:34 UTC](https://forum.shopware.com/t/order-endpoint-associations-for-line-items-doesnt-work/95015/2 "2022-06-29T07:34:13Z")

</div>

Also having trouble with this[,](https://gbapps.net/gbwhatsapp-apk/) did we get a solution in the end?

---

<div class="post-metadata">

**Author:** ![dominic.coutts](https://avatars.discourse-cdn.com/v4/letter/d/c67d28/32.png) [@dominic.coutts](https://forum.shopware.com/u/dominic.coutts)\
**Post date:** [29. Juni 2022 um 12:18 UTC](https://forum.shopware.com/t/order-endpoint-associations-for-line-items-doesnt-work/95015/3 "2022-06-29T12:18:42Z")

</div>

Not yet - literally spent a whole day on this - the API seemingly ignores the json request body - I get the same response and payload from the api/order endpoint irrespective of what I put in the request.

---

<div class="post-metadata">

**Author:** ![dominic.coutts](https://avatars.discourse-cdn.com/v4/letter/d/c67d28/32.png) [@dominic.coutts](https://forum.shopware.com/u/dominic.coutts)\
**Post date:** [4. Juli 2022 um 13:33 UTC](https://forum.shopware.com/t/order-endpoint-associations-for-line-items-doesnt-work/95015/4 "2022-07-04T13:33:02Z")

</div>

Eventually managed to get this to work - using a GET request on the Admin API you need to add any filter/association/include requests etc as an HTTP Query String directly to the URL.

I had been adding it as a JSON request. If you’re using Integromat HTTP modules - it doesn’t even seem to recognise the Query String Parameters - so just add straight to the URL.

So for example for this:

{  
associations: {  
lineItems: {  
limit: 50  
}  
}

add this to the end of the URL:

?associations[lineItems][limit]=50

Even if you don’t want to ‚limit‘ or ‚filter‘ or ‚include‘ - you will not get the payload for associations unless you add some parameter - ie this on its own won’t work: ?associations[lineItems]
