Get rates
POST
/api/shipping/ratesRequest
shipping_account_nameString · No | Name of the shipping account. |
|---|---|
carrier_typeString · No | Type of shipping carrier, e.g., 'usps'. |
service_typeString · No | Type of shipping service, e.g., 'usps_priority_mail'. |
confirmation_typeString · No | Type of delivery confirmation required, if any. |
insurance_provider_typeString · No | Insurance provider type, if insurance is required. |
dimension_unitString · Account default | Unit of measurement for package dimensions, e.g., 'in' for inches. When omitted, the checked controller uses the account setting; sending the unit explicitly is recommended. |
weight_unitString · Account default | Unit of weight for packages, e.g., 'oz' for ounces. When omitted, the checked controller uses the account setting; sending the unit explicitly is recommended. |
rate_idString · No | Unique identifier for a specific rate quote, if applicable. |
from.companyString · No | Sender's company name, if applicable. |
from.nameString · Yes | Full name of the sender. |
from.phoneString · No | Sender's phone number. |
from.emailString · No | The historical documentation lists this field, but the checked V1 shipping controller does not forward it. Do not rely on it reaching the carrier. |
from.street1String · Yes | Primary street address of the sender. |
from.street2String · No | Secondary street address of the sender. |
from.cityString · Yes | City of the sender's address. |
from.stateString · Yes | State of the sender's address. |
from.zipString · Yes | Postal code of the sender's address. |
from.countryString · Yes | Country code of the sender's address. |
from.residentialBoolean · Yes | Indicates if the sender's address is residential. |
to.companyString · No | Recipient's company name, if applicable. |
to.nameString · Yes | Full name of the recipient. |
to.phoneString · No | Recipient's phone number. |
to.emailString · No | The historical documentation lists this field, but the checked V1 shipping controller does not forward it. Do not rely on it reaching the carrier. |
to.street1String · Yes | Primary street address of the recipient. |
to.street2String · No | Secondary street address of the recipient. |
to.cityString · Yes | City of the recipient's address. |
to.stateString · Yes | State of the recipient's address. |
to.zipString · Yes | Postal code of the recipient's address. |
to.countryString · Yes | Country code of the recipient's address. |
to.residentialBoolean · Yes | Indicates if the recipient's address is residential. |
packages[].package_typeString · No | Type of package. |
packages[].lengthNumber · Yes | Length of the package. |
packages[].widthNumber · Yes | Width of the package. |
packages[].heightNumber · Yes | Height of the package. |
packages[].weightNumber · Yes | Weight of the package. |
packages[].insurance_amountNumber · No | Amount of insurance for the package. |
options.ship_dateDate String · Yes | The date the shipment is to be made. |
options.print_custom1String · No | Custom printing field 1. |
options.print_custom2String · No | Custom printing field 2. |
customs.contents_typeString · Yes | Type of contents, e.g., 'merchandise'. |
customs.contents_explanationString · Yes | Explanation of the contents. |
customs.non_delivery_optionString · Yes | Action to take if delivery is not possible, e.g., 'return'. |
customs.eel_pfcString · No | Electronic Export Information or Proof of Filing Citation. |
customs.certifyBoolean · No | Indicates whether the sender certifies the information. |
customs.signerString · Yes | Name of the person signing the customs declaration. |
customs.items[].descriptionString · Yes | Description of the item. |
customs.items[].quantityNumber · Yes | Quantity of the item. |
customs.items[].valueNumber · Yes | Value of the item. |
customs.items[].currencyString · Yes | Currency of the item's value. |
customs.items[].weightNumber · Yes | Weight of the item. |
customs.items[].weight_unitString · Yes | Unit of weight for the item. |
customs.items[].tariff_numberString · No | Harmonized Tariff Schedule number for the item. |
customs.items[].origin_countryString · Yes | Country of origin for the item. |
{
"shipping_account_name": null,
"dimension_unit": "in",
"weight_unit": "lb",
"from": {
"name": "Sender",
"street1": "100 Example St",
"city": "Los Angeles",
"state": "CA",
"zip": "90001",
"country": "US"
},
"to": {
"name": "Recipient",
"street1": "200 Example Ave",
"city": "San Diego",
"state": "CA",
"zip": "92101",
"country": "US",
"residential": true
},
"packages": [
{
"length": 10,
"width": 8,
"height": 6,
"weight": 2
}
]
}Response
Rates Array | Rates Array |
|---|---|
shipping_account_nameString | Name of the shipping account. |
carrier_typeString | Type of shipping carrier (e.g., 'usps'). |
service_typeString | Type of shipping service (e.g., 'usps_priority_mail'). |
package_typeString | Type of package. |
delivery_daysInteger | Estimated number of days for delivery. |
delivery_dateString | Estimated delivery date (format: 'YYYY-MM-DD HH:MM:SS'). |
currencyString | Currency code (e.g., 'usd'). |
list_rateNumber | Original list rate before discounts. |
rateNumber | Final rate after discounts. |
insuranceNumber | Insurance cost. |
surchargesNumber or Null | Additional surcharges, if any. |
rate_idString or Null | Unique identifier for the rate quote, if available. |
Alerts Array | Alerts Array |
shipping_account_nameString | Name of the shipping account related to the alert. |
messageString | Alert message description. |
V1 responses use the original endpoint-specific JSON structure. Do not wrap them in the V2 code/message/data envelope.
Integration notes
Send the complete origin, destination and packages. Response has rates and alerts, either of which may be null. Rate identifiers are opaque: use the value returned for the same shipment plan. Available carriers/services depend on your existing V1 account.