Handle wrapped responses for /all endpoints (v5.0)
masterIn version 5.0, responses from /all endpoints are no longer unwrapped. They now follow the official documentation where records are wrapped within their respective object key. This change enables proper pagination by allowing you to check for the has_more key.
Example response structure:
{
"shipments": [
{
"id": "123"
},
{
"id": "456"
}
],
"has_more": true
}{
"shipments": [
{
"id": "123"
},
{
"id": "456"
}
],
"has_more": true
}