# Parcel booking — Complete Documentation (SANDBOX: fake orders and payments) > Quote and book parcels, ending with a payment link. Never takes payment. Public, no sign-in, stateless. ## Endpoints - MCP endpoint (Streamable HTTP, stateless, no auth): https://p2g-mcp-sandbox.dotnethelp.workers.dev/mcp - REST API base: https://p2g-mcp-sandbox.dotnethelp.workers.dev/v1 - OpenAPI 3.1 schema: https://p2g-mcp-sandbox.dotnethelp.workers.dev/openapi.json - Live prices (WebMCP-enabled): https://p2g-mcp-sandbox.dotnethelp.workers.dev/prices - Landed duty & tax calculator (WebMCP-enabled): https://p2g-mcp-sandbox.dotnethelp.workers.dev/prices/landed - Health check: https://p2g-mcp-sandbox.dotnethelp.workers.dev/health ## Connect - **Claude (web and desktop)**: Settings -> Connectors -> Add custom connector -> `https://p2g-mcp-sandbox.dotnethelp.workers.dev/mcp` (no auth) - **Claude Code**: `claude mcp add --transport http parcel-booking-sandbox https://p2g-mcp-sandbox.dotnethelp.workers.dev/mcp` - **Cursor** (`.cursor/mcp.json`): `{"mcpServers":{"parcel-booking-sandbox":{"url":"https://p2g-mcp-sandbox.dotnethelp.workers.dev/mcp"}}}` - **VS Code** (`.vscode/mcp.json`): `{"servers":{"parcel-booking-sandbox":{"type":"http","url":"https://p2g-mcp-sandbox.dotnethelp.workers.dev/mcp"}}}` - **ChatGPT / OpenAPI clients**: Connect `https://p2g-mcp-sandbox.dotnethelp.workers.dev/mcp` in Developer Mode or import `https://p2g-mcp-sandbox.dotnethelp.workers.dev/openapi.json`. - **MCP Prompt**: `book_a_parcel` (optional args: `from`, `to`, `parcel`). ## Units, Limits, and Safety - **Units**: Money is in integer minor units of the sender's currency (`{minor, currency, display}`), weight in kg, dimensions in cm. Convert lb and inches before calling. - **Rate limits**: ~120 requests/minute per IP on `/mcp`, `/v1/*`, and `/prices*`; 3 orders/minute per IP on `create_order`. Max body size 64 KB. - **Booking safety**: Quotes are indicative; only `validate_order` returns the final price and a signed 30-minute `confirmationToken`. `create_order` re-checks the total before booking and never retries automatically. Payment links (`/pay/{token}`) expire after ~24 hours. - **Never invent data**: Do not fabricate postcodes, tax IDs, EORI, phone numbers, tariff codes, or IOSS numbers to clear validation errors. Ask the user. ## Booking Journey 1. **Get quotes** (`get_quotes`): Send the sender and destination countries and postcodes, and each parcel's weight and size. Show the user a few options. Quotes are indicative. 2. **Check what the service needs** (`get_booking_requirements`): 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. 3. **Pick a drop-off shop (drop-off services only)** (`search_drop_shops`): Search the service's drop-off network near the sender, and let the user choose a shop. 4. **Validate the order** (`validate_order`): Send the full order. Fix any issues and validate again. Show the user the total, the breakdown and every warning, and get a clear yes. 5. **Create the order** (`create_order`): Send the confirmationToken from validate_order, once. Give the user the payment link. Nothing is booked until they pay. ### Batching - `get_quotes.moreShipments`: Price up to 10 shipments in one call (one upstream request per sender country). - `validate_order.moreItems`: Put up to 5 shipments on one order, one total, and one payment link (same sender country). ### Same-day delivery (Great Britain only) - Pass `includeSameDay: true` on `get_quotes`. Requires both postcodes in mainland Great Britain. - Priced by distance and vehicle (often £20 to over £1,000), collected the next working day 06:00-19:00 and delivered the same day. - Vehicle limits are checked per parcel: sum total weight and pick the smallest fitting vehicle (motorcycle 5 kg, small van 400 kg, large van 800 kg, extra-large van 1,100 kg). Receiver phone is required. Validate straight before booking. ### Prepaid duty and tax (DDP) - Set `dutyTerms: "ddp"` on `get_quotes` and `customs.dutyTerms: "ddp"` on `validate_order`. Quotes show only the admin fee; full duty and tax appear on `validate_order`. ## Supported Sender Countries | Country | Code | Currency | Drop-off shop search | | --- | --- | --- | --- | | United Kingdom | `GB` | GBP | Yes | Other sender countries may get few or no services. Quotes from India (IN), Thailand (TH), and Vietnam (VN) are international only. ## Browser WebMCP Tools When opened in a Chromium browser with WebMCP enabled (`document.modelContext`), the interactive price pages expose read-only client-side tools alongside declarative `
` annotations: - `/prices`: `quote-parcel-form` (declarative form), `get-cheapest-prices-table`, `list-displayed-services` - `/prices/landed`: `landed-duty-form` (declarative form), `read-landed-breakdown` ## Operations Reference ### lookup_country (Look up a country) - MCP tool: `lookup_country` - REST: `GET /v1/countries` - Behaviour: read-only · idempotent · live upstream call - Docs: https://p2g-mcp-sandbox.dotnethelp.workers.dev/docs/lookup-country Find a country's code and postcode rules by name or code. Returns at most 5 matches. Only needed when unsure of a code. #### Request fields | Field | Type | Required | Notes | | --- | --- | --- | --- | | `query` | `string` | Yes | Country name or ISO code, e.g. 'germany', 'DE', 'DEU' | | `from` | `string` | No | Sender's country: decides which destinations are open (sendTo) Default: "GB". | #### Example REST request ```bash curl "https://p2g-mcp-sandbox.dotnethelp.workers.dev/v1/countries?query=germany" ``` #### Example MCP `tools/call` ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "lookup_country", "arguments": { "query": "germany" } } } ``` #### Response fields | Field | Type | Required | Notes | | --- | --- | --- | --- | | `countries` | `object[]` | Yes | | | `countries[].code` | `string` | Yes | Code to use in other tools, e.g. GB, DE, GB-NIR | | `countries[].iso3` | `string` | Yes | | | `countries[].name` | `string` | Yes | | | `countries[].sendFrom` | `boolean` | Yes | Parcels can be sent from here | | `countries[].sendTo` | `boolean` | Yes | Parcels can be sent here | | `countries[].postcodeRequired` | `boolean` | Yes | | | `countries[].postcodePattern` | `string` | No | Regex the postcode must match | | `countries[].regions` | `object[]` | No | Territories with their own code, chosen automatically from the postcode | | `countries[].regions[].code` | `string` | Yes | | | `countries[].regions[].postcodes` | `string` | Yes | Postcode prefixes that belong to it | | `totalMatches` | `integer` | Yes | | ### get_quotes (Get quotes) - MCP tool: `get_quotes` - REST: `POST /v1/quotes` - Behaviour: read-only · idempotent · live upstream call - Docs: https://p2g-mcp-sandbox.dotnethelp.workers.dev/docs/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. #### Request fields | Field | Type | Required | Notes | | --- | --- | --- | --- | | `from` | `object` | Yes | | | `from.country` | `string` | Yes | ISO2 code, e.g. GB or US. Territories such as Northern Ireland are detected from the postcode | | `from.postcode` | `string` | No | Strongly recommended: some lanes need it | | `to` | `object` | Yes | | | `to.country` | `string` | Yes | ISO2 code, e.g. GB or US. Territories such as Northern Ireland are detected from the postcode | | `to.postcode` | `string` | No | Strongly recommended: some lanes need it | | `parcels` | `object[]` | Yes | Give dimensions: without them the price can change | | `parcels[].weightKg` | `number` | Yes | kg (1 lb = 0.4536 kg) Max 1000. | | `parcels[].lengthCm` | `number` | No | cm (1 in = 2.54 cm) Max 1000. | | `parcels[].widthCm` | `number` | No | Max 1000. | | `parcels[].heightCm` | `number` | No | Max 1000. | | `parcels[].valueMinor` | `integer` | No | Declared value in minor units of the sender's currency (pence, cents) | | `parcels[].quantity` | `integer` | No | Identical parcels Default: 1. Min 1. Max 100. | | `handover` | `"any" \| "collection" \| "dropoff"` | No | Default: "any". | | `delivery` | `"any" \| "door" \| "shop_or_locker"` | No | Default: "any". | | `includeSameDay` | `boolean` | No | 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"` | No | International only: price the matching customs fees | | `sort` | `"price" \| "speed"` | No | Default: "price". | | `limit` | `integer` | No | Default: 5. Min 1. Max 15. | | `serviceSlug` | `string` | No | Quote one service in detail: its bookable dates and extras | | `moreShipments` | `object[]` | No | Quote more shipments in one call. Filters, sort and limit apply to each | | `moreShipments[].ref` | `string` | No | Your label, echoed back | | `moreShipments[].from` | `object` | Yes | | | `moreShipments[].from.country` | `string` | Yes | ISO2 code, e.g. GB or US. Territories such as Northern Ireland are detected from the postcode | | `moreShipments[].from.postcode` | `string` | No | Strongly recommended: some lanes need it | | `moreShipments[].to` | `object` | Yes | | | `moreShipments[].to.country` | `string` | Yes | ISO2 code, e.g. GB or US. Territories such as Northern Ireland are detected from the postcode | | `moreShipments[].to.postcode` | `string` | No | Strongly recommended: some lanes need it | | `moreShipments[].parcels` | `object[]` | Yes | | | `moreShipments[].parcels[].weightKg` | `number` | Yes | kg (1 lb = 0.4536 kg) Max 1000. | | `moreShipments[].parcels[].lengthCm` | `number` | No | cm (1 in = 2.54 cm) Max 1000. | | `moreShipments[].parcels[].widthCm` | `number` | No | Max 1000. | | `moreShipments[].parcels[].heightCm` | `number` | No | Max 1000. | | `moreShipments[].parcels[].valueMinor` | `integer` | No | Declared value in minor units of the sender's currency (pence, cents) | | `moreShipments[].parcels[].quantity` | `integer` | No | Identical parcels Default: 1. Min 1. Max 100. | | `moreShipments[].dutyTerms` | `"ddu" \| "ddp" \| "ioss"` | No | | #### Example REST request ```bash curl -X POST "https://p2g-mcp-sandbox.dotnethelp.workers.dev/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 } ] }' ``` #### Example MCP `tools/call` ```json { "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 fields | Field | Type | Required | Notes | | --- | --- | --- | --- | | `error` | `object` | No | With moreShipments only: this first shipment could not be quoted | | `error.message` | `string` | Yes | | | `error.issues` | `object[]` | No | | | `error.issues[].code` | `string` | Yes | Stable machine code, e.g. missing-destination-contactname | | `error.issues[].field` | `string` | No | Path of the input field to fix, e.g. destination.contactName | | `error.issues[].message` | `string` | Yes | Readable explanation that can be shown to the user | | `error.issues[].fix` | `string` | No | How to fix it | | `from` | `string` | Yes | Sender country code used. Use it in later tools: it may be a territory, e.g. GB-NIR | | `to` | `string` | Yes | Receiver country code used. Use it in later tools: it may be a territory, e.g. ES-ES-CN | | `totalServices` | `integer` | Yes | Services matching the filters, before the limit | | `services` | `object[]` | Yes | | | `services[].slug` | `string` | Yes | Pass this to the next tools as serviceSlug | | `services[].name` | `string` | Yes | | | `services[].courier` | `string` | Yes | | | `services[].price` | `object` | Yes | Incl. VAT and any automatic customs fees | | `services[].price.minor` | `integer` | Yes | Amount in minor units (pence, cents) | | `services[].price.currency` | `string` | Yes | ISO 4217 code, e.g. GBP | | `services[].price.display` | `string` | Yes | Formatted, e.g. £12.16 | | `services[].handover` | `"collection" \| "dropoff"` | Yes | Courier collects, or the sender drops the parcel off | | `services[].delivery` | `"door" \| "shop_or_locker"` | Yes | | | `services[].deliveryDays` | `string` | Yes | Estimated working days, e.g. 1-3 | | `services[].earliest` | `string` | No | Earliest collection or drop-off date still bookable | | `services[].dropOffProvider` | `string` | No | Pass to search_drop_shops | | `services[].flags` | `"needs_printer" \| "print_in_store" \| "same_day" \| "no_ddu"[]` | No | 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[]` | No | Automatic fees already in the price | | `service` | `object` | No | Only when serviceSlug was given | | `service.slug` | `string` | Yes | Pass this to the next tools as serviceSlug | | `service.name` | `string` | Yes | | | `service.courier` | `string` | Yes | | | `service.price` | `object` | Yes | Incl. VAT and any automatic customs fees | | `service.price.minor` | `integer` | Yes | Amount in minor units (pence, cents) | | `service.price.currency` | `string` | Yes | ISO 4217 code, e.g. GBP | | `service.price.display` | `string` | Yes | Formatted, e.g. £12.16 | | `service.handover` | `"collection" \| "dropoff"` | Yes | Courier collects, or the sender drops the parcel off | | `service.delivery` | `"door" \| "shop_or_locker"` | Yes | | | `service.deliveryDays` | `string` | Yes | Estimated working days, e.g. 1-3 | | `service.earliest` | `string` | No | Earliest collection or drop-off date still bookable | | `service.dropOffProvider` | `string` | No | Pass to search_drop_shops | | `service.flags` | `"needs_printer" \| "print_in_store" \| "same_day" \| "no_ddu"[]` | No | 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[]` | No | Automatic fees already in the price | | `service.dates` | `object[]` | Yes | Bookable dates. Drop-off services have one: the earliest hand-in day | | `service.dates[].date` | `string` | Yes | | | `service.dates[].window` | `string` | No | Collection time window | | `service.dates[].delivery` | `string` | No | Expected delivery date or range | | `service.dates[].extra` | `object` | No | Paid upgrade added when this date is chosen, e.g. Saturday | | `service.dates[].extra.key` | `string` | Yes | | | `service.dates[].extra.price` | `object` | Yes | | | `service.dates[].extra.price.minor` | `integer` | Yes | Amount in minor units (pence, cents) | | `service.dates[].extra.price.currency` | `string` | Yes | ISO 4217 code, e.g. GBP | | `service.dates[].extra.price.display` | `string` | Yes | Formatted, e.g. £12.16 | | `service.extras` | `object[]` | Yes | Optional extras. Send chosen keys in the order | | `service.extras[].key` | `string` | Yes | | | `service.extras[].name` | `string` | Yes | | | `service.extras[].price` | `object` | Yes | | | `service.extras[].price.minor` | `integer` | Yes | Amount in minor units (pence, cents) | | `service.extras[].price.currency` | `string` | Yes | ISO 4217 code, e.g. GBP | | `service.extras[].price.display` | `string` | Yes | Formatted, e.g. £12.16 | | `service.extras[].pricePending` | `boolean` | No | Priced only by validate_order | | `service.maxWeightKg` | `number` | No | | | `service.protection` | `object` | No | Cover included in the price, and the most an extra can add | | `service.protection.included` | `object` | Yes | | | `service.protection.included.minor` | `integer` | Yes | Amount in minor units (pence, cents) | | `service.protection.included.currency` | `string` | Yes | ISO 4217 code, e.g. GBP | | `service.protection.included.display` | `string` | Yes | Formatted, e.g. £12.16 | | `service.protection.max` | `object` | Yes | | | `service.protection.max.minor` | `integer` | Yes | Amount in minor units (pence, cents) | | `service.protection.max.currency` | `string` | Yes | ISO 4217 code, e.g. GBP | | `service.protection.max.display` | `string` | Yes | Formatted, e.g. £12.16 | | `notes` | `string[]` | No | | | `moreShipments` | `object[]` | No | One result per moreShipments entry, in order | | `moreShipments[].ref` | `string` | Yes | | | `moreShipments[].from` | `string` | Yes | | | `moreShipments[].to` | `string` | Yes | | | `moreShipments[].totalServices` | `integer` | Yes | | | `moreShipments[].services` | `object[]` | Yes | | | `moreShipments[].services[].slug` | `string` | Yes | Pass this to the next tools as serviceSlug | | `moreShipments[].services[].name` | `string` | Yes | | | `moreShipments[].services[].courier` | `string` | Yes | | | `moreShipments[].services[].price` | `object` | Yes | Incl. VAT and any automatic customs fees | | `moreShipments[].services[].price.minor` | `integer` | Yes | Amount in minor units (pence, cents) | | `moreShipments[].services[].price.currency` | `string` | Yes | ISO 4217 code, e.g. GBP | | `moreShipments[].services[].price.display` | `string` | Yes | Formatted, e.g. £12.16 | | `moreShipments[].services[].handover` | `"collection" \| "dropoff"` | Yes | Courier collects, or the sender drops the parcel off | | `moreShipments[].services[].delivery` | `"door" \| "shop_or_locker"` | Yes | | | `moreShipments[].services[].deliveryDays` | `string` | Yes | Estimated working days, e.g. 1-3 | | `moreShipments[].services[].earliest` | `string` | No | Earliest collection or drop-off date still bookable | | `moreShipments[].services[].dropOffProvider` | `string` | No | Pass to search_drop_shops | | `moreShipments[].services[].flags` | `"needs_printer" \| "print_in_store" \| "same_day" \| "no_ddu"[]` | No | 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[]` | No | Automatic fees already in the price | | `moreShipments[].notes` | `string[]` | No | | | `moreShipments[].error` | `object` | No | This shipment could not be quoted; the others still were | | `moreShipments[].error.message` | `string` | Yes | | | `moreShipments[].error.issues` | `object[]` | No | | | `moreShipments[].error.issues[].code` | `string` | Yes | Stable machine code, e.g. missing-destination-contactname | | `moreShipments[].error.issues[].field` | `string` | No | Path of the input field to fix, e.g. destination.contactName | | `moreShipments[].error.issues[].message` | `string` | Yes | Readable explanation that can be shown to the user | | `moreShipments[].error.issues[].fix` | `string` | No | How to fix it | ### get_delivery_estimate (Get a delivery estimate) - MCP tool: `get_delivery_estimate` - REST: `GET /v1/services/{serviceSlug}/{from}/{to}/delivery-estimate` - Behaviour: read-only · idempotent · live upstream call - Docs: https://p2g-mcp-sandbox.dotnethelp.workers.dev/docs/get-delivery-estimate Optional. The delivery window for one service if collected or dropped off on a given date. get_quotes already gives windows for its listed dates. #### Request fields | Field | Type | Required | Notes | | --- | --- | --- | --- | | `serviceSlug` | `string` | Yes | slug from get_quotes | | `from` | `string` | Yes | from code get_quotes returned | | `to` | `string` | Yes | to code get_quotes returned | | `date` | `string (date)` | Yes | Collection or drop-off date, YYYY-MM-DD | #### Example REST request ```bash curl "https://p2g-mcp-sandbox.dotnethelp.workers.dev/v1/services/dpd-classic/GB/DE/delivery-estimate?date=2026-12-07" ``` #### Example MCP `tools/call` ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "get_delivery_estimate", "arguments": { "serviceSlug": "dpd-classic", "from": "GB", "to": "DE", "date": "2026-12-07" } } } ``` #### Response fields | Field | Type | Required | Notes | | --- | --- | --- | --- | | `date` | `string` | Yes | Collection or drop-off date | | `window` | `string` | No | Collection time window | | `delivery` | `string` | Yes | Estimated delivery date or range | ### get_booking_requirements (Get booking requirements) - MCP tool: `get_booking_requirements` - REST: `GET /v1/services/{serviceSlug}/{from}/{to}/requirements` - Behaviour: read-only · idempotent · live upstream call - Docs: https://p2g-mcp-sandbox.dotnethelp.workers.dev/docs/get-booking-requirements Which details a service needs on a lane: address extras, customs, tax and shop ids, as paths in the order input. Call after the user picks a service from get_quotes, with the from/to codes it returned. #### Request fields | Field | Type | Required | Notes | | --- | --- | --- | --- | | `serviceSlug` | `string` | Yes | slug from get_quotes | | `from` | `string` | Yes | from code get_quotes returned | | `to` | `string` | Yes | to code get_quotes returned | | `includeOptional` | `boolean` | No | Also list optional fields in full Default: false. | #### Example REST request ```bash curl "https://p2g-mcp-sandbox.dotnethelp.workers.dev/v1/services/dpd-classic/GB/DE/requirements" ``` #### Example MCP `tools/call` ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "get_booking_requirements", "arguments": { "serviceSlug": "dpd-classic", "from": "GB", "to": "DE" } } } ``` #### Response fields | Field | Type | Required | Notes | | --- | --- | --- | --- | | `service` | `string` | Yes | | | `from` | `string` | Yes | | | `to` | `string` | Yes | | | `international` | `boolean` | Yes | True when a customs declaration is needed | | `address` | `string` | Yes | Address fields both sides need | | `parcels` | `string` | Yes | Fields every parcel needs | | `fields` | `object[]` | Yes | Other required or conditionally required fields | | `fields[].paths` | `string[]` | Yes | Where the value goes in the order input; all share these rules | | `fields[].required` | `true \| false \| string` | Yes | true, false, or "if " | | `fields[].type` | `"integer" \| "decimal" \| "boolean"` | No | | | `fields[].options` | `string[]` | No | Allowed values | | `fields[].maxLength` | `integer` | No | | | `fields[].minLength` | `integer` | No | | | `fields[].format` | `string` | No | | | `fields[].note` | `string` | No | | | `optional` | `string[]` | No | Optional field paths (includeOptional for details) | | `shops` | `object` | No | Drop-shop ids this service takes: from = sender's drop-off shop, to = receiver's pick-up shop | | `shops.from` | `object` | No | | | `shops.from.provider` | `string` | Yes | Pass to search_drop_shops as provider | | `shops.from.required` | `boolean` | Yes | | | `shops.to` | `object` | No | | | `shops.to.provider` | `string` | Yes | Pass to search_drop_shops as provider | | `shops.to.required` | `boolean` | Yes | | | `customs` | `object` | No | | | `customs.dutyTerms` | `string[]` | Yes | Allowed customs.dutyTerms | | `customs.ddpAdminFee` | `object` | No | | | `customs.ddpAdminFee.minor` | `integer` | Yes | Amount in minor units (pence, cents) | | `customs.ddpAdminFee.currency` | `string` | Yes | ISO 4217 code, e.g. GBP | | `customs.ddpAdminFee.display` | `string` | Yes | Formatted, e.g. £12.16 | | `customs.giftAllowance` | `object` | No | Gifts up to this value are usually free of duty | | `customs.giftAllowance.minor` | `integer` | Yes | Amount in minor units (pence, cents) | | `customs.giftAllowance.currency` | `string` | Yes | ISO 4217 code, e.g. GBP | | `customs.giftAllowance.display` | `string` | Yes | Formatted, e.g. £12.16 | | `customs.tariffCode` | `string` | No | | | `notes` | `string[]` | No | | ### search_drop_shops (Search drop shops) - MCP tool: `search_drop_shops` - REST: `GET /v1/drop-shops` - Behaviour: read-only · idempotent · live upstream call - Docs: https://p2g-mcp-sandbox.dotnethelp.workers.dev/docs/search-drop-shops Find shops or lockers near a postcode or town for a service's network: where the sender drops off (purpose dropoff) or where the receiver collects (purpose delivery). Returns the shop id to book with. Nearest first, within 20 km. #### Request fields | Field | Type | Required | Notes | | --- | --- | --- | --- | | `provider` | `string` | Yes | Network: get_quotes dropOffProvider or get_booking_requirements shops.*.provider | | `country` | `string` | No | Country the shop is in, e.g. GB or GB-NIR Default: "GB". | | `from` | `string` | No | Shipment's sending country, if not the shop's country (receiver's shop abroad) | | `near` | `string` | Yes | Postcode or town | | `purpose` | `"dropoff" \| "delivery"` | Yes | dropoff: sender hands the parcel in; delivery: receiver collects | | `printInStore` | `boolean` | No | Only shops that can print the label Default: false. | | `limit` | `integer` | No | Default: 5. Min 1. Max 20. | #### Example REST request ```bash curl "https://p2g-mcp-sandbox.dotnethelp.workers.dev/v1/drop-shops?provider=INPOST&near=M1+1AE&purpose=dropoff" ``` #### Example MCP `tools/call` ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "search_drop_shops", "arguments": { "provider": "INPOST", "near": "M1 1AE", "purpose": "dropoff" } } } ``` #### Response fields | Field | Type | Required | Notes | | --- | --- | --- | --- | | `shops` | `object[]` | Yes | | | `shops[].id` | `string` | Yes | Use as from.shopId (drop-off) or to.shopId (delivery) | | `shops[].name` | `string` | Yes | | | `shops[].address` | `string` | Yes | | | `shops[].distanceKm` | `number` | Yes | | | `shops[].locker` | `boolean` | No | A self-service locker: size limits apply, the receiver needs a mobile | | `shops[].printInStore` | `boolean` | No | Can print the label | | `shops[].hours` | `string` | No | Opening hours; days not listed are closed | | `totalFound` | `integer` | Yes | | | `notes` | `string[]` | No | | ### validate_order (Validate an order) - MCP tool: `validate_order` - REST: `POST /v1/orders/validate` - Behaviour: read-only · idempotent · live upstream call - Docs: https://p2g-mcp-sandbox.dotnethelp.workers.dev/docs/validate-order Check a complete order and get its final price, breakdown and warnings. Nothing is booked. Fix any issues and call again. Show the user the total and warnings, then pass confirmationToken to create_order. Several shipments can go on one order (moreItems): one total, one payment link. #### Request fields | Field | Type | Required | Notes | | --- | --- | --- | --- | | `serviceSlug` | `string` | Yes | slug from get_quotes | | `to` | `object` | Yes | | | `to.name` | `string` | Yes | Contact name | | `to.organisation` | `string` | No | | | `to.property` | `string` | Yes | House number or name | | `to.street` | `string` | Yes | | | `to.locality` | `string` | No | | | `to.town` | `string` | Yes | | | `to.county` | `string` | No | State or province code where required (e.g. NY) | | `to.postcode` | `string` | Yes | | | `to.country` | `string` | Yes | Country code get_quotes returned (may be a territory such as GB-NIR) | | `to.email` | `string` | No | | | `to.phone` | `string` | No | | | `to.shopId` | `string` | No | Drop shop id from search_drop_shops | | `to.companyStatus` | `"individual" \| "business-registered" \| "business-not-registered"` | No | | | `to.companyTaxNumber` | `string` | No | VAT or company tax number | | `to.eori` | `string` | No | | | `to.taxId` | `string` | No | Personal tax id | | `to.residential` | `boolean` | No | false for a business address (cheaper on some sites) | | `parcels` | `object[]` | Yes | | | `parcels[].weightKg` | `number` | Yes | Max 1000. | | `parcels[].lengthCm` | `number` | Yes | Max 1000. | | `parcels[].widthCm` | `number` | Yes | Max 1000. | | `parcels[].heightCm` | `number` | Yes | Max 1000. | | `parcels[].valueMinor` | `integer` | Yes | Declared value in minor units of the sender's currency | | `parcels[].description` | `string` | Yes | Short summary of the contents | | `parcels[].quantity` | `integer` | No | Default: 1. Min 1. Max 100. | | `parcels[].contents` | `object[]` | No | Customs lines: international only | | `parcels[].contents[].quantity` | `integer` | Yes | Min 1. Max 1000. | | `parcels[].contents[].description` | `string` | Yes | Be specific, e.g. 'Paperback book' | | `parcels[].contents[].valueMinor` | `integer` | Yes | Line total in minor units | | `parcels[].contents[].weightKg` | `number` | No | Line total | | `parcels[].contents[].countryOfManufacture` | `string` | No | ISO2 | | `parcels[].contents[].tariffCode` | `string` | No | Digits only | | `parcels[].contents[].merchantProductId` | `string` | No | Seller's SKU | | `parcels[].contents[].manufacturerProductId` | `string` | No | Model or part number | | `parcels[].contents[].standardProductId` | `string` | No | Barcode (GTIN/EAN/UPC/ISBN) | | `collectionDate` | `string (date)` | No | | | `extras` | `string[]` | No | Extra keys from get_quotes | | `customs` | `object` | No | | | `customs.exportReason` | `string` | No | | | `customs.dutyTerms` | `"ddu" \| "ddp" \| "ioss"` | No | | | `customs.ioss` | `string` | No | IM + 10 digits | | `from` | `object` | Yes | | | `from.name` | `string` | Yes | Contact name | | `from.organisation` | `string` | No | | | `from.property` | `string` | Yes | House number or name | | `from.street` | `string` | Yes | | | `from.locality` | `string` | No | | | `from.town` | `string` | Yes | | | `from.county` | `string` | No | State or province code where required (e.g. NY) | | `from.postcode` | `string` | Yes | | | `from.country` | `string` | Yes | Country code get_quotes returned (may be a territory such as GB-NIR) | | `from.email` | `string` | No | | | `from.phone` | `string` | No | | | `from.shopId` | `string` | No | Drop shop id from search_drop_shops | | `from.companyStatus` | `"individual" \| "business-registered" \| "business-not-registered"` | No | | | `from.companyTaxNumber` | `string` | No | VAT or company tax number | | `from.eori` | `string` | No | | | `from.taxId` | `string` | No | Personal tax id | | `from.residential` | `boolean` | No | false for a business address (cheaper on some sites) | | `moreItems` | `object[]` | No | More shipments on this order, paid together with one link. Each needs its own quote and requirements | | `moreItems[].serviceSlug` | `string` | Yes | slug from get_quotes | | `moreItems[].to` | `object` | Yes | | | `moreItems[].to.name` | `string` | Yes | Contact name | | `moreItems[].to.organisation` | `string` | No | | | `moreItems[].to.property` | `string` | Yes | House number or name | | `moreItems[].to.street` | `string` | Yes | | | `moreItems[].to.locality` | `string` | No | | | `moreItems[].to.town` | `string` | Yes | | | `moreItems[].to.county` | `string` | No | State or province code where required (e.g. NY) | | `moreItems[].to.postcode` | `string` | Yes | | | `moreItems[].to.country` | `string` | Yes | Country code get_quotes returned (may be a territory such as GB-NIR) | | `moreItems[].to.email` | `string` | No | | | `moreItems[].to.phone` | `string` | No | | | `moreItems[].to.shopId` | `string` | No | Drop shop id from search_drop_shops | | `moreItems[].to.companyStatus` | `"individual" \| "business-registered" \| "business-not-registered"` | No | | | `moreItems[].to.companyTaxNumber` | `string` | No | VAT or company tax number | | `moreItems[].to.eori` | `string` | No | | | `moreItems[].to.taxId` | `string` | No | Personal tax id | | `moreItems[].to.residential` | `boolean` | No | false for a business address (cheaper on some sites) | | `moreItems[].parcels` | `object[]` | Yes | | | `moreItems[].parcels[].weightKg` | `number` | Yes | Max 1000. | | `moreItems[].parcels[].lengthCm` | `number` | Yes | Max 1000. | | `moreItems[].parcels[].widthCm` | `number` | Yes | Max 1000. | | `moreItems[].parcels[].heightCm` | `number` | Yes | Max 1000. | | `moreItems[].parcels[].valueMinor` | `integer` | Yes | Declared value in minor units of the sender's currency | | `moreItems[].parcels[].description` | `string` | Yes | Short summary of the contents | | `moreItems[].parcels[].quantity` | `integer` | No | Default: 1. Min 1. Max 100. | | `moreItems[].parcels[].contents` | `object[]` | No | Customs lines: international only | | `moreItems[].parcels[].contents[].quantity` | `integer` | Yes | Min 1. Max 1000. | | `moreItems[].parcels[].contents[].description` | `string` | Yes | Be specific, e.g. 'Paperback book' | | `moreItems[].parcels[].contents[].valueMinor` | `integer` | Yes | Line total in minor units | | `moreItems[].parcels[].contents[].weightKg` | `number` | No | Line total | | `moreItems[].parcels[].contents[].countryOfManufacture` | `string` | No | ISO2 | | `moreItems[].parcels[].contents[].tariffCode` | `string` | No | Digits only | | `moreItems[].parcels[].contents[].merchantProductId` | `string` | No | Seller's SKU | | `moreItems[].parcels[].contents[].manufacturerProductId` | `string` | No | Model or part number | | `moreItems[].parcels[].contents[].standardProductId` | `string` | No | Barcode (GTIN/EAN/UPC/ISBN) | | `moreItems[].collectionDate` | `string (date)` | No | | | `moreItems[].extras` | `string[]` | No | Extra keys from get_quotes | | `moreItems[].customs` | `object` | No | | | `moreItems[].customs.exportReason` | `string` | No | | | `moreItems[].customs.dutyTerms` | `"ddu" \| "ddp" \| "ioss"` | No | | | `moreItems[].customs.ioss` | `string` | No | IM + 10 digits | | `moreItems[].from` | `object` | No | | | `moreItems[].from.name` | `string` | Yes | Contact name | | `moreItems[].from.organisation` | `string` | No | | | `moreItems[].from.property` | `string` | Yes | House number or name | | `moreItems[].from.street` | `string` | Yes | | | `moreItems[].from.locality` | `string` | No | | | `moreItems[].from.town` | `string` | Yes | | | `moreItems[].from.county` | `string` | No | State or province code where required (e.g. NY) | | `moreItems[].from.postcode` | `string` | Yes | | | `moreItems[].from.country` | `string` | Yes | Country code get_quotes returned (may be a territory such as GB-NIR) | | `moreItems[].from.email` | `string` | No | | | `moreItems[].from.phone` | `string` | No | | | `moreItems[].from.shopId` | `string` | No | Drop shop id from search_drop_shops | | `moreItems[].from.companyStatus` | `"individual" \| "business-registered" \| "business-not-registered"` | No | | | `moreItems[].from.companyTaxNumber` | `string` | No | VAT or company tax number | | `moreItems[].from.eori` | `string` | No | | | `moreItems[].from.taxId` | `string` | No | Personal tax id | | `moreItems[].from.residential` | `boolean` | No | false for a business address (cheaper on some sites) | | `customer` | `object` | No | Defaults to the sender's name and email | | `customer.forename` | `string` | Yes | | | `customer.surname` | `string` | Yes | | | `customer.email` | `string` | Yes | | #### Example REST request ```bash curl -X POST "https://p2g-mcp-sandbox.dotnethelp.workers.dev/v1/orders/validate" \ -H "content-type: application/json" \ -d '{ "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" } ] }' ``` #### Example MCP `tools/call` ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "validate_order", "arguments": { "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" } ] } } } ``` #### Response fields | Field | Type | Required | Notes | | --- | --- | --- | --- | | `service` | `object` | Yes | | | `service.slug` | `string` | Yes | | | `service.name` | `string` | Yes | | | `service.courier` | `string` | Yes | | | `from` | `string` | Yes | | | `to` | `string` | Yes | | | `date` | `string` | No | Collection or drop-off date that will be booked | | `delivery` | `string` | No | Expected delivery date or range | | `total` | `object` | Yes | Final price of the whole order. Show it, the breakdown and every warning before booking | | `total.minor` | `integer` | Yes | Amount in minor units (pence, cents) | | `total.currency` | `string` | Yes | ISO 4217 code, e.g. GBP | | `total.display` | `string` | Yes | Formatted, e.g. £12.16 | | `breakdown` | `object[]` | Yes | Incl. tax, grouped by charge | | `breakdown[].name` | `string` | Yes | | | `breakdown[].amount` | `object` | Yes | | | `breakdown[].amount.minor` | `integer` | Yes | Amount in minor units (pence, cents) | | `breakdown[].amount.currency` | `string` | Yes | ISO 4217 code, e.g. GBP | | `breakdown[].amount.display` | `string` | Yes | Formatted, e.g. £12.16 | | `items` | `object[]` | No | Every shipment, in order, when the order has more than one | | `items[].service` | `object` | Yes | | | `items[].service.slug` | `string` | Yes | | | `items[].service.name` | `string` | Yes | | | `items[].service.courier` | `string` | Yes | | | `items[].from` | `string` | Yes | | | `items[].to` | `string` | Yes | | | `items[].date` | `string` | No | Collection or drop-off date that will be booked | | `items[].delivery` | `string` | No | Expected delivery date or range | | `warnings` | `string[]` | No | | | `confirmationToken` | `string` | Yes | Pass to create_order before expiresAt. It holds this exact order | | `expiresAt` | `string` | Yes | | ### create_order (Create an order) - MCP tool: `create_order` - REST: `POST /v1/orders` - Behaviour: mutating (creates an unpaid guest order) · not idempotent (call once) · live upstream call - Docs: https://p2g-mcp-sandbox.dotnethelp.workers.dev/docs/create-order Book the exact order a validate_order call priced, after the user said yes to that total. Returns one payment link for every shipment on the order: nothing ships until the user pays there. Call once; never repeat after an error without asking the user. #### Request fields | Field | Type | Required | Notes | | --- | --- | --- | --- | | `confirmationToken` | `string` | Yes | From validate_order | #### Example REST request ```bash curl -X POST "https://p2g-mcp-sandbox.dotnethelp.workers.dev/v1/orders" \ -H "content-type: application/json" \ -d '{ "confirmationToken": "v1." }' ``` #### Example MCP `tools/call` ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "create_order", "arguments": { "confirmationToken": "v1." } } } ``` #### Response fields | Field | Type | Required | Notes | | --- | --- | --- | --- | | `orderId` | `string` | Yes | | | `paymentUrl` | `string (uri)` | Yes | Give this to the user to pay | | `total` | `object` | Yes | | | `total.minor` | `integer` | Yes | Amount in minor units (pence, cents) | | `total.currency` | `string` | Yes | ISO 4217 code, e.g. GBP | | `total.display` | `string` | Yes | Formatted, e.g. £12.16 | | `service` | `string` | Yes | | | `date` | `string` | No | | | `next` | `string[]` | Yes | | ## Errors Reference Failures return `application/problem+json` (REST) or `isError: true` JSON `{error, issues}` (MCP). Each issue contains `code`, optional `field` path, `message`, and `fix`. | Group | Codes | When | Fix | | --- | --- | --- | --- | | input | `invalid-origin-country`, `invalid-destination-country`, `invalid-billing-country` | Unknown country code, or a territory the sender's country does not serve. | Use an ISO2 code, or the territory code get_quotes returned (e.g. GB-NIR). lookup_country finds codes. | | input | `missing-origin-country`, `missing-destination-country`, `missing-billing-country` | The country is empty. | Send the country code. | | input | `invalid-origin-postcode`, `invalid-destination-postcode`, `invalid-billing-postcode` | The postcode does not match the country's format, or does not exist. | Ask the user for their real postcode and check it with lookup_country's pattern. Never make one up. | | input | `missing-origin-postcode`, `missing-destination-postcode`, `missing-billing-postcode` | The postcode is empty. | Send the postcode. | | input | `invalid-origin-county`, `invalid-destination-county`, `invalid-billing-county` | The state, province or county is missing or not an allowed value (US, CA, AU and some couriers). | Send the code from get_booking_requirements' options that matches the postcode, e.g. NY or NSW. | | input | `missing-origin-contactname`, `missing-destination-contactname`, `missing-billing-contactname` | The contact name is empty. | Send the person's name, up to 50 characters. | | input | `missing-origin-property`, `missing-destination-property`, `missing-billing-property` | The house number or name is empty. | Send the house number or name. | | input | `missing-billing-address` | No billing address where one is needed. | Send a billing address. The sender's address is fine. | | input | `invalid-origin-shopid`, `invalid-destination-shopid`, `invalid-billing-shopid` | The shop id is not numeric. | Use the id from search_drop_shops. | | input | `missing-customer`, `missing-customer-email` | The account holder or their email is missing. | Send the sender's name and email. | | input | `missing-quote-requests`, `missing-shipment-parcels` | No shipment, or no parcels. | Send at least one parcel. | | input | `missing-service`, `missing-courier` | No service was chosen. | Send the serviceSlug from get_quotes for the same sender country. | | input | `conflicting-extras` | Two extras that cannot go together, e.g. two levels of protection. | Keep one of them. | | input | `invalid-parcel-weight` | The weight is zero, negative or missing. | A positive weight in kg (at least 0.001). | | input | `invalid-parcel-quantity` | More than 100 identical parcels. | Use a quantity from 1 to 100, or split the shipment. | | input | `invalid-parcel-value` | A declared value of zero or less. | Send a positive value in minor units, or leave it out (only the included cover then applies). | | input | `missing-parcel-contentsummary` | No description of what is in the parcel. | Add a short description of the contents. | | input | `missing-parcelcontent-description` | A customs line has no description. | Be specific, e.g. 'Cotton T-shirt', not 'clothes'. | | input | `invalid-parcelcontent-quantity`, `invalid-parcelcontent-value`, `invalid-parcelcontent-weight` | A customs line's quantity, value or weight is below the minimum. | Quantity is a whole number of 1 or more. Value (minor units) and weight (kg) are totals for the line. | | input | `invalid-parcelcontent-countryofmanufacture` | The country of manufacture is not valid. | Use an ISO2 code. | | input | `invalid-parcelcontent-tariffcode` | The tariff (HS) code is badly formed, or refused when pricing duty-paid (DDP) delivery. | Digits only, at the length get_booking_requirements gives (HS 6 to 10, CN 8, TARIC 10). Reasons: `:tariff-code-missing` (Ask the user for the item's HS code.); `:tariff-code-unrecognised` (The code is not known. Correct it from the item's description.); `:tariff-code-reclassified` (Duty was priced on a different code (shown in the message). The user must confirm it before you use it.); `:prohibited-item` (This item cannot be sent duty paid to that country. Remove it, or do not send it.); `:no-rate` (No duty rate is available. Use ddu, or another service.); `:excise-goods` (Alcohol, tobacco and similar cannot go duty paid. Do not book it.) | | input | `missing-customs-exportreason` | An international parcel with no export reason. | Choose one of the lane's export reasons from get_booking_requirements (sale, gift, documents ...). | | input | `missing-customs-ioss` | IOSS duty terms with no IOSS number. | Ask for the IOSS number (IM followed by 10 digits), or switch to ddu or ddp. | | service | `service-unavailable` | The service does not exist for this sender country, does not serve this lane, or could not be priced. | Get fresh quotes for this lane and choose a service from them. Reasons: `:unpriced` (The service could not price this shipment. Choose another service.); `:unpriced/courier-missing-postcode` (Add the postcode and quote again.); `:unpriced/courier-routing-failed` (The courier cannot route this address. Check it, or choose another service.) | | service | `service-ineligible` | A parcel is outside the service's limits, or the address is excluded. | Choose a service whose limits fit, split the parcel, or use smaller packaging. Reasons: `:weight/over-bounds` (Too heavy for this service. Choose a bigger service or split the parcel.); `:length/over-bounds` (Too long for this service. Choose another service.); `:length/required` (Send all three dimensions.); `:combined-dimensions/over-bounds` (Too big overall for this service. Choose another service.); `:length-plus-width/over-bounds` (Too big overall for this service. Choose another service.); `:length-plus-girth/over-bounds` (Too big overall for this service. Choose another service.); `:volumetricweight/over-bounds` (The box is too big for its weight. Use smaller packaging.); `:value/over-bounds` (The declared value is over this service's limit. Choose another service.); `:quantity/over-bounds` (Too many parcels for this service. Split the shipment.); `:banned-postcode` (This service cannot deliver to or collect from this postcode. Choose another.); `:whitelist-postcode` (This service cannot deliver to or collect from this postcode. Choose another.) | | service | `routing-unavailable` | The courier has no route for this address (remote areas, islands, some couriers). | Check the postcode and territory code (e.g. GB-HIGH), or choose another service. | | order | `quote-unavailable` | No current price matches: the parcel changed, or the service stopped quoting. | Get fresh quotes with the final parcel details and choose again. | | order | `extra-unavailable` | An extra was asked for that this service cannot add. | Use only extras listed for this service. Reasons: `:extra-not-offered` (Use only extras listed for this service in get_quotes.); `:collection-date-unavailable` (That paid collection date has passed its cut-off. Choose another date.); `:landed-cost-unavailable` (Duty-paid charges cannot be worked out right now. Try once more, or use ddu.) | | order | `collection-date-unavailable` | No bookable collection date is left. | Get fresh quotes and choose one of the new dates. | | order | `discountcode-unavailable` | A discount code cannot be applied. | Remove the discount code. | | order | `credential-unusable` | The customer's own courier account cannot be used. | Book without it. | | order | `invalid-requirement` | A field the service requires is missing or invalid. The field and message say which. | Re-read get_booking_requirements for this service and lane, and collect or correct that field. Reasons: `:ioss-value-over-cap` (IOSS only covers goods worth EUR 150 or less. Use ddp or ddu.); `:ioss-requires-sale` (IOSS only applies when the export reason is sale. Use ddu or ddp.); `:malformed-ioss-number` (The IOSS number must be IM followed by 10 digits.); `:invalid-vat-number` (Ask the user to check their VAT number.); `:eu-recipient-vat-not-registered` (The receiver's VAT number is not registered. Correct it, or send as an individual.); `:vat-check-unavailable` (The EU VAT check is down. Try again later; this is not the user's fault.); `:invalid-personal-tax-id` (Check the personal tax id against the format in get_booking_requirements.); `:invalid-business-tax-id` (Check the business tax id against the format in get_booking_requirements.); `:unknown-or-disabled-shop` (That shop does not exist or is closed. Search drop shops again.); `:wrong-network` (That shop belongs to another courier. Search drop shops with this service's provider.); `:lookup-failed` (The shop check could not run. Try again.) | | warning | `collection-date-substituted` | The requested collection date has passed or is not offered. The order will use the date shown. | Tell the user the new date and get their OK before create_order. | | warning | `country-subdivision-mismatch` | The postcode belongs to a territory, e.g. a BT postcode is Northern Ireland (GB-NIR). | get_quotes re-quotes with the territory code for you. Use the from/to codes it returned in later tools. | | warning | `invalid-discount-code` | The discount code does not exist. The call still worked, with no discount. | Tell the user the code did not apply. | | server | `invalid-input` | The tool input does not match its schema. `field` names the input. | Correct that input. The tool's input schema lists every field and limit. | | server | `confirmation-invalid` | The confirmation token is not valid, has expired (30 minutes) or was made by another server. | Call validate_order again, show the user the total, and use the new token. | | server | `price-changed` | The total changed between validate_order and create_order. Nothing was booked. | Show the user the new total and ask again. Then validate_order again and use the new token. | | server | `invalid-country` | Drop shops cannot be searched in that country. | Use an ISO2 code, such as GB. | | server | `place-not-found` | No place matches that postcode or town in a drop-shop search. | Check the postcode, or try a town name. | | server | `no-drop-shops` | Services from this sender country are collected, so there are no drop shops. | Book a collection service; no shop id is needed. | Unlisted codes: Show the user the message and ask them how to proceed.