We have managed to create an order via the API now, thank you for connecting up CRITTENDEN to the right account.
When you create an order via the API and it is rejected, the server returns a status code of 228 and the status "REJECTED". However it does not return the reasons for rejection.
Even if I then do a GET request to the new order, the rejection errors are not shown in the response.
We would expect to be able to retrieve the rejection errors via the API somehow, so that we could show them directly to our users without requiring them to log in to the CartonCloud portal.
Otherwise we just have to show an error like "Order was rejected and we don't know why."
The error message has been added to the JSON response. This can be found here:
https://api-docs.cartoncloud.com/#create-outbound-order