{
"message": "The dropoff name field is required.",
"errors": {}
}
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.
Show child attributes
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. GIFT_DELIVERY marks the delivery as a gift: the dropoff contact is not texted before it arrives, only once it is delivered, and the driver can still call them. With it, you can also send gift_sender.
Available options:
PHOTO_PROOF_OF_DELIVERY,
SIGNATURE_PROOF_OF_DELIVERY,
TWO_PERSON_TEAM,
GIFT_DELIVERY
items
object[]
List of items included in the delivery.
Show child attributes
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.
Who sent the gift. Optional, and only accepted when package_requirements includes GIFT_DELIVERY. Needs a phone or an email. Otherwise the request is refused with a 422 on gift_sender: "A gift sender needs the GIFT_DELIVERY package requirement." or "Add a phone number or email for the gift sender."
Show child attributes
Response
The quote.
Successful response returned for a delivery quote.
message
string
required
Example:
"Quote created successfully"
data
object
required
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"UniHop API Documentation","colors":{"primary":"#F2C068","light":"#FFFFFF","dark":"#0F4554"},"logo":{"light":"https://mintcdn.com/unihop-d6d376c6/m78PJFcj7tV4sl6I/logo/light_bunny.png?fit=max\u0026auto=format\u0026n=m78PJFcj7tV4sl6I\u0026q=85\u0026s=6c142f55c62ecf7831207a9376b35161","dark":"https://mintcdn.com/unihop-d6d376c6/THehKPOptG2FHJeu/logo/dark_bunny.png?fit=max\u0026auto=format\u0026n=THehKPOptG2FHJeu\u0026q=85\u0026s=56bea82dcf4227832d5262e7e93c52ba"},"favicon":"https://mintcdn.com/unihop-d6d376c6/PHQKdJzLJjjmweDM/favicon.ico?fit=max\u0026auto=format\u0026n=PHQKdJzLJjjmweDM\u0026q=85\u0026s=791f9db8ae8153f888110bc6e2caae1e","navbar":{},"footer":{},"styling":{"latex":false},"navigation":{"global":{},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"unihop-d6d376c6","hasAudioNarration":false,"actualSubdomain":"unihop-d6d376c6","customDomains":["docs.unihop.app"],"gitSource":{"type":"github","owner":"unihopllc","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6b0493fb59886921133ea4af","clientVersion":"0.0.4277","searchFilterCounts":[{"language":"default","tag":"Endpoints","count":11},{"language":"default","tag":"Direct API","count":9},{"language":"default","tag":"Platform API","count":8},{"language":"default","tag":"Documentation","count":6},{"language":"default","tag":"Overview","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"platforms/api-reference/endpoint/quote","slug":"/platforms/api-reference/endpoint/quote","pageMetadata":{"title":"Quote a Delivery","description":"Price and distance, without creating anything","openapi":"platforms/api-reference/openapi.json POST /quote","href":"/platforms/api-reference/endpoint/quote"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Price and distance, without creating anything\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Quote a Delivery","description":"Price and distance, without creating anything","openapi":"platforms/api-reference/openapi.json POST /quote","href":"/platforms/api-reference/endpoint/quote"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Quote a delivery","description":"Price and distance, without creating anything","requestBody":"305ef88c-8c19-4a1c-90c4-03ffdbe48ac6","responses":{"200":"eca67628-9a5f-4527-b344-746c3e235c1d","401":"92a5c10c-3abf-40fc-b8bf-929f28e77280","422":"461e1ada-8aed-44fa-a1a8-9a532e9e4f8b"},"method":"post","type":"path","servers":["78875f8e-a38d-4871-8608-500ce75dadd8"],"security":["e188df5e-ba9b-45e7-b08c-a48359c2e4b5"],"path":"/quote","baseUrlOptions":["https://backend.unihop.app/api/v1/{platform}"],"title":"Quote a delivery","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pickup_address_street":{"type":"string","description":"Street name of the pickup address.","isRequired":true,"uniqueKey":"pickup_address_street","typeLabel":"string"},"pickup_address_city":{"type":"string","description":"City of the pickup address.","isRequired":true,"uniqueKey":"pickup_address_city","typeLabel":"string"},"pickup_address_country":{"type":"string","description":"Country of the pickup address.","isRequired":true,"uniqueKey":"pickup_address_country","typeLabel":"string"},"pickup_name":{"type":"string","description":"Name of the contact person at the pickup location.","isRequired":true,"uniqueKey":"pickup_name","typeLabel":"string"},"dropoff_address_street":{"type":"string","description":"Street name of the dropoff address.","isRequired":true,"uniqueKey":"dropoff_address_street","typeLabel":"string"},"dropoff_address_city":{"type":"string","description":"City of the dropoff address.","isRequired":true,"uniqueKey":"dropoff_address_city","typeLabel":"string"},"dropoff_address_country":{"type":"string","description":"Country of the dropoff address.","isRequired":true,"uniqueKey":"dropoff_address_country","typeLabel":"string"},"dropoff_name":{"type":"string","description":"Name of the contact person at the dropoff location.","isRequired":true,"uniqueKey":"dropoff_name","typeLabel":"string"},"email":{"type":"string","format":"email","description":"Customer email address for notifications.","isRequired":true,"uniqueKey":"email","typeLabel":"string\u003cemail>"},"pickup_address_number":{"type":"string","description":"Street number of the pickup address.","uniqueKey":"pickup_address_number","typeLabel":"string"},"pickup_address_secondary_number":{"type":"string","description":"Apartment or suite number for the pickup address.","uniqueKey":"pickup_address_secondary_number","typeLabel":"string"},"pickup_address_county":{"type":"string","description":"County of the pickup address.","uniqueKey":"pickup_address_county","typeLabel":"string"},"pickup_address_state":{"type":"string","description":"State of the pickup address.","uniqueKey":"pickup_address_state","typeLabel":"string"},"pickup_address_postal_code":{"type":"string","description":"Postal or ZIP code of the pickup address.","uniqueKey":"pickup_address_postal_code","typeLabel":"string"},"pickup_address_latitude":{"type":"number","description":"Latitude coordinate of the pickup address.","uniqueKey":"pickup_address_latitude","typeLabel":"number"},"pickup_address_longitude":{"type":"number","description":"Longitude coordinate of the pickup address.","uniqueKey":"pickup_address_longitude","typeLabel":"number"},"pickup_phone_number":{"type":"string","maxLength":15,"description":"Phone number of the pickup contact person.","uniqueKey":"pickup_phone_number","typeLabel":"string"},"pickup_instructions":{"type":"string","maxLength":512,"description":"Additional instructions for the pickup.","uniqueKey":"pickup_instructions","typeLabel":"string"},"dropoff_start_time":{"type":"string","format":"date-time","description":"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`.","uniqueKey":"dropoff_start_time","typeLabel":"string\u003cdate-time>"},"pickup_start_time":{"type":"string","format":"date-time","description":"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.","uniqueKey":"pickup_start_time","typeLabel":"string\u003cdate-time>"},"weight":{"type":"number","minimum":0,"description":"Weight of the package in lbs.","uniqueKey":"weight","typeLabel":"number"},"dimensions":{"type":"object","properties":{"length":{"type":"number","minimum":0,"description":"Length of the package in inches.","isRequired":true,"uniqueKey":"dimensions.length","typeLabel":"number"},"width":{"type":"number","minimum":0,"description":"Width of the package in inches.","isRequired":true,"uniqueKey":"dimensions.width","typeLabel":"number"},"height":{"type":"number","minimum":0,"description":"Height of the package in inches.","isRequired":true,"uniqueKey":"dimensions.height","typeLabel":"number"}},"required":["length","width","height"],"description":"Dimensions of the package.","uniqueKey":"dimensions","typeLabel":"object"},"dropoff_address_number":{"type":"string","description":"Street number of the dropoff address.","uniqueKey":"dropoff_address_number","typeLabel":"string"},"dropoff_address_secondary_number":{"type":"string","description":"Apartment or suite number for the dropoff address.","uniqueKey":"dropoff_address_secondary_number","typeLabel":"string"},"dropoff_address_county":{"type":"string","description":"County of the dropoff address.","uniqueKey":"dropoff_address_county","typeLabel":"string"},"dropoff_address_state":{"type":"string","description":"State of the dropoff address.","uniqueKey":"dropoff_address_state","typeLabel":"string"},"dropoff_address_postal_code":{"type":"string","description":"Postal or ZIP code of the dropoff address.","uniqueKey":"dropoff_address_postal_code","typeLabel":"string"},"dropoff_address_latitude":{"type":"number","description":"Latitude coordinate of the dropoff address.","uniqueKey":"dropoff_address_latitude","typeLabel":"number"},"dropoff_address_longitude":{"type":"number","description":"Longitude coordinate of the dropoff address.","uniqueKey":"dropoff_address_longitude","typeLabel":"number"},"dropoff_phone_number":{"type":"string","maxLength":15,"description":"Phone number of the dropoff contact person.","uniqueKey":"dropoff_phone_number","typeLabel":"string"},"dropoff_instructions":{"type":"string","maxLength":512,"description":"Additional instructions for the dropoff.","uniqueKey":"dropoff_instructions","typeLabel":"string"},"dropoff_email":{"type":"string","format":"email","description":"Email address of the dropoff contact person.","uniqueKey":"dropoff_email","typeLabel":"string\u003cemail>"},"package_minimum_vehicle_size":{"type":"string","enum":["SEDAN","CAR","SUV","PICKUP_TRUCK","VAN","TRUCK","LARGE_VAN","EXTRA_LARGE_VAN","PICKUP"],"description":"Minimum vehicle type required to transport the package.","uniqueKey":"package_minimum_vehicle_size","typeLabel":"enum\u003cstring>"},"package_delivery_mode":{"type":"string","enum":["NOW","SCHEDULED"],"description":"Mode of delivery (NOW or SCHEDULED).","uniqueKey":"package_delivery_mode","typeLabel":"enum\u003cstring>"},"package_description":{"type":"string","maxLength":512,"description":"Description of the package contents.","uniqueKey":"package_description","typeLabel":"string"},"package_requirements":{"type":"array","items":{"type":"string","enum":["PHOTO_PROOF_OF_DELIVERY","SIGNATURE_PROOF_OF_DELIVERY","TWO_PERSON_TEAM","GIFT_DELIVERY"],"uniqueKey":"package_requirements.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Special delivery or pickup requirements. `GIFT_DELIVERY` marks the delivery as a gift: the dropoff contact is not texted before it arrives, only once it is delivered, and the driver can still call them. With it, you can also send `gift_sender`.","uniqueKey":"package_requirements","typeLabel":"enum\u003cstring>[]"},"items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].name","typeLabel":"string"},"quantity":{"type":"integer","isRequired":true,"uniqueKey":"\\items.items.[INDEX].quantity","typeLabel":"integer"},"description":{"type":"string","uniqueKey":"\\items.items.[INDEX].description","typeLabel":"string"},"external_id":{"type":"string","uniqueKey":"\\items.items.[INDEX].external_id","typeLabel":"string"},"external_instance_id":{"type":"string","uniqueKey":"\\items.items.[INDEX].external_instance_id","typeLabel":"string"},"price":{"type":"number","format":"float","uniqueKey":"\\items.items.[INDEX].price","typeLabel":"number\u003cfloat>"},"barcode":{"type":"string","uniqueKey":"\\items.items.[INDEX].barcode","typeLabel":"string"}},"required":["name","quantity"],"uniqueKey":"\\items.items.[INDEX]","typeLabel":"object"},"description":"List of items included in the delivery.","uniqueKey":"\\items","typeLabel":"object[]"},"items_count":{"type":"integer","description":"Total count of items.","uniqueKey":"items_count","typeLabel":"integer"},"delivery_date":{"type":"string","format":"date","description":"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.","uniqueKey":"delivery_date","typeLabel":"string\u003cdate>"},"package_value":{"type":"number","format":"float","minimum":0,"description":"Monetary value of the package.","uniqueKey":"package_value","typeLabel":"number\u003cfloat>"},"tip":{"type":"number","format":"float","minimum":0,"description":"Optional tip for the delivery.","uniqueKey":"tip","typeLabel":"number\u003cfloat>"},"currency":{"type":"string","maxLength":3,"description":"The intended currency.","uniqueKey":"currency","typeLabel":"string"},"delivery_style":{"oneOf":[{"type":"string","enum":["Standard","Special Handling"],"description":"The delivery style. Can be Standard or Special Handling. Please contact us to unlock more delivery styles and associated features.","uniqueKey":"delivery_style.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["Standard","Special Handling"],"description":"The delivery style. Can be Standard or Special Handling. Please contact us to unlock more delivery styles and associated features.","uniqueKey":"delivery_style.oneOf.1","typeLabel":"null"}],"uniqueKey":"delivery_style","typeLabel":"enum\u003cstring> | null"},"platform_payload":{"type":"object","description":"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":{"store_id":"corner-bakery-cambridge","order_id":"10482"},"uniqueKey":"platform_payload","typeLabel":"object"},"gift_sender":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","description":"The sender's name.","uniqueKey":"gift_sender.oneOf.0.name","typeLabel":"string"},"phone":{"type":"string","description":"The sender's phone number: a US or Canadian number in any common format, or an international number starting with `+`. Stored in E.164 (e.g. `+16175550188`). A number we cannot read is refused with a 422 on `gift_sender.phone`: \"The gift sender.phone must be a valid phone number.\"","uniqueKey":"gift_sender.oneOf.0.phone","typeLabel":"string"},"email":{"type":"string","format":"email","description":"The sender's email address.","uniqueKey":"gift_sender.oneOf.0.email","typeLabel":"string\u003cemail>"}},"description":"Who sent the gift. Optional, and only accepted when `package_requirements` includes `GIFT_DELIVERY`. Needs a `phone` or an `email`. Otherwise the request is refused with a 422 on `gift_sender`: \"A gift sender needs the GIFT_DELIVERY package requirement.\" or \"Add a phone number or email for the gift sender.\"","uniqueKey":"gift_sender.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"name":{"type":"string","description":"The sender's name."},"phone":{"type":"string","description":"The sender's phone number: a US or Canadian number in any common format, or an international number starting with `+`. Stored in E.164 (e.g. `+16175550188`). A number we cannot read is refused with a 422 on `gift_sender.phone`: \"The gift sender.phone must be a valid phone number.\""},"email":{"type":"string","format":"email","description":"The sender's email address."}},"description":"Who sent the gift. Optional, and only accepted when `package_requirements` includes `GIFT_DELIVERY`. Needs a `phone` or an `email`. Otherwise the request is refused with a 422 on `gift_sender`: \"A gift sender needs the GIFT_DELIVERY package requirement.\" or \"Add a phone number or email for the gift sender.\"","uniqueKey":"gift_sender.oneOf.1","typeLabel":"null"}],"uniqueKey":"gift_sender","typeLabel":"object | null"}},"required":["pickup_address_street","pickup_address_city","pickup_address_country","pickup_name","dropoff_address_street","dropoff_address_city","dropoff_address_country","dropoff_name","email"],"description":"A delivery to create. The same body is accepted by POST /quote.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"pickup_address_street":"\u003cstring>","pickup_address_city":"\u003cstring>","pickup_address_country":"\u003cstring>","pickup_name":"\u003cstring>","dropoff_address_street":"\u003cstring>","dropoff_address_city":"\u003cstring>","dropoff_address_country":"\u003cstring>","dropoff_name":"\u003cstring>","email":"jsmith@example.com","pickup_address_number":"\u003cstring>","pickup_address_secondary_number":"\u003cstring>","pickup_address_county":"\u003cstring>","pickup_address_state":"\u003cstring>","pickup_address_postal_code":"\u003cstring>","pickup_address_latitude":123,"pickup_address_longitude":123,"pickup_phone_number":"\u003cstring>","pickup_instructions":"\u003cstring>","dropoff_start_time":"2023-11-07T05:31:56Z","pickup_start_time":"2023-11-07T05:31:56Z","weight":1,"dropoff_address_number":"\u003cstring>","dropoff_address_secondary_number":"\u003cstring>","dropoff_address_county":"\u003cstring>","dropoff_address_state":"\u003cstring>","dropoff_address_postal_code":"\u003cstring>","dropoff_address_latitude":123,"dropoff_address_longitude":123,"dropoff_phone_number":"\u003cstring>","dropoff_instructions":"\u003cstring>","dropoff_email":"jsmith@example.com","package_description":"\u003cstring>","package_requirements":[],"items":[{"name":"\u003cstring>","quantity":123,"description":"\u003cstring>","external_id":"\u003cstring>","external_instance_id":"\u003cstring>","price":123,"barcode":"\u003cstring>"}],"items_count":123,"delivery_date":"2023-12-25","package_value":1,"tip":1,"currency":"\u003cstring>","platform_payload":{"store_id":"corner-bakery-cambridge","order_id":"10482"},"gift_sender":{"name":"\u003cstring>","phone":"\u003cstring>","email":"jsmith@example.com"}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"eca67628-9a5f-4527-b344-746c3e235c1d":{"description":"The quote.","content":{"application/json":{"schema":{"type":"object","description":"Successful response returned for a delivery quote.","properties":{"message":{"type":"string","example":"Quote created successfully","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","properties":{"price":{"type":"object","properties":{"delivery_fee":{"type":"number","format":"float","description":"The estimated delivery fee.","example":12.5,"isRequired":true,"uniqueKey":"data.price.delivery_fee","typeLabel":"number\u003cfloat>"},"tip":{"type":"number","format":"float","description":"The tip amount.","example":23,"isRequired":true,"uniqueKey":"data.price.tip","typeLabel":"number\u003cfloat>"},"currency":{"type":"string","description":"The currency of the delivery fee.","example":"USD","isRequired":true,"uniqueKey":"data.price.currency","typeLabel":"string"}},"required":["delivery_fee","tip","currency"],"isRequired":true,"uniqueKey":"data.price","typeLabel":"object"},"distance":{"type":"number","format":"float","description":"The delivery distance in miles.","example":0.61,"isRequired":true,"uniqueKey":"data.distance","typeLabel":"number\u003cfloat>"}},"required":["price","distance"],"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"required":["message","data"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Quote created successfully","data":{"price":{"delivery_fee":12.5,"tip":23,"currency":"USD"},"distance":0.61}}}},"exampleType":"generated"}},"exampleType":"generated"},"92a5c10c-3abf-40fc-b8bf-929f28e77280":{"description":"The API key is missing, invalid, or not valid for this platform.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Machine-readable error code, e.g. `not_found`, `not_cancelable`, `invalid_api_key`.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"A human-readable description of what went wrong.","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["code","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"461e1ada-8aed-44fa-a1a8-9a532e9e4f8b":{"description":"The body failed validation.","content":{"application/json":{"schema":{"type":"object","description":"Returned when the body fails validation.","properties":{"message":{"type":"string","example":"The dropoff name field is required.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"errors":{"type":"object","description":"Field name to a list of messages.","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"errors.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"errors.additionalProperties","typeLabel":"string[]"},"uniqueKey":"errors","typeLabel":"object"}},"required":["message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"The dropoff name field is required.","errors":{}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"e188df5e-ba9b-45e7-b08c-a48359c2e4b5":{"apiKeyAuth":{"type":"http","scheme":"bearer","description":"The merchant's UniHop API key, sent as `Authorization: Bearer \u003ckey>`. It identifies the merchant and is what their deliveries are billed against.","scopes":[],"schemeName":"apiKeyAuth"}}},"servers":{"78875f8e-a38d-4871-8608-500ce75dadd8":{"url":"https://backend.unihop.app/api/v1/{platform}","description":"Production","variables":{"platform":{"default":"your_platform","description":"The platform identifier UniHop issued you at onboarding."}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"The merchant's UniHop API key, sent as `Authorization: Bearer \u003ckey>`. It identifies the merchant and is what their deliveries are billed against.","scopes":[],"schemeName":"apiKeyAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"The merchant's UniHop API key, sent as `Authorization: Bearer \u003ckey>`. It identifies the merchant and is what their deliveries are billed against.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"apiKeyAuth","name":"Authorization"}],"title":"apiKeyAuth"}]},"originalFileLocation":"platforms/api-reference/openapi.json"},"subdomain":"unihop-d6d376c6","siteName":"UniHop API Documentation","title":"Quote a Delivery - UniHop API Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-14T14:01:55.763Z","originalFileLocation":"platforms/api-reference/endpoint/quote.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Price and distance, without creating anything\">\u003cmeta data-mint-head name=\"application-name\" content=\"UniHop API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/unihop-d6d376c6/grQqB4xxOcTE3rbY/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/unihop-d6d376c6/grQqB4xxOcTE3rbY/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/unihop-d6d376c6/grQqB4xxOcTE3rbY/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/unihop-d6d376c6/grQqB4xxOcTE3rbY/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/unihop-d6d376c6/grQqB4xxOcTE3rbY/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/unihop-d6d376c6/grQqB4xxOcTE3rbY/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/unihop-d6d376c6/grQqB4xxOcTE3rbY/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/unihop-d6d376c6/grQqB4xxOcTE3rbY/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/unihop-d6d376c6/grQqB4xxOcTE3rbY/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Quote a Delivery - UniHop API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Price and distance, without creating anything\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"UniHop API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.unihop.app/platforms/api-reference/endpoint/quote\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://unihop-d6d376c6.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Quote+a+Delivery\u0026amp;description=Price+and+distance%2C+without+creating+anything\u0026amp;theme=80e4dd278ae6a946eb94ed0a\u0026amp;signature=878ca9b474d9b111c6ae480552ab48c5a4b08a1a54abb9089850609be263304b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Quote a Delivery - UniHop API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Price and distance, without creating anything\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://unihop-d6d376c6.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Quote+a+Delivery\u0026amp;description=Price+and+distance%2C+without+creating+anything\u0026amp;theme=80e4dd278ae6a946eb94ed0a\u0026amp;signature=878ca9b474d9b111c6ae480552ab48c5a4b08a1a54abb9089850609be263304b\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/unihop-d6d376c6/grQqB4xxOcTE3rbY/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"UniHop API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F2C068\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.unihop.app/platforms/api-reference/endpoint/quote\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/platforms/api-reference/endpoint/quote.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.unihop.app/#organization\",\"name\":\"UniHop API Documentation\",\"url\":\"https://docs.unihop.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/unihop-d6d376c6/m78PJFcj7tV4sl6I/logo/light_bunny.png?fit=max\u0026auto=format\u0026n=m78PJFcj7tV4sl6I\u0026q=85\u0026s=6c142f55c62ecf7831207a9376b35161\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.unihop.app#website\",\"name\":\"UniHop API Documentation\",\"url\":\"https://docs.unihop.app\",\"publisher\":{\"@id\":\"https://docs.unihop.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.unihop.app/platforms/api-reference/endpoint/quote#webpage\",\"url\":\"https://docs.unihop.app/platforms/api-reference/endpoint/quote\",\"name\":\"Quote a Delivery\",\"description\":\"Price and distance, without creating anything\",\"dateModified\":\"2026-08-14T14:01:55.763Z\",\"isPartOf\":{\"@id\":\"https://docs.unihop.app#website\"},\"breadcrumb\":{\"@id\":\"https://docs.unihop.app/platforms/api-reference/endpoint/quote#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.unihop.app/platforms/api-reference/endpoint/quote#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"UniHop API Documentation\",\"item\":\"https://docs.unihop.app\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Quote a Delivery\",\"item\":\"https://docs.unihop.app/platforms/api-reference/endpoint/quote\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.unihop.app/platforms/api-reference/endpoint/quote#apireference\",\"headline\":\"Quote a Delivery\",\"name\":\"Quote a Delivery\",\"description\":\"Price and distance, without creating anything\",\"url\":\"https://docs.unihop.app/platforms/api-reference/endpoint/quote\",\"mainEntityOfPage\":{\"@id\":\"https://docs.unihop.app/platforms/api-reference/endpoint/quote#webpage\"},\"dateModified\":\"2026-08-14T14:01:55.763Z\",\"publisher\":{\"@id\":\"https://docs.unihop.app/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.unihop.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"UniHop API Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"UniHop API Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/platforms/api-reference/endpoint/quote.md","siteName":"UniHop API Documentation","nav":{"global":{},"tabs":[{"tab":"Overview","pages":[{"title":"Overview","href":""}]},{"tab":"Direct API","pages":[{"title":"Direct API","href":"/direct"}]},{"tab":"Platform API","groups":[{"group":"Documentation","pages":[{"title":"Platform API","href":"/platforms"},{"title":"Authentication","href":"/platforms/authentication"},{"title":"Webhooks","description":"Status changes and courier movement, pushed to your endpoint","href":"/platforms/webhooks"}]},{"group":"Endpoints","pages":[{"title":"Quote a Delivery","openapi":"platforms/api-reference/openapi.json POST /quote","href":"/platforms/api-reference/endpoint/quote"},{"title":"Create a Delivery","description":"Book a delivery and send it straight to dispatch","openapi":"platforms/api-reference/openapi.json POST /deliveries","href":"/platforms/api-reference/endpoint/create-delivery"},{"title":"Get a Delivery","openapi":"platforms/api-reference/openapi.json GET /deliveries/{uid}","href":"/platforms/api-reference/endpoint/get-delivery"},{"title":"Cancel a Delivery","openapi":"platforms/api-reference/openapi.json POST /deliveries/{uid}/cancel","href":"/platforms/api-reference/endpoint/cancel-delivery"},{"title":"Check Availability","openapi":"platforms/api-reference/openapi.json GET /availability","href":"/platforms/api-reference/endpoint/availability"}]}]}]},"basePath":"","title":"Quote a Delivery - UniHop API Documentation","deploymentId":"dpl_BzgRxZmUbhHRoPLkBx1DiVRSyQhV","buildId":"dpl_BzgRxZmUbhHRoPLkBx1DiVRSyQhV","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CtBVvVHw.js","snippetPresets-9Wdj1iJX.js","utils-C7pdn048.js","style-to-object-BY3JEAdk.js","utils-DXrrd362.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-mhMleBMB.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BAjduu_G.js","_Uint8Array-nYbT9fMe.js","isObject-FP1Yky1u.js","ApiExamples-B_rQ3sQn.js","usePlaygroundInputsStore-1axgsDkN.js","shallow-BzGYy3WT.js","isEqual-YKdP-BC9.js","CodeSnippets-Bnk9aSsZ.js","CodeSnippet-CpmxV9bB.js","getApiPlaygroundDisplay-bJKEwju4.js","Page-B3Xw2AdP.js","DynamicMarkdown-hgwwGkem.js","SectionHeading-D_cNZKTp.js","icon-Bt9132nT.js","MethodPill-bMPQiifO.js","getPastedJson-B4rstRhU.js","Check2Icon-D82b8qKN.js","axios-CsQoIw0U.js","Markdown-0sfW67Ea.js","AssistantPageLink-B0docfb1.js","dist-DAabPqRJ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}