replace '400 bad request' with real error
Errors on the api just return 400 bad request, no matter what it is. Previewer gives detailed info on the failure. Can you return that sort of info tot he api, or have a parameter to send in the xml to allow that debug info to be returned.
400 code responses should contain error details in the body of the response, check this page for some example errors.
http://blog.xero.com/developer/api-overview/http-response-codes/
the test harness just displays these errors to you too.
-
owenevans commented
400 code responses should contain error details in the body of the response, check this page for some example errors.
http://blog.xero.com/developer/api-overview/http-response-codes/the test harness just displays these errors to you too.