Skip to main content
POST
Calculate shipping rates

Authorizations

Authorization
string
header
required

API key as a bearer token. Secret keys (sk_) allow writes; publishable keys (pk_) are read-only. live = production, test = sandbox.

Body

application/json
origin
object
required
destination
object
required
weight_kg
number
required
Example:

5

declared_value
number
service_level
enum<string>
Available options:
economy,
standard,
express,
same_day,
overnight
delivery_method
enum<string>
default:last_mile

last_mile = delivered to the recipient's door (may incur a distance charge); pickup = collected at a pickup station (no distance charge).

Available options:
last_mile,
pickup
special_flags
string[]

Response

Available quotes.

quotes
object[]
meta
object