Skip to main content
POST
Get Shipping Rates for Order
V2 Preview — This endpoint is part of the V2 API preview. Breaking changes may occur.

Overview

Fetch real-time shipping rates from connected carriers for a specific set of line items. Provide package dimensions, weight, and origin/destination addresses to receive available rates with pricing and estimated delivery times.

Use Cases

  • Show rate options to vendors before purchasing a label
  • Compare carrier pricing for a shipment
  • Integrate shipping rate selection into custom fulfillment workflows

Request Body

string | number
required
The Shopify order number.
string
required
The vendor’s ID.
string[]
required
Array of line item IDs to ship. Minimum 1 item.
number
Package length. Must be a positive number.
number
Package width. Must be a positive number.
number
Package height. Must be a positive number.
number
Package weight. Must be a positive number.
string
Weight unit (e.g. lb, kg, oz, g).
string
Distance unit for dimensions (e.g. in, cm).
object
Destination address.
string
Street address line 1.
string
Street address line 2.
string
Country code (e.g. US, GB).
string
Postal / ZIP code.
string
City name.
string
Phone number.
string
State or province.
string
Recipient name.
string
Recipient email.
object
Origin address. Same fields as to_address.
string
Street address line 1.
string
Street address line 2.
string
Country code.
string
Postal / ZIP code.
string
City name.
string
Phone number.
string
State or province.
string
Sender name.
string
Sender email.

Response

200

Example

More Examples

International shipment rates