Book a parcel, step by step
An assistant books a parcel in five calls. The price is only final at validation, and the user pays on the linked payment page. This service never takes payment.
Extras and parcel protection · How to get the label
1 Get quotes
Send both countries and postcodes, plus each parcel's weight, dimensions and valueMinor. Show the user a few options. Quote the chosen service again with the final parcel details to see its extras and dates. Tool:
get_quotes.{ "from": { "country": "GB", "postcode": "M1 1AE" }, "to": { "country": "DE", "postcode": "10115" }, "parcels": [ { "weightKg": 2, "lengthCm": 30, "widthCm": 20, "heightCm": 15, "valueMinor": 2000 } ] }2 Check what the service needs
Use the service slug and the from and to codes that get_quotes returned. Ask the user only for the fields it lists as required. Tool:
get_booking_requirements.{ "serviceSlug": "dpd-classic", "from": "GB", "to": "DE" }3 Pick a drop-off shop (drop-off services only)
Search the service's drop-off network near the sender. If the sender will show a code, use printInStore: true and choose a shop or locker from the filtered results. Tool:
search_drop_shops.{ "provider": "INPOST", "near": "M1 1AE", "purpose": "dropoff" }4 Validate the order
Send the full order with the chosen extra keys. Fix any issues and validate again. Show the user the total, the breakdown and every warning, and get a clear yes. Tool:
validate_order.{ "serviceSlug": "dpd-collection", "from": { "name": "Sam Sender", "property": "1", "street": "Piccadilly", "town": "Manchester", "postcode": "M1 1AE", "country": "GB", "email": "sam@example.com", "phone": "01611234567" }, "to": { "name": "Robin Receiver", "property": "10", "street": "Downing Street", "town": "London", "postcode": "SW1A 2AA", "country": "GB", "email": "robin@example.com", "phone": "02071234567" }, "parcels": [ { "weightKg": 2, "lengthCm": 30, "widthCm": 20, "heightCm": 15, "valueMinor": 2000, "description": "Books" } ] }5 Create the order
Send the confirmationToken from validate_order, once. Give the user the payment link and explain how they will get the label after paying. Tool:
create_order.{ "confirmationToken": "v1.<from validate_order>" }
Extras and parcel protection
Use get_quotes with the chosen serviceSlug and the final parcel details. Set parcels[].valueMinor to the actual replacement value in the sender’s currency (for example 10000 for £100). Use the same value when validating.
- Choose from the detail quote.
service.extraslists optional keys and their prices including tax. Pick only what the sender wants and pass the keys as strings invalidate_order.extras, or in the relevantmoreItems[].extras. Automatic quoted fees appear inservice.includesFeesand are already in the quote price. - Agree on the amount of protection.
service.protection.includedshows the included cover, up to the declared value. Where offered,protection:basebuys a fixed band andprotection:fullcovers the declared value up toservice.protection.max. Choose at most one. Leave both out to keep the included cover. Cover is subject to the booking site’s protection terms and exclusions. - Confirm the extra charges. For
smsalert, collect the receiver’s mobile number. ForpricePending: true, use the validation price even if the quote shows zero. Show the user the validated total and the breakdown, which groups charges by name and includes tax.
How to get the label
Ask if the sender has a printer before choosing a service. Check the detail quote’s service.flags, service.handover and service.extras together.
| Method | What to choose | What the sender does |
|---|---|---|
| Print at home | When the service uses home printing, leave label extras unselected. needs_printer flags home printing. Check for an offered label alternative. | Print the PDF and attach one label per parcel before collection or drop-off. |
| Show a code at drop-off | On a dropoff service, choose printinstore if offered. print_in_store is a clue to check the detail quote. The extra can cost money. Use the service’s dropOffProvider with search_drop_shops, purpose: "dropoff" and printInStore: true. | Take the sealed parcel and scannable code to the selected shop or locker. Some services only issue a code. |
| Driver brings the label | On a collection service, explicitly select driverbringslabel if offered. Some services, such as CitySprint same-day, label at collection as standard. | Have the parcel packed and sealed during the collection window. |
Confirm the label method if the detail result is ambiguous. The quote flags are a summary and carry no separate code-only or courier-labels-at-collection flag.
After payment, the courier booking can take a few minutes to produce a PDF or a scannable code. The sender can find it on the order-complete page, in their confirmation email or in their order account. create_order returns a payment link. Use the agreed label method for the sender’s handover instructions.
Safe by design
- create_order books exactly the order that was validated. If the price has changed since, it refuses and asks for a new validation.
- create_order is never retried automatically. If it fails, the error says whether an order may exist.
- The payment link comes from this site and forwards to the booking site's payment page.
Several parcels at once
Sending to several people? Price them together, then book them as one order with one payment link.
- get_quotes takes
moreShipments: up to 10 shipments in one call, each with its own addresses and parcels. A shipment that cannot be quoted gets its own error; the rest are still priced. - validate_order takes
moreItems: up to 5 shipments on one order, one total and one breakdown. Each item names its service and receiver; the sender defaults to the order's, and must be in the same country. - create_order books them all with one payment link. Problems point at the item, for example
moreItems[0].to.postcode.
Same-day delivery
A dedicated motorcycle or van collects and delivers on the same day, within mainland Great Britain. Quotes leave it out unless includeSameDay: true.
- Expensive. Priced by distance and vehicle, not weight: about £22 across a city, over £1,000 between distant cities. Confirm the price with the user first.
- Both postcodes are required, and both must be in mainland Great Britain. Without them no same-day service is returned.
- Same day means delivered the day it is collected, not collected today. The earliest collection is the next working day (or a Saturday, which may deliver on Monday). The driver comes between 06:00 and 19:00; no time can be chosen.
- Pick the vehicle for the total. Limits are checked per parcel, so add up the weight and choose the smallest vehicle that carries it all: motorcycle 5 kg, small van 400 kg, large van 800 kg, extra-large van 1,100 kg.
- The receiver's phone is required, as is the sender's. No label is needed: the driver collects from the address.
- The courier prices live, so validate straight before booking and get the user's yes on that total.
Expected behaviour
These look like bugs but are how the service works.
- Drop-off services have one date. A drop-off quote returns a single date: the earliest day the parcel can be handed in. Collection services return about a week of collection dates. To book a particular day, choose a collection service.
- Quotes do not include duty and tax. With dutyTerms ddp, a quote includes only the DDP admin fee, listed in includesFees as DDP admin fee. Import duty and tax depend on the contents, so validate_order prices them as a dry run with customs.dutyTerms ddp, and nothing is booked. The landed prices page shows examples.
- no_ddu means duty must be prepaid. The no_ddu flag means the lane does not allow the receiver to pay duty: send customs.dutyTerms ddp, or ioss for EU sales. It is not a contradiction when the same service also lists the DDP admin fee.
- Postcodes are recommended, not optional. Many quotes work without postcodes, but lookup_country returns postcode recommended where the postcode sets the price or the territory. Ask the user for real postcodes: quotes without them can be wrong or missing services.
- Codes can change to a territory. A postcode can move a quote to a territory with its own code, for example BT to GB-NIR or GY to GG. get_quotes says so in notes. Use the returned from and to codes in later tools. lookup_country lists regions on the parent country only, and each territory names its parent in partOf.
- Cover can be zero. protection.included is the cover without buying anything, up to the declared value. 0 means no cover. protection.max is the most a protection extra can cover.
- A detail quote returns the service twice. With serviceSlug, services holds that one service as a summary row and service adds its dates, extras and cover.
- Same-day couriers are hidden by default. Quotes leave same-day services out unless includeSameDay is true. They need both postcodes in mainland Great Britain and cost far more than standard services.
- Only the validated total is final. Quotes are indicative. validate_order returns the price to show the user, and same-day prices can still change at checkout.
- Use the parcel-mcp.com addresses. parcel-mcp.com and sandbox.parcel-mcp.com accept any HTTP client. The older workers.dev addresses still work, but Cloudflare can refuse generic user agents such as Python-urllib there with HTTP 403 and error code 1010.
- Unknown paths. REST paths under /v1 and /mcp answer an unknown route with a JSON problem and HTTP 404. Browsers get the site 404 page.