Get insurance rate
deftship_get_insurance_ratesGet insurance rate quotes for shipments by providing carrier, service code, and package details. Returns a price and insurance ID for later purchase.
Instructions
Quote insurance for a shipment. Creates an insurance record and returns its id (insurance_id) and price. Use deftship_book_insurance with the id to purchase. Does not spend money.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| carrier | Yes | Carrier of the shipment to insure. | |
| is_freight | No | Freight shipment. Default false. | |
| to_address | Yes | Receiver address. | |
| from_address | No | Sender address if no id given. | |
| package_list | Yes | Packages (with tracking numbers and item values) to insure. | |
| service_code | Yes | Service code of the shipment (see service names). | |
| shipment_date | Yes | Shipment date, format Y-m-d. | |
| from_address_id | No | Saved sender address id. | |
| is_international | No | International shipment. Default false. |