Getting a rate estimate for a shipment with multiple packages
callmephilip opened this issue · 2 comments
API documentation for the rate estimate endpoint found here includes the following note:
Note This endpoint does not support shipments that contain multiple packages or filtering using the rate_options property. You can filter by carrier using the carrier_ids property.
However, getRatesWithShipmentDetails
allows passing a list of packages in input parameters
Is this safe to assume that we can indeed pass multiple packages in?
Hey @callmephilip ! Thanks for your question.
ShipEngine has two rate endpoints - /v1/rates and /v1/rates/estimate. The documentation you linked is for the second endpoints, which is more limited. The documentation here is for the full rates endpoint, which is what is supported with this SDK.
So yes, it's safe to assume that you can pass multiple packages in.
@AnneOReilly thank you very much for explaining this clearly