goshippo / shippo-javascript-sdk

MIT License
7 stars 1 forks source link

batches.get lacks support for paging #81

Open rutkowskib opened 1 month ago

rutkowskib commented 1 month ago

Documentation for batches.get() states that Batch shipments are displayed 100 at a time. You can iterate through each page using the ?page= query parameter. You can also filter based on batch shipment status, for example, by passing a query param like ?object_results=creation_failed..

Unfortunately there is no way to do this, as only parameters that you can pass are batchId and options(they dont allow for passing page either). In Postman I succeeded to fetch more pages, so this is supported in REST API.

jfriedr commented 1 month ago

@rutkowskib thanks for bringing this up. We are in the process of getting this addressed and will update this ticket when the SDK is updated with the fix.