GET https://api.goshippo.com/parcels?results=1 Response: ``` { "next":"https://api.goshippo.com/parcels?results=1&page=2", "previous":null, "results":{ "object_state":"VALID", "object_created":"2020-03-31T18:39:51.357Z", "object_updated":"2020-03-31T18:39:51.357Z", "object_id":"4f827b0741024ae2a7bcd4ea08155055", "object_owner":"info@ecwid.com", "template":null, "length":"5.0000", "width":"5.0000", "height":"5.0000", "distance_unit":"cm", "weight":"2.0000", "mass_unit":"lb", "value_amount":null, "value_currency":null, "metadata":"", "extra":{ }, "line_items":[ ], "test":true } } ``` The `results` element in the response must be a JSON-array, not an object. If the `results` parameter was set to 2 or more, the response would be a JSON-array, as expected.
GET https://api.goshippo.com/parcels?results=1
Response:
The
resultselement in the response must be a JSON-array, not an object.If the
resultsparameter was set to 2 or more, the response would be a JSON-array, as expected.