dash.shipping
Shipping rate and tracking methods.
Updated
On this page
dash.shipping
getRates(options)
const { rates } = await dash.shipping.getRates({ to_postal: "78701", weight_oz: 5.0 })
getCheapestRate(options) / getFastestRate(options)
const { rate } = await dash.shipping.getCheapestRate({ to_postal: "78701", weight_oz: 5.0 })
const { rate } = await dash.shipping.getFastestRate({ to_postal: "78701", weight_oz: 5.0 })
getRate(options)
const rate = await dash.shipping.getRate({ to_postal: "78701", weight_oz: 5.0, prefer: "cheapest" })
track(trackingNumber, carrierCode?)
const tracking = await dash.shipping.track("1Z999...", "usps")
validateAddress(address)
const result = await dash.shipping.validateAddress({ address_line1: "123 Main", city: "Austin", state: "TX", postal_code: "78701" })
checkFreeShipping(subtotal)
const { qualifies, threshold, remaining } = await dash.shipping.checkFreeShipping("89.99")
See Shipping for full details.