Parcel booking Sandbox
Menu
Powered byParcel2Go
Sandbox: test orders only. Nothing is shipped and payments are fake. Go to the live service.

Validate an 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.

Select extras and confirm their prices

Read-only

MCP tool
validate_order
REST
POST /v1/orders/validate
Behaviour
read-only · idempotent · live upstream call

Request

Validate an order: request fields
FieldTypeNotes
serviceSlug requiredstringslug from get_quotes
to requiredobject
to.name requiredstringContact name
to.organisationstring
to.property requiredstringHouse number or name
to.street requiredstring
to.localitystring
to.town requiredstring
to.countystringState or province code where required (e.g. NY)
to.postcode requiredstring
to.country requiredstringCountry code get_quotes returned (may be a territory such as GB-NIR)
to.emailstring
to.phonestring
to.shopIdstringDrop shop id from search_drop_shops
to.companyStatus"individual" | "business-registered" | "business-not-registered"
to.companyTaxNumberstringVAT or company tax number
to.eoristring
to.taxIdstringPersonal tax id
to.residentialbooleanfalse for a business address (cheaper on some sites)
parcels requiredobject[]
parcels[].weightKg requirednumberMax 1000.
parcels[].lengthCm requirednumberMax 1000.
parcels[].widthCm requirednumberMax 1000.
parcels[].heightCm requirednumberMax 1000.
parcels[].valueMinor requiredintegerDeclared value in minor units of the sender's currency
parcels[].description requiredstringShort summary of the contents
parcels[].quantityintegerDefault: 1. Min 1. Max 100.
parcels[].contentsobject[]Customs lines: international only
parcels[].contents[].quantity requiredintegerMin 1. Max 1000.
parcels[].contents[].description requiredstringBe specific, e.g. 'Paperback book'
parcels[].contents[].valueMinor requiredintegerLine total in minor units
parcels[].contents[].weightKgnumberLine total
parcels[].contents[].countryOfManufacturestringISO2
parcels[].contents[].tariffCodestringDigits only
parcels[].contents[].merchantProductIdstringSeller's SKU
parcels[].contents[].manufacturerProductIdstringModel or part number
parcels[].contents[].standardProductIdstringBarcode (GTIN/EAN/UPC/ISBN)
collectionDatestring (date)
extrasstring[]Extra keys from get_quotes
customsobject
customs.exportReasonstring
customs.dutyTerms"ddu" | "ddp" | "ioss"
customs.iossstringIM + 10 digits
from requiredobject
from.name requiredstringContact name
from.organisationstring
from.property requiredstringHouse number or name
from.street requiredstring
from.localitystring
from.town requiredstring
from.countystringState or province code where required (e.g. NY)
from.postcode requiredstring
from.country requiredstringCountry code get_quotes returned (may be a territory such as GB-NIR)
from.emailstring
from.phonestring
from.shopIdstringDrop shop id from search_drop_shops
from.companyStatus"individual" | "business-registered" | "business-not-registered"
from.companyTaxNumberstringVAT or company tax number
from.eoristring
from.taxIdstringPersonal tax id
from.residentialbooleanfalse for a business address (cheaper on some sites)
moreItemsobject[]More shipments on this order, paid together with one link. Each needs its own quote and requirements
moreItems[].serviceSlug requiredstringslug from get_quotes
moreItems[].to requiredobject
moreItems[].to.name requiredstringContact name
moreItems[].to.organisationstring
moreItems[].to.property requiredstringHouse number or name
moreItems[].to.street requiredstring
moreItems[].to.localitystring
moreItems[].to.town requiredstring
moreItems[].to.countystringState or province code where required (e.g. NY)
moreItems[].to.postcode requiredstring
moreItems[].to.country requiredstringCountry code get_quotes returned (may be a territory such as GB-NIR)
moreItems[].to.emailstring
moreItems[].to.phonestring
moreItems[].to.shopIdstringDrop shop id from search_drop_shops
moreItems[].to.companyStatus"individual" | "business-registered" | "business-not-registered"
moreItems[].to.companyTaxNumberstringVAT or company tax number
moreItems[].to.eoristring
moreItems[].to.taxIdstringPersonal tax id
moreItems[].to.residentialbooleanfalse for a business address (cheaper on some sites)
moreItems[].parcels requiredobject[]
moreItems[].parcels[].weightKg requirednumberMax 1000.
moreItems[].parcels[].lengthCm requirednumberMax 1000.
moreItems[].parcels[].widthCm requirednumberMax 1000.
moreItems[].parcels[].heightCm requirednumberMax 1000.
moreItems[].parcels[].valueMinor requiredintegerDeclared value in minor units of the sender's currency
moreItems[].parcels[].description requiredstringShort summary of the contents
moreItems[].parcels[].quantityintegerDefault: 1. Min 1. Max 100.
moreItems[].parcels[].contentsobject[]Customs lines: international only
moreItems[].parcels[].contents[].quantity requiredintegerMin 1. Max 1000.
moreItems[].parcels[].contents[].description requiredstringBe specific, e.g. 'Paperback book'
moreItems[].parcels[].contents[].valueMinor requiredintegerLine total in minor units
moreItems[].parcels[].contents[].weightKgnumberLine total
moreItems[].parcels[].contents[].countryOfManufacturestringISO2
moreItems[].parcels[].contents[].tariffCodestringDigits only
moreItems[].parcels[].contents[].merchantProductIdstringSeller's SKU
moreItems[].parcels[].contents[].manufacturerProductIdstringModel or part number
moreItems[].parcels[].contents[].standardProductIdstringBarcode (GTIN/EAN/UPC/ISBN)
moreItems[].collectionDatestring (date)
moreItems[].extrasstring[]Extra keys from get_quotes
moreItems[].customsobject
moreItems[].customs.exportReasonstring
moreItems[].customs.dutyTerms"ddu" | "ddp" | "ioss"
moreItems[].customs.iossstringIM + 10 digits
moreItems[].fromobject
moreItems[].from.name requiredstringContact name
moreItems[].from.organisationstring
moreItems[].from.property requiredstringHouse number or name
moreItems[].from.street requiredstring
moreItems[].from.localitystring
moreItems[].from.town requiredstring
moreItems[].from.countystringState or province code where required (e.g. NY)
moreItems[].from.postcode requiredstring
moreItems[].from.country requiredstringCountry code get_quotes returned (may be a territory such as GB-NIR)
moreItems[].from.emailstring
moreItems[].from.phonestring
moreItems[].from.shopIdstringDrop shop id from search_drop_shops
moreItems[].from.companyStatus"individual" | "business-registered" | "business-not-registered"
moreItems[].from.companyTaxNumberstringVAT or company tax number
moreItems[].from.eoristring
moreItems[].from.taxIdstringPersonal tax id
moreItems[].from.residentialbooleanfalse for a business address (cheaper on some sites)
customerobjectDefaults to the sender's name and email
customer.forename requiredstring
customer.surname requiredstring
customer.email requiredstring

