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.
Tell the sender how they’ll get the label
Request
| Field | Type | Notes |
|---|---|---|
confirmationToken required | string | From validate_order |
Examples
curl -X POST "https://sandbox.parcel-mcp.com/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
| Field | Type | Notes |
|---|---|---|
orderId required | string | |
paymentUrl required | string (uri) | Give this to the user to pay |
total required | object | |
total.minor required | integer | Amount in minor units (pence, cents) |
total.currency required | string | ISO 4217 code, e.g. GBP |
total.display required | string | Formatted, e.g. £12.16 |
service required | string | |
date | string | |
next required | string[] |
Errors
Errors are problem JSON. Each issue names the field to fix and how to fix it. See every error code and its fix.