Get pickup rates
deftship_get_pickup_ratesQuotes a carrier pickup order and returns the pickup id with base, fuel, and final prices. Use it to estimate pickup costs without placing an order.
Instructions
Quote a carrier pickup. Returns the pickup order id plus base_price, fuel_price and final_price. Does not spend money.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Existing pickup order id to update. | |
| pieces | Yes | Pickup pieces. | |
| carrier | Yes | Pickup carrier, e.g. 'ups', 'usps', 'dhl'. | |
| close_time | No | Closing time H:i. Required for UPS. | |
| ready_time | No | Opening time H:i. Required for UPS. | |
| pickup_date | No | Proposed pickup date, format Y-m-d. Not required when carrier is 'dhl'. | |
| from_address | No | Sender address. Required if from_address_id is not given. | |
| from_address_id | No | Saved sender address id. Provide this OR from_address. |