Examples

curl -X POST "https://sandbox.parcel-mcp.com/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"
    }
  ]
}'

As an MCP tool call over POST /mcp:

{
  "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

Validate an order: response fields
FieldTypeNotes
service requiredobject
service.slug requiredstring
service.name requiredstring
service.courier requiredstring
from requiredstring
to requiredstring
datestringCollection or drop-off date that will be booked
deliverystringExpected delivery date or range
total requiredobjectFinal price of the whole order. Show it, the breakdown and every warning before booking
total.minor requiredintegerAmount in minor units (pence, cents)
total.currency requiredstringISO 4217 code, e.g. GBP
total.display requiredstringFormatted, e.g. £12.16
breakdown requiredobject[]Incl. tax, grouped by charge
breakdown[].name requiredstring
breakdown[].amount requiredobject
breakdown[].amount.minor requiredintegerAmount in minor units (pence, cents)
breakdown[].amount.currency requiredstringISO 4217 code, e.g. GBP
breakdown[].amount.display requiredstringFormatted, e.g. £12.16
itemsobject[]Every shipment, in order, when the order has more than one
items[].service requiredobject
items[].service.slug requiredstring
items[].service.name requiredstring
items[].service.courier requiredstring
items[].from requiredstring
items[].to requiredstring
items[].datestringCollection or drop-off date that will be booked
items[].deliverystringExpected delivery date or range
warningsstring[]
confirmationToken requiredstringPass to create_order before expiresAt. It holds this exact order
expiresAt requiredstring

Errors

Errors are problem JSON. Each issue names the field to fix and how to fix it. See every error code and its fix.