Get quotes
Price a shipment across all couriers. Returns the cheapest matching services (default 5). Pass serviceSlug to get one service's bookable dates and extras. Pass moreShipments to price up to 10 shipments in one call; book them together with validate_order moreItems.
Compare extras and parcel protection
Request
| Field | Type | Notes |
|---|---|---|
from required | object | |
from.country required | string | ISO2 code, e.g. GB or US. Territories such as Northern Ireland are detected from the postcode |
from.postcode | string | Strongly recommended: some lanes need it |
to required | object | |
to.country required | string | ISO2 code, e.g. GB or US. Territories such as Northern Ireland are detected from the postcode |
to.postcode | string | Strongly recommended: some lanes need it |
parcels required | object[] | Give dimensions: without them the price can change |
parcels[].weightKg required | number | kg (1 lb = 0.4536 kg) Max 1000. |
parcels[].lengthCm | number | cm (1 in = 2.54 cm) Max 1000. |
parcels[].widthCm | number | Max 1000. |
parcels[].heightCm | number | Max 1000. |
parcels[].valueMinor | integer | Declared value in minor units of the sender's currency (pence, cents) |
parcels[].quantity | integer | Identical parcels Default: 1. Min 1. Max 100. |
handover | "any" | "collection" | "dropoff" | Default: "any". |
delivery | "any" | "door" | "shop_or_locker" | Default: "any". |
includeSameDay | boolean | Same-day couriers: GB only, both postcodes needed, priced per vehicle (often £20 to £1,000+). Off by default Default: false. |
dutyTerms | "ddu" | "ddp" | "ioss" | International only: price the matching customs fees |
sort | "price" | "speed" | Default: "price". |
limit | integer | Default: 5. Min 1. Max 15. |
serviceSlug | string | Quote one service in detail: its bookable dates and extras |
moreShipments | object[] | Quote more shipments in one call. Filters, sort and limit apply to each |
moreShipments[].ref | string | Your label, echoed back |
moreShipments[].from required | object | |
moreShipments[].from.country required | string | ISO2 code, e.g. GB or US. Territories such as Northern Ireland are detected from the postcode |
moreShipments[].from.postcode | string | Strongly recommended: some lanes need it |
moreShipments[].to required | object | |
moreShipments[].to.country required | string | ISO2 code, e.g. GB or US. Territories such as Northern Ireland are detected from the postcode |
moreShipments[].to.postcode | string | Strongly recommended: some lanes need it |
moreShipments[].parcels required | object[] | |
moreShipments[].parcels[].weightKg required | number | kg (1 lb = 0.4536 kg) Max 1000. |
moreShipments[].parcels[].lengthCm | number | cm (1 in = 2.54 cm) Max 1000. |
moreShipments[].parcels[].widthCm | number | Max 1000. |
moreShipments[].parcels[].heightCm | number | Max 1000. |
moreShipments[].parcels[].valueMinor | integer | Declared value in minor units of the sender's currency (pence, cents) |
moreShipments[].parcels[].quantity | integer | Identical parcels Default: 1. Min 1. Max 100. |
moreShipments[].dutyTerms | "ddu" | "ddp" | "ioss" |
Examples
curl -X POST "https://sandbox.parcel-mcp.com/v1/quotes" \
-H "content-type: application/json" \
-d '{
"from": {
"country": "GB",
"postcode": "M1 1AE"
},
"to": {
"country": "DE",
"postcode": "10115"
},
"parcels": [
{
"weightKg": 2,
"lengthCm": 30,
"widthCm": 20,
"heightCm": 15,
"valueMinor": 2000
}
]
}'
As an MCP tool call over POST /mcp:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_quotes",
"arguments": {
"from": {
"country": "GB",
"postcode": "M1 1AE"
},
"to": {
"country": "DE",
"postcode": "10115"
},
"parcels": [
{
"weightKg": 2,
"lengthCm": 30,
"widthCm": 20,
"heightCm": 15,
"valueMinor": 2000
}
]
}
}
}
Response
| Field | Type | Notes |
|---|---|---|
error | object | With moreShipments only: this first shipment could not be quoted |
error.message required | string | |
error.issues | object[] | |
error.issues[].code required | string | Stable machine code, e.g. missing-destination-contactname |
error.issues[].field | string | Path of the input field to fix, e.g. destination.contactName |
error.issues[].message required | string | Readable explanation that can be shown to the user |
error.issues[].fix | string | How to fix it |
from required | string | Sender country code used. Use it in later tools: it may be a territory, e.g. GB-NIR |
to required | string | Receiver country code used. Use it in later tools: it may be a territory, e.g. ES-ES-CN |
totalServices required | integer | Services matching the filters, before the limit |
services required | object[] | |
services[].slug required | string | Pass this to the next tools as serviceSlug |
services[].name required | string | |
services[].courier required | string | |
services[].price required | object | Incl. VAT and any automatic customs fees |
services[].price.minor required | integer | Amount in minor units (pence, cents) |
services[].price.currency required | string | ISO 4217 code, e.g. GBP |
services[].price.display required | string | Formatted, e.g. £12.16 |
services[].handover required | "collection" | "dropoff" | Courier collects, or the sender drops the parcel off |
services[].delivery required | "door" | "shop_or_locker" | |
services[].deliveryDays required | string | Estimated working days, e.g. 1-3 |
services[].earliest | string | Earliest collection or drop-off date still bookable |
services[].dropOffProvider | string | Pass to search_drop_shops |
services[].flags | "needs_printer" | "print_in_store" | "same_day" | "no_ddu"[] | needs_printer: sender prints the label. print_in_store: the shop can print it. no_ddu: duty must be prepaid (ddp, or ioss in the EU) |
services[].includesFees | string[] | Automatic fees already in the price |
service | object | With serviceSlug: its dates, extras and cover. services holds its row |
service.slug required | string | Pass this to the next tools as serviceSlug |
service.name required | string | |
service.courier required | string | |
service.price required | object | Incl. VAT and any automatic customs fees |
service.price.minor required | integer | Amount in minor units (pence, cents) |
service.price.currency required | string | ISO 4217 code, e.g. GBP |
service.price.display required | string | Formatted, e.g. £12.16 |
service.handover required | "collection" | "dropoff" | Courier collects, or the sender drops the parcel off |
service.delivery required | "door" | "shop_or_locker" | |
service.deliveryDays required | string | Estimated working days, e.g. 1-3 |
service.earliest | string | Earliest collection or drop-off date still bookable |
service.dropOffProvider | string | Pass to search_drop_shops |
service.flags | "needs_printer" | "print_in_store" | "same_day" | "no_ddu"[] | needs_printer: sender prints the label. print_in_store: the shop can print it. no_ddu: duty must be prepaid (ddp, or ioss in the EU) |
service.includesFees | string[] | Automatic fees already in the price |
service.dates required | object[] | Bookable dates. Drop-off services have one: the earliest hand-in day |
service.dates[].date required | string | |
service.dates[].window | string | Collection time window |
service.dates[].delivery | string | Expected delivery date or range |
service.dates[].extra | object | Extra added when this date is chosen, if applicable |
service.dates[].extra.key required | string | |
service.dates[].extra.price required | object | |
service.dates[].extra.price.minor required | integer | Amount in minor units (pence, cents) |
service.dates[].extra.price.currency required | string | ISO 4217 code, e.g. GBP |
service.dates[].extra.price.display required | string | Formatted, e.g. £12.16 |
service.extras required | object[] | Optional extras. Send chosen keys in the order |
service.extras[].key required | string | |
service.extras[].name required | string | |
service.extras[].price required | object | |
service.extras[].price.minor required | integer | Amount in minor units (pence, cents) |
service.extras[].price.currency required | string | ISO 4217 code, e.g. GBP |
service.extras[].price.display required | string | Formatted, e.g. £12.16 |
service.extras[].pricePending | boolean | Priced only by validate_order |
service.maxWeightKg | number | |
service.protection | object | included: cover without a protection extra, up to the declared value (0 = none). max: the most a protection extra covers |
service.protection.included required | object | |
service.protection.included.minor required | integer | Amount in minor units (pence, cents) |
service.protection.included.currency required | string | ISO 4217 code, e.g. GBP |
service.protection.included.display required | string | Formatted, e.g. £12.16 |
service.protection.max required | object | |
service.protection.max.minor required | integer | Amount in minor units (pence, cents) |
service.protection.max.currency required | string | ISO 4217 code, e.g. GBP |
service.protection.max.display required | string | Formatted, e.g. £12.16 |
notes | string[] | |
moreShipments | object[] | One result per moreShipments entry, in order |
moreShipments[].ref required | string | |
moreShipments[].from required | string | |
moreShipments[].to required | string | |
moreShipments[].totalServices required | integer | |
moreShipments[].services required | object[] | |
moreShipments[].services[].slug required | string | Pass this to the next tools as serviceSlug |
moreShipments[].services[].name required | string | |
moreShipments[].services[].courier required | string | |
moreShipments[].services[].price required | object | Incl. VAT and any automatic customs fees |
moreShipments[].services[].price.minor required | integer | Amount in minor units (pence, cents) |
moreShipments[].services[].price.currency required | string | ISO 4217 code, e.g. GBP |
moreShipments[].services[].price.display required | string | Formatted, e.g. £12.16 |
moreShipments[].services[].handover required | "collection" | "dropoff" | Courier collects, or the sender drops the parcel off |
moreShipments[].services[].delivery required | "door" | "shop_or_locker" | |
moreShipments[].services[].deliveryDays required | string | Estimated working days, e.g. 1-3 |
moreShipments[].services[].earliest | string | Earliest collection or drop-off date still bookable |
moreShipments[].services[].dropOffProvider | string | Pass to search_drop_shops |
moreShipments[].services[].flags | "needs_printer" | "print_in_store" | "same_day" | "no_ddu"[] | needs_printer: sender prints the label. print_in_store: the shop can print it. no_ddu: duty must be prepaid (ddp, or ioss in the EU) |
moreShipments[].services[].includesFees | string[] | Automatic fees already in the price |
moreShipments[].notes | string[] | |
moreShipments[].error | object | This shipment could not be quoted; the others still were |
moreShipments[].error.message required | string | |
moreShipments[].error.issues | object[] | |
moreShipments[].error.issues[].code required | string | Stable machine code, e.g. missing-destination-contactname |
moreShipments[].error.issues[].field | string | Path of the input field to fix, e.g. destination.contactName |
moreShipments[].error.issues[].message required | string | Readable explanation that can be shown to the user |
moreShipments[].error.issues[].fix | string | How to fix it |
Errors
Errors are problem JSON. Each issue names the field to fix and how to fix it. See every error code and its fix.