Parcel booking
Menu
Powered byParcel2Go

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.

Read-only

MCP tool
get_booking_requirements
REST
GET /v1/services/{serviceSlug}/{from}/{to}/requirements
Behaviour
read-only · idempotent · live upstream call

Request

Get booking requirements: request fields
FieldTypeNotes
serviceSlug requiredstringslug from get_quotes
from requiredstringfrom code get_quotes returned
to requiredstringto code get_quotes returned
includeOptionalbooleanAlso list optional fields in full Default: false.

Examples

curl "https://parcel-mcp.com/v1/services/dpd-classic/GB/DE/requirements"

As an MCP tool call over POST /mcp:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_booking_requirements",
    "arguments": {
      "serviceSlug": "dpd-classic",
      "from": "GB",
      "to": "DE"
    }
  }
}

Response

Get booking requirements: response fields
FieldTypeNotes
service requiredstring
from requiredstring
to requiredstring
international requiredbooleanTrue when a customs declaration is needed
address requiredstringAddress fields both sides need
parcels requiredstringFields every parcel needs
fields requiredobject[]Other required or conditionally required fields
fields[].paths requiredstring[]Where the value goes in the order input; all share these rules
fields[].required requiredtrue | false | stringtrue, false, or "if <condition>"
fields[].type"integer" | "decimal" | "boolean"
fields[].optionsstring[]Allowed values
fields[].maxLengthinteger
fields[].minLengthinteger
fields[].formatstring
fields[].notestring
optionalstring[]Optional field paths (includeOptional for details)
shopsobjectDrop-shop ids this service takes: from = sender's drop-off shop, to = receiver's pick-up shop
shops.fromobject
shops.from.provider requiredstringPass to search_drop_shops as provider
shops.from.required requiredboolean
shops.toobject
shops.to.provider requiredstringPass to search_drop_shops as provider
shops.to.required requiredboolean
customsobject
customs.dutyTerms requiredstring[]Allowed customs.dutyTerms
customs.ddpAdminFeeobject
customs.ddpAdminFee.minor requiredintegerAmount in minor units (pence, cents)
customs.ddpAdminFee.currency requiredstringISO 4217 code, e.g. GBP
customs.ddpAdminFee.display requiredstringFormatted, e.g. £12.16
customs.giftAllowanceobjectGifts up to this value are usually free of duty
customs.giftAllowance.minor requiredintegerAmount in minor units (pence, cents)
customs.giftAllowance.currency requiredstringISO 4217 code, e.g. GBP
customs.giftAllowance.display requiredstringFormatted, e.g. £12.16
customs.tariffCodestring
notesstring[]

Errors

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