Splitting Orders in V3

We’re attempting to split orders via the API, but are seeing the response 'None is not of type ‘object’ '.

Is the documentation accurate for this call?
https://devapiverson.docs.apiary.io/#reference/order/orderordernumbersplit/post?console=1

It asks that an array be sent with line_id for the items being split, but best we can tell this isn’t part of the order data. Perhaps this should be link?

Hi @Ordoro :smile:

Thanks for the question.

Yes, this is correct documentation, when you get the Order, the order line id will be the last id in the link on a line.

Hope this helps!

Perhaps our syntax is wrong?

POST: https://apiverson.ordoro.com/order/2-78611

Body:

{
“split_orders”: [
{
“lines”: [
{
“line_id”: 48269552,
“quantity”: 1
}
]
},
{
“lines”: [
{
“line_id”: 48269553,
“quantity”: 1
}
]
}
]
};

Ensure that you are sending properly formatted JSON as well as using the application/json Content-Type when sending the request.

If you could send the response header X-API-REQUEST-ID, we could look deeper into the request.

@sophie That was it :slight_smile: Thanks!

1 Like