First of all, doc is broken, there is no reference what is SplitOrder. Ok, I took a look how this did in Ordoro CP.
So, making a call the order has been splitted. I can see child orders ids in parent order and can find those child order using api.
ISSUE: I do not see the child orders in Ordoro CP but still see the parent order. On other side, if do the splitting from CP, the parent order become hidden and children are appearing.
Which version of the API are you using? If you are not using the v3 orders API you should not be splitting orders. But if you are using the v3 Orders API, you should not be using the documentation you referenced, hence why your orders are not visible.
So, where I can find v3 docs and what is the correct API url?
P.S. Order was split, I see this in API response, I see children IDs in “main” order and I can load the child by id. But CP does not show them and shows an error when i’m trying pass ID in url.
We have been working on moving the orders tab in our app as well as API to a new version, and the orders API is affected by this currently. The version of the app you are using will determine the API you should use. If you see a button to split an order in the UI, you are on v3.
I’m not sure what a CP is.
If you are creating orders using the old version of the API, but you are on v3, those orders will not be visible in the app. You must use the temporary v3 orders API to see orders in the v3 version of Ordoro.
Also, thank you for the heads up on the original order split documentation you mentioned, this is not used and unreliable, and we will be removing it from the API and documentation.
To clarify some things:
CP is app.ordoro.com (v3)
Orders are creating in WooCommerce (v3.2.6) and synced to Ordoro
API is used for order processing.
Also, I tried to use new API, and my app broke down. [2018-02-22 15:07:05] local.ERROR: Client error: POST https://apiverson.ordoro.com/product/ resulted in a 404 Not Found response:
{“error_message”: "404 Not Found: The requested URL was not found on the server. If you entered the URL manually please (truncated…)
This was not expected. Expected to have legacy API functionality at new API URL too.
Thanks for the clarification. I’ve never seen the abbreviation CP, so I wasn’t sure what it stood for, though I gleaned you meant in the app.
I’m sorry about the broken piece. The base url apiverson.ordoro.com should only be used when dealing with order specific tasks, you’ll have to have both bases in your app if you are using more than order functionality.
So, is apiverson.ordoro.com planned to be merged with api.ordoro.com?
Or maybe we will have something like api .ordoro .com /v3/
I need an understanding of future around this to provide the best solution, that keeps working after API development will be done.