UPS
UPS's own documented Rating API (onlinetools.ups.com) — prices a domestic shipment across UPS's service levels for a ZIP-to-ZIP move, weight and optional…
UPS's own documented Rating API (onlinetools.ups.com) — prices a domestic shipment across UPS's service levels for a ZIP-to-ZIP move, weight and optional dimensions, the same rate engine ups.com's own shipping calculator runs. No browser, no scraping.
Domain: ups.com
Also known as: UPS, United Parcel Service, ups.com
Prefer the capability
bowmark.shipping covers this provider and routes around it when it is having a bad day. Reach for this page when you need ups.com specifically.
Call it directly
bowmark.providers.ups.getRate(args: { fromZip: string; toZip: string; weightOz: number; length?: number; width?: number; height?: number; accountNumber?: string }): Promise<upsRatedShipment[]>Functions
| Function | What it does |
|---|---|
getRate | Prices a domestic shipment across every UPS service level that quotes it, between two 5-digit ZIP Codes, for a weight in ounces and optional length/width/height in inches (all three or… |
Types
interface upsRatedShipment {
serviceCode: string;
serviceName: string;
price: number;
currency: string;
transitDays: number | null;
}Examples
const rates = await bowmark.providers.ups.getRate({ fromZip: "20024", toZip: "10001", weightOz: 16 });
// rates[0] -> { serviceCode: "03", serviceName: "UPS Ground", price: 12.40, currency: "USD", transitDays: 3 }