Skip to main content
POST
Quote a delivery

Authorizations

Authorization
string
header
required

The merchant's UniHop API key, sent as Authorization: Bearer <key>. It identifies the merchant and is what their deliveries are billed against.

Body

application/json

A delivery to create. The same body is accepted by POST /quote.

pickup_address_street
string
required

Street name of the pickup address.

pickup_address_city
string
required

City of the pickup address.

pickup_address_country
string
required

Country of the pickup address.

pickup_name
string
required

Name of the contact person at the pickup location.

dropoff_address_street
string
required

Street name of the dropoff address.

dropoff_address_city
string
required

City of the dropoff address.

dropoff_address_country
string
required

Country of the dropoff address.

dropoff_name
string
required

Name of the contact person at the dropoff location.

email
string<email>
required

Customer email address for notifications.

pickup_address_number
string

Street number of the pickup address.

pickup_address_secondary_number
string

Apartment or suite number for the pickup address.

pickup_address_county
string

County of the pickup address.

pickup_address_state
string

State of the pickup address.

pickup_address_postal_code
string

Postal or ZIP code of the pickup address.

pickup_address_latitude
number

Latitude coordinate of the pickup address.

pickup_address_longitude
number

Longitude coordinate of the pickup address.

pickup_phone_number
string

Phone number of the pickup contact person.

Maximum string length: 15
pickup_instructions
string

Additional instructions for the pickup.

Maximum string length: 512
dropoff_start_time
string<date-time>

Start of the dropoff window as an ISO 8601 UTC datetime with a trailing Z (YYYY-MM-DDTHH:MM:SSZ). Numeric offsets (e.g. +01:00) are not accepted. Required unless package_delivery_mode is NOW.

pickup_start_time
string<date-time>

Start of the pickup window as an ISO 8601 UTC datetime with a trailing Z (YYYY-MM-DDTHH:MM:SSZ). Numeric offsets (e.g. +01:00) are not accepted.

weight
number

Weight of the package in lbs.

Required range: x >= 0
dimensions
object

Dimensions of the package.

dropoff_address_number
string

Street number of the dropoff address.

dropoff_address_secondary_number
string

Apartment or suite number for the dropoff address.

dropoff_address_county
string

County of the dropoff address.

dropoff_address_state
string

State of the dropoff address.

dropoff_address_postal_code
string

Postal or ZIP code of the dropoff address.

dropoff_address_latitude
number

Latitude coordinate of the dropoff address.

dropoff_address_longitude
number

Longitude coordinate of the dropoff address.

dropoff_phone_number
string

Phone number of the dropoff contact person.

Maximum string length: 15
dropoff_instructions
string

Additional instructions for the dropoff.

Maximum string length: 512
dropoff_email
string<email>

Email address of the dropoff contact person.

package_minimum_vehicle_size
enum<string>

Minimum vehicle type required to transport the package.

Available options:
SEDAN,
CAR,
SUV,
PICKUP_TRUCK,
VAN,
TRUCK,
LARGE_VAN,
EXTRA_LARGE_VAN,
PICKUP
package_delivery_mode
enum<string>

Mode of delivery (NOW or SCHEDULED).

Available options:
NOW,
SCHEDULED
package_description
string

Description of the package contents.

Maximum string length: 512
package_requirements
enum<string>[]

Special delivery or pickup requirements.

Available options:
PHOTO_PROOF_OF_DELIVERY,
SIGNATURE_PROOF_OF_DELIVERY,
TWO_PERSON_TEAM
items
object[]

List of items included in the delivery.

items_count
integer

Total count of items.

delivery_date
string<date>

Delivery date (YYYY-MM-DD). Required unless package_delivery_mode is NOW. If a time component is included it is honoured; otherwise dropoff_start_time is used to determine the scheduled moment.

package_value
number<float>

Monetary value of the package.

Required range: x >= 0
tip
number<float>

Optional tip for the delivery.

Required range: x >= 0
currency
string

The intended currency.

Maximum string length: 3
delivery_style
enum<string> | null

The delivery style. Can be Standard or Special Handling. Please contact us to unlock more delivery styles and associated features.

Available options:
Standard,
Special Handling
platform_payload
object

An arbitrary object of your own: order IDs, store IDs, anything you need to match this delivery back to your system. Stored untouched and returned on every read and webhook.

Example:

Response

The quote.

Successful response returned for a delivery quote.

message
string
required
Example:

"Quote created successfully"

data
object
required