Skip to main content
This API endpoint allows a merchant to request shipping and handling quotes based on a set of order items and a destination zip code.

Methods


Entity Properties


rate.quote

rate.quote (object $destination, object $items, object $methodInfo) Request shipping and handling quotes based on a set of order items and a destination zip code.

Parameters

object
Destination (see Destination Properties)
object
Order Items. Format:
object
Method Information (see Method Information Properties)

Return Value

An object with rates and handling cost. Each rate lists its estimated packages in packages (see Rate Package Properties).

Example Request

Request

Example Response

Response

Package Examples

The following excerpts show only the package_count and packages properties of a single rate, plus related properties where they matter. Two identical packages are listed separately, so the array length matches package_count:
Identical packages
When the items ship from more than one warehouse, each package has the ID of the warehouse it ships from:
Packages from two warehouses
The packed-weight estimate remains available when package dimensions are unknown:
Unknown dimensions
A rate can still succeed when package dimensions are unknown. In that case ShipStream estimates the rate from item data and returns null for the unknown dimensions. When no item or included packaging has a known weight, the package reports null for both weight fields. Known dimensions remain available:
Unknown weight

rate.services

rate.services (int|null $warehouseId) Get a list of the enabled shipping methods.

Parameters

integer | null
Warehouse. If not specified, the first allowed warehouse will be used.

Return Value

An array of enabled shipping methods.

Example Request

Request

Example Response

Response

Entity Properties

Destination Properties

Method Information Properties

Rate Properties

Rate Package Properties

Each rate has its own packages. Different shipping methods can pack the same items differently, so compare packages per rate. When a virtual shipping method selects the cheapest or fastest method, the packages come from the method selected at each warehouse. Dimensions describe the packing solution selected for the rate and can be estimates rather than measured boxes. Use each package’s dimension_unit and weight_unit fields to interpret its measurements.