Ordoro
July 17, 2019, 9:54pm
1
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?
sophie
July 17, 2019, 10:00pm
2
Hi @Ordoro
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!
Ordoro
July 17, 2019, 10:02pm
3
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
}
]
}
]
};
sophie
July 17, 2019, 10:14pm
4
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.
Ordoro
July 17, 2019, 10:16pm
5
@sophie That was it Thanks!
1 Like