I am trying to add items to an order after it has been created as the requests I am sending to create the original order are constantly failing due to the payload been too big (if i have an order with over 75 different products I generally get a 504 error and the order is not created, below 60 seems ok)
I am using the put request to update the order as per the documentation but when I attempt to add new lines the only thing that is happening is that the lines previously on the order are removed and only the new items appear.
below is an example of the put request I am sending, when I make this request the first two items are removed from the order and only the new one I send is showing. has anyone had any experience of adding additional lines to an order correctly, or can see anything wrong with the request I am making
{
“order”: {
“line_items_attributes”: [
{
“sellable_id”: 45167688
},
{
“sellable_id”: 45164884
},
{
“sellable_id”: “45165633”,
“quantity”: 1,
“price_per_unit”: “7.5000”,
“tax_rate”: “0”,
“taxless_discount_per_unit”: “0.0000”
}
]
}
}