@easypost/api
Advanced tools
Changelog
v5.0.0 (2022-04-13)
v10
0.10
, 6
, and 8
, the library is now only published under a single bundled easypost
package instead of separate bundled assets per versionretrieveRates()
method because the shipment object already has rates. If you need to get new rates for a shipment, please use regenerateRates() method insteadenable()
and disable()
methods in the apiKey class. Please use this functionality through EasyPost websiteoptions.useCookie
param. Please use options.useProxy
insteadadd_shipment
and remove_shipment
from the Batch object which could lead to confusion as the API documentation only describes adding/removing as an array. If you need to add or remove a single shipment from a batch, use the already existing add_shipments
and remove_shipments
and pass your single shipment into an array./all
endpoints are no longer unwrapped and now properly follow the documentation where records will be wrapped in their respective object key
has_more
key which allows for paginationretrieveMe()
convenience function that retrieves the authenticated user without the need to specify an IDaddress.verifyAddress()
and Address.createAndVerify()
functionsBatch.createAndBuy()
functionRefund
class which has Refund.save()
, Refund.all()
, and Refund.retrieve()
functionsdelivery_date
property typo on Rate objectcustoms_item.value
to be a number
instead of a string
@easypost/build
and instead uses Webpack directly to build the project
node
and may not provide browser compatible code. If you require browser compatible Javascript, we suggest you build from sourceprettier
and formats the entire projectChangelog
v4.0.0 (2021-10-06)
tax_identifiers
regenerateRates
method now makes a post request to re-rate a shipment. The new retrieveRates
will simply retrieve the rates of a shipment without re-ratingnpm audit fix
to bump patch versions of dependenciesChangelog
v3.11.1 (2021-06-11)
Changelog
v3.11.0 (2021-06-10)
SmartRate
functionality to the Shipments
object (available by calling getSmartrates()
on a shipment)declaration
and restriction_comments
propTypes to the customsInfo objectusps_zone
propType from a string to an integer to match what is returned from the APIChangelog
v3.10.0 (2021-01-12)