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

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

Creates an order

MCP tool
create_order
REST
POST /v1/orders
Behaviour
mutating (creates an unpaid guest order) · not idempotent (call once) · live upstream call

Request

Create an order: request fields
FieldTypeNotes
confirmationToken requiredstringFrom validate_order

Examples

curl -X POST "https://p2g-mcp-sandbox.dotnethelp.workers.dev/v1/orders" \
  -H "content-type: application/json" \
  -d '{
  "confirmationToken": "v1.<from validate_order>"
}'

As an MCP tool call over POST /mcp:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_order",
    "arguments": {
      "confirmationToken": "v1.<from validate_order>"
    }
  }
}

Response

Create an order: response fields
FieldTypeNotes
orderId requiredstring
paymentUrl requiredstring (uri)Give this to the user to pay
total requiredobject
total.minor requiredintegerAmount in minor units (pence, cents)
total.currency requiredstringISO 4217 code, e.g. GBP
total.display requiredstringFormatted, e.g. £12.16
service requiredstring
datestring
next 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.