Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Invalid /parcels response if results=1 parameter passed #58

Description

@basiliscus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions