Get parcel rates
deftship_get_parcel_ratesQuote parcel shipping rates from multiple carriers for a given origin, destination, and package list. Returns rates with price, ETA, and carrier details without spending money.
Instructions
Quote parcel shipping rates from all allowed carriers for a given from/to address and package list. Returns a list of rates, each with an id (rate_id) used to ship, carrier, service, final_price, eta, and has_enough_credits. Does not spend money. Optionally pass carrier to restrict to one carrier and speed up the response.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| carrier | No | Restrict quoting to a single carrier, e.g. 'ups'. Faster than quoting all. | |
| to_address | Yes | Receiver address. | |
| length_unit | No | Length unit. Defaults to your account preference. | |
| weight_unit | No | Weight unit. Defaults to your account preference. | |
| from_address | No | Sender address. Required if from_address_id is not given. | |
| package_list | Yes | Packages in this shipment. | |
| extra_services | No | Optional extra carrier services. All default to false. | |
| customs_details | No | Customs details container for international shipments | |
| from_address_id | No | Saved sender address id. Provide this OR from_address. | |
| return_address_id | No | Saved return address id. |