@easypost/api
Advanced tools
Changelog
v5.7.1 (2022-10-24)
addCreditCard
function unusable, adds testsupdateBrand
function now properly becomes a Brand
objectShipment.insure
no longer improperly wraps the amount
key in id
. There may be other edge cases among other object/function calls that get corrected due to this changeChangelog
v5.7.0 (2022-09-21)
EndShipper
ID to the shipment buy callChangelog
v5.6.1 (2022-09-08)
Changelog
v5.6.0 (2022-08-25)
Changelog
v5.5.0 (2022-08-02)
validateWebhook
function that returns your webhook or raises an error if there is a webhookSecret
mismatchverify
and verify_strict
params when creating an address (can accept strings or bools outside of an array)Changelog
v5.4.0 (2022-07-18)
Shipment.generateForm()
functionChangelog
v5.3.0 (2022-07-11)
Billing.retrievePaymentMethods()
, Billing.deletePaymentMethod()
, and Billing.fundWallet()
functionsput
to patch
to better match API expectation and documentation. Behavior of these functions should remain the sameChangelog
v5.2.0 (2022-05-19)
EndShipper
Beta class with save()
, retrieve()
, and all()
functionsChangelog
v5.1.0 (2022-05-09)
lowestRate()
function to Orders and PickupsShipment.getLowestSmartrate()
and shipment.lowest_smartrate()
functionslowestRate()
functions when no lowest rate can be foundcreate()
, update_email()
, all()
, and add_credit_card()
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 project