EasyPost/easypost-node

parcel - predefined_package list?

Closed this issue · 3 comments

is there a list of predefined_package's somewhere? i know this kinda exists here
as a web page
, but does it exist somewhere in a more usable format, like json?

also -- is there anything that maps which predefined packages are available for a given service level? for example -- with USPS -- LargeFlatRateBox is never available with service level LibraryMail. since i'm in the US that's an obvious one to me, but for other countries i have no idea.

what's the recommended approach there? should i brute force it and create ~20 shipments and filter out the errors?

Thanks for writing in! There is not currently an alternative list of predefined packages per carrier/service aside from the previously linked documentation found on our website (Service Levels, Predefined Packages).

Publishing an up-to-date list can be tricky as carriers are frequently changing which services and predefined packages are available based on availability and the rules of shipping at the time.

My best suggestion is to contact our support team who deals with these kinds of rules and availability daily. They can be contacted at support@easypost.com. As for providing a list of JSON, I think that's an excellent idea. I'll take this feature suggestion back to our team and see what we can do. If we are able to provide some kind of list, I will absolutely post an update on this ticket. As for this particular issue, I'm going too close it since it's not directly related to the Node client library. Best of luck!

@cmawhorter I was able to generate a JSON list of both our service levels and predefined packages using a tool I wrote that grabs all available data from the site and generates a JSON file from it. I hope this is helpful and gets you the data you need in the meantime of an official solution.

thanks for putting that together. i'll take a look.

Publishing an up-to-date list can be tricky as carriers are frequently changing which services
and predefined packages are available based on availability and the rules of shipping at the time

yes, definitely. i don't have the resources to track down all this info for all the carriers easypost supports, which is why i was hoping it was exposed somehow.