Invalid response object from API

0
Answered

HI!

We're trying to integrate ShippingEasy API Store, but while sending requests get the following response: "Invalid response object from API: {"status":"500","error":"Internal Server Error"} (HTTP response code was 500)".

How could we solve this problem?

Thanks in advance!



Official Comment

Hi Julia,

Thanks for posting in our forums!

I contacted our Product Manager about this. He said the most common cause of an error 500 response when you attempt to use our PHP client with our API to add an order is incorrect formatting of the JSON for the line items.

The key is to understand that the line items are an array ​_within_​ an array, as shown in this example in our docs:

https://gist.github.com/twmills/8711096

Warm regards,

Taylor Painter

Comment actions Permalink
0

Thanks a lot! 

Comment actions Permalink

Add a Comment

Please sign in to leave a comment.