{"openapi":"3.1.0","info":{"title":"Parcel booking API","version":"0.2.0","description":"Quote and book parcel shipments. Every booking ends with a payment link. The same operations are available as MCP tools at /mcp."},"servers":[{"url":"https://sandbox.parcel-mcp.com"}],"externalDocs":{"description":"Documentation, booking guide, and error reference","url":"https://sandbox.parcel-mcp.com/docs/"},"tags":[{"name":"Reference","description":"Countries and lookups"},{"name":"Quoting","description":"Prices, services, requirements and drop shops"},{"name":"Booking","description":"Validate and create orders"}],"components":{"schemas":{"Problem":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]},"Place":{"type":"object","properties":{"country":{"type":"string","minLength":2,"maxLength":8,"description":"ISO2 code, e.g. GB or US. Territories such as Northern Ireland are detected from the postcode"},"postcode":{"type":"string","maxLength":16,"description":"Strongly recommended: some lanes need it"}},"required":["country"]},"Parcel":{"type":"object","properties":{"weightKg":{"type":"number","exclusiveMinimum":0,"maximum":1000,"description":"kg (1 lb = 0.4536 kg)"},"lengthCm":{"type":"number","exclusiveMinimum":0,"maximum":1000,"description":"cm (1 in = 2.54 cm)"},"widthCm":{"type":"number","exclusiveMinimum":0,"maximum":1000},"heightCm":{"type":"number","exclusiveMinimum":0,"maximum":1000},"valueMinor":{"type":"integer","exclusiveMinimum":0,"description":"Declared value in minor units of the sender's currency (pence, cents)"},"quantity":{"type":"integer","minimum":1,"maximum":100,"default":1,"description":"Identical parcels"}},"required":["weightKg"]},"OrderParcel":{"type":"object","properties":{"weightKg":{"type":"number","exclusiveMinimum":0,"maximum":1000},"lengthCm":{"type":"number","exclusiveMinimum":0,"maximum":1000},"widthCm":{"type":"number","exclusiveMinimum":0,"maximum":1000},"heightCm":{"type":"number","exclusiveMinimum":0,"maximum":1000},"valueMinor":{"type":"integer","exclusiveMinimum":0,"description":"Declared value in minor units of the sender's currency"},"description":{"type":"string","minLength":1,"maxLength":256,"description":"Short summary of the contents"},"quantity":{"type":"integer","minimum":1,"maximum":100,"default":1},"contents":{"type":"array","items":{"type":"object","properties":{"quantity":{"type":"integer","minimum":1,"maximum":1000},"description":{"type":"string","minLength":1,"maxLength":256,"description":"Be specific, e.g. 'Paperback book'"},"valueMinor":{"type":"integer","exclusiveMinimum":0,"description":"Line total in minor units"},"weightKg":{"type":"number","exclusiveMinimum":0,"description":"Line total"},"countryOfManufacture":{"type":"string","maxLength":2,"description":"ISO2"},"tariffCode":{"type":"string","maxLength":14,"description":"Digits only"},"merchantProductId":{"type":"string","maxLength":64,"description":"Seller's SKU"},"manufacturerProductId":{"type":"string","maxLength":32,"description":"Model or part number"},"standardProductId":{"type":"string","maxLength":32,"description":"Barcode (GTIN/EAN/UPC/ISBN)"}},"required":["quantity","description","valueMinor"]},"maxItems":50,"description":"Customs lines: international only"}},"required":["weightKg","lengthCm","widthCm","heightCm","valueMinor","description"]}},"parameters":{}},"paths":{"/v1/countries":{"get":{"operationId":"lookup_country","tags":["Reference"],"summary":"Look up a country","description":"Find a country's code and postcode rules by name or code. Up to 5 matches. Only needed when unsure of a code.","parameters":[{"schema":{"type":"string","minLength":2,"maxLength":60,"description":"Country name or ISO code, e.g. 'germany', 'DE', 'DEU'"},"required":true,"description":"Country name or ISO code, e.g. 'germany', 'DE', 'DEU'","name":"query","in":"query"},{"schema":{"type":"string","minLength":2,"maxLength":8,"default":"GB","description":"Sender's country: decides which destinations are open (sendTo)"},"required":false,"description":"Sender's country: decides which destinations are open (sendTo)","name":"from","in":"query"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"countries":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Code to use in other tools, e.g. GB, DE, GB-NIR"},"iso3":{"type":"string"},"name":{"type":"string"},"sendFrom":{"type":"boolean","description":"Parcels can be sent from here"},"sendTo":{"type":"boolean","description":"Parcels can be sent here"},"postcode":{"type":"string","enum":["required","recommended","optional"],"description":"recommended: quotes work without one, but the postcode sets the price and territory"},"postcodePattern":{"type":"string","description":"Regex the postcode must match"},"partOf":{"type":"string","description":"The country this territory belongs to, e.g. GB for GB-NIR"},"regions":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"postcodes":{"type":"string","description":"Postcode prefixes that belong to it"}},"required":["code","postcodes"]},"description":"Territories with their own code, chosen automatically from the postcode"}},"required":["code","iso3","name","sendFrom","sendTo","postcode"]}},"totalMatches":{"type":"integer"}},"required":["countries","totalMatches"]}}}},"400":{"description":"The input is not valid","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}},"422":{"description":"The booking service rejected the request","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}},"429":{"description":"Too many requests","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}},"502":{"description":"The booking service is unavailable","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}}}}},"/v1/quotes":{"post":{"operationId":"get_quotes","tags":["Quoting"],"summary":"Get quotes","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"from":{"$ref":"#/components/schemas/Place"},"to":{"$ref":"#/components/schemas/Place"},"parcels":{"type":"array","items":{"$ref":"#/components/schemas/Parcel"},"minItems":1,"maxItems":20,"description":"Give dimensions: without them the price can change"},"handover":{"type":"string","enum":["any","collection","dropoff"],"default":"any"},"delivery":{"type":"string","enum":["any","door","shop_or_locker"],"default":"any"},"includeSameDay":{"type":"boolean","default":false,"description":"Same-day couriers: GB only, both postcodes needed, priced per vehicle (often £20 to £1,000+). Off by default"},"dutyTerms":{"type":"string","enum":["ddu","ddp","ioss"],"description":"International only: price the matching customs fees"},"sort":{"type":"string","enum":["price","speed"],"default":"price"},"limit":{"type":"integer","minimum":1,"maximum":15,"default":5},"serviceSlug":{"type":"string","description":"Quote one service in detail: its bookable dates and extras"},"moreShipments":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"maxLength":40,"description":"Your label, echoed back"},"from":{"$ref":"#/components/schemas/Place"},"to":{"$ref":"#/components/schemas/Place"},"parcels":{"type":"array","items":{"$ref":"#/components/schemas/Parcel"},"minItems":1,"maxItems":20},"dutyTerms":{"type":"string","enum":["ddu","ddp","ioss"]}},"required":["from","to","parcels"]},"maxItems":9,"description":"Quote more shipments in one call. Filters, sort and limit apply to each"}},"required":["from","to","parcels"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["message"],"description":"With moreShipments only: this first shipment could not be quoted"},"from":{"type":"string","description":"Sender country code used. Use it in later tools: it may be a territory, e.g. GB-NIR"},"to":{"type":"string","description":"Receiver country code used. Use it in later tools: it may be a territory, e.g. ES-ES-CN"},"totalServices":{"type":"integer","description":"Services matching the filters, before the limit"},"services":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string","description":"Pass this to the next tools as serviceSlug"},"name":{"type":"string"},"courier":{"type":"string"},"price":{"type":"object","properties":{"minor":{"type":"integer","description":"Amount in minor units (pence, cents)"},"currency":{"type":"string","description":"ISO 4217 code, e.g. GBP"},"display":{"type":"string","description":"Formatted, e.g. £12.16"}},"required":["minor","currency","display"],"description":"Incl. VAT and any automatic customs fees"},"handover":{"type":"string","enum":["collection","dropoff"],"description":"Courier collects, or the sender drops the parcel off"},"delivery":{"type":"string","enum":["door","shop_or_locker"]},"deliveryDays":{"type":"string","description":"Estimated working days, e.g. 1-3"},"earliest":{"type":"string","description":"Earliest collection or drop-off date still bookable"},"dropOffProvider":{"type":"string","description":"Pass to search_drop_shops"},"flags":{"type":"array","items":{"type":"string","enum":["needs_printer","print_in_store","same_day","no_ddu"]},"description":"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)"},"includesFees":{"type":"array","items":{"type":"string"},"description":"Automatic fees already in the price"}},"required":["slug","name","courier","price","handover","delivery","deliveryDays"]}},"service":{"type":"object","properties":{"slug":{"type":"string","description":"Pass this to the next tools as serviceSlug"},"name":{"type":"string"},"courier":{"type":"string"},"price":{"type":"object","properties":{"minor":{"type":"integer","description":"Amount in minor units (pence, cents)"},"currency":{"type":"string","description":"ISO 4217 code, e.g. GBP"},"display":{"type":"string","description":"Formatted, e.g. £12.16"}},"required":["minor","currency","display"],"description":"Incl. VAT and any automatic customs fees"},"handover":{"type":"string","enum":["collection","dropoff"],"description":"Courier collects, or the sender drops the parcel off"},"delivery":{"type":"string","enum":["door","shop_or_locker"]},"deliveryDays":{"type":"string","description":"Estimated working days, e.g. 1-3"},"earliest":{"type":"string","description":"Earliest collection or drop-off date still bookable"},"dropOffProvider":{"type":"string","description":"Pass to search_drop_shops"},"flags":{"type":"array","items":{"type":"string","enum":["needs_printer","print_in_store","same_day","no_ddu"]},"description":"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)"},"includesFees":{"type":"array","items":{"type":"string"},"description":"Automatic fees already in the price"},"dates":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"window":{"type":"string","description":"Collection time window"},"delivery":{"type":"string","description":"Expected delivery date or range"},"extra":{"type":"object","properties":{"key":{"type":"string"},"price":{"type":"object","properties":{"minor":{"type":"integer","description":"Amount in minor units (pence, cents)"},"currency":{"type":"string","description":"ISO 4217 code, e.g. GBP"},"display":{"type":"string","description":"Formatted, e.g. £12.16"}},"required":["minor","currency","display"]}},"required":["key","price"],"description":"Extra added when this date is chosen, if applicable"}},"required":["date"]},"description":"Bookable dates. Drop-off services have one: the earliest hand-in day"},"extras":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"price":{"type":"object","properties":{"minor":{"type":"integer","description":"Amount in minor units (pence, cents)"},"currency":{"type":"string","description":"ISO 4217 code, e.g. GBP"},"display":{"type":"string","description":"Formatted, e.g. £12.16"}},"required":["minor","currency","display"]},"pricePending":{"type":"boolean","description":"Priced only by validate_order"}},"required":["key","name","price"]},"description":"Optional extras. Send chosen keys in the order"},"maxWeightKg":{"type":"number"},"protection":{"type":"object","properties":{"included":{"type":"object","properties":{"minor":{"type":"integer","description":"Amount in minor units (pence, cents)"},"currency":{"type":"string","description":"ISO 4217 code, e.g. GBP"},"display":{"type":"string","description":"Formatted, e.g. £12.16"}},"required":["minor","currency","display"]},"max":{"type":"object","properties":{"minor":{"type":"integer","description":"Amount in minor units (pence, cents)"},"currency":{"type":"string","description":"ISO 4217 code, e.g. GBP"},"display":{"type":"string","description":"Formatted, e.g. £12.16"}},"required":["minor","currency","display"]}},"required":["included","max"],"description":"included: cover without a protection extra, up to the declared value (0 = none). max: the most a protection extra covers"}},"required":["slug","name","courier","price","handover","delivery","deliveryDays","dates","extras"],"description":"With serviceSlug: its dates, extras and cover. services holds its row"},"notes":{"type":"array","items":{"type":"string"}},"moreShipments":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"totalServices":{"type":"integer"},"services":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string","description":"Pass this to the next tools as serviceSlug"},"name":{"type":"string"},"courier":{"type":"string"},"price":{"type":"object","properties":{"minor":{"type":"integer","description":"Amount in minor units (pence, cents)"},"currency":{"type":"string","description":"ISO 4217 code, e.g. GBP"},"display":{"type":"string","description":"Formatted, e.g. £12.16"}},"required":["minor","currency","display"],"description":"Incl. VAT and any automatic customs fees"},"handover":{"type":"string","enum":["collection","dropoff"],"description":"Courier collects, or the sender drops the parcel off"},"delivery":{"type":"string","enum":["door","shop_or_locker"]},"deliveryDays":{"type":"string","description":"Estimated working days, e.g. 1-3"},"earliest":{"type":"string","description":"Earliest collection or drop-off date still bookable"},"dropOffProvider":{"type":"string","description":"Pass to search_drop_shops"},"flags":{"type":"array","items":{"type":"string","enum":["needs_printer","print_in_store","same_day","no_ddu"]},"description":"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)"},"includesFees":{"type":"array","items":{"type":"string"},"description":"Automatic fees already in the price"}},"required":["slug","name","courier","price","handover","delivery","deliveryDays"]}},"notes":{"type":"array","items":{"type":"string"}},"error":{"type":"object","properties":{"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["message"],"description":"This shipment could not be quoted; the others still were"}},"required":["ref","from","to","totalServices","services"]},"description":"One result per moreShipments entry, in order"}},"required":["from","to","totalServices","services"]}}}},"400":{"description":"The input is not valid","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}},"422":{"description":"The booking service rejected the request","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}},"429":{"description":"Too many requests","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}},"502":{"description":"The booking service is unavailable","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}}}}},"/v1/services/{serviceSlug}/{from}/{to}/delivery-estimate":{"get":{"operationId":"get_delivery_estimate","tags":["Quoting"],"summary":"Get a delivery estimate","description":"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.","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":100,"description":"slug from get_quotes"},"required":true,"description":"slug from get_quotes","name":"serviceSlug","in":"path"},{"schema":{"type":"string","pattern":"^[A-Z]{2,3}(-[A-Z0-9]+)*$","description":"from code get_quotes returned"},"required":true,"description":"from code get_quotes returned","name":"from","in":"path"},{"schema":{"type":"string","pattern":"^[A-Z]{2,3}(-[A-Z0-9]+)*$","description":"to code get_quotes returned"},"required":true,"description":"to code get_quotes returned","name":"to","in":"path"},{"schema":{"type":"string","format":"date","description":"Collection or drop-off date, YYYY-MM-DD"},"required":true,"description":"Collection or drop-off date, YYYY-MM-DD","name":"date","in":"query"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","description":"Collection or drop-off date"},"window":{"type":"string","description":"Collection time window"},"delivery":{"type":"string","description":"Estimated delivery date or range"}},"required":["date","delivery"]}}}},"400":{"description":"The input is not valid","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}},"422":{"description":"The booking service rejected the request","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}},"429":{"description":"Too many requests","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}},"502":{"description":"The booking service is unavailable","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}}}}},"/v1/services/{serviceSlug}/{from}/{to}/requirements":{"get":{"operationId":"get_booking_requirements","tags":["Booking"],"summary":"Get booking requirements","description":"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.","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":100,"description":"slug from get_quotes"},"required":true,"description":"slug from get_quotes","name":"serviceSlug","in":"path"},{"schema":{"type":"string","pattern":"^[A-Z]{2,3}(-[A-Z0-9]+)*$","description":"from code get_quotes returned"},"required":true,"description":"from code get_quotes returned","name":"from","in":"path"},{"schema":{"type":"string","pattern":"^[A-Z]{2,3}(-[A-Z0-9]+)*$","description":"to code get_quotes returned"},"required":true,"description":"to code get_quotes returned","name":"to","in":"path"},{"schema":{"type":"boolean","default":false,"description":"Also list optional fields in full"},"required":false,"description":"Also list optional fields in full","name":"includeOptional","in":"query"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"service":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"international":{"type":"boolean","description":"True when a customs declaration is needed"},"address":{"type":"string","description":"Address fields both sides need"},"parcels":{"type":"string","description":"Fields every parcel needs"},"fields":{"type":"array","items":{"type":"object","properties":{"paths":{"type":"array","items":{"type":"string"},"description":"Where the value goes in the order input; all share these rules"},"required":{"anyOf":[{"type":"boolean","enum":[true]},{"type":"boolean","enum":[false]},{"type":"string"}],"description":"true, false, or \"if <condition>\""},"type":{"type":"string","enum":["integer","decimal","boolean"]},"options":{"type":"array","items":{"type":"string"},"description":"Allowed values"},"maxLength":{"type":"integer"},"minLength":{"type":"integer"},"format":{"type":"string"},"note":{"type":"string"}},"required":["paths","required"]},"description":"Other required or conditionally required fields"},"optional":{"type":"array","items":{"type":"string"},"description":"Optional field paths (includeOptional for details)"},"shops":{"type":"object","properties":{"from":{"type":"object","properties":{"provider":{"type":"string","description":"Pass to search_drop_shops as provider"},"required":{"type":"boolean"}},"required":["provider","required"]},"to":{"type":"object","properties":{"provider":{"type":"string","description":"Pass to search_drop_shops as provider"},"required":{"type":"boolean"}},"required":["provider","required"]}},"description":"Drop-shop ids this service takes: from = sender's drop-off shop, to = receiver's pick-up shop"},"customs":{"type":"object","properties":{"dutyTerms":{"type":"array","items":{"type":"string"},"description":"Allowed customs.dutyTerms"},"ddpAdminFee":{"type":"object","properties":{"minor":{"type":"integer","description":"Amount in minor units (pence, cents)"},"currency":{"type":"string","description":"ISO 4217 code, e.g. GBP"},"display":{"type":"string","description":"Formatted, e.g. £12.16"}},"required":["minor","currency","display"]},"giftAllowance":{"type":"object","properties":{"minor":{"type":"integer","description":"Amount in minor units (pence, cents)"},"currency":{"type":"string","description":"ISO 4217 code, e.g. GBP"},"display":{"type":"string","description":"Formatted, e.g. £12.16"}},"required":["minor","currency","display"],"description":"Gifts up to this value are usually free of duty"},"tariffCode":{"type":"string"}},"required":["dutyTerms"]},"notes":{"type":"array","items":{"type":"string"}}},"required":["service","from","to","international","address","parcels","fields"]}}}},"400":{"description":"The input is not valid","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}},"422":{"description":"The booking service rejected the request","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}},"429":{"description":"Too many requests","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}},"502":{"description":"The booking service is unavailable","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}}}}},"/v1/drop-shops":{"get":{"operationId":"search_drop_shops","tags":["Booking"],"summary":"Search drop shops","description":"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.","parameters":[{"schema":{"type":"string","pattern":"^[A-Z0-9]{2,20}$","description":"Network: get_quotes dropOffProvider or get_booking_requirements shops.*.provider"},"required":true,"description":"Network: get_quotes dropOffProvider or get_booking_requirements shops.*.provider","name":"provider","in":"query"},{"schema":{"type":"string","default":"GB","description":"Country the shop is in, e.g. GB or GB-NIR"},"required":false,"description":"Country the shop is in, e.g. GB or GB-NIR","name":"country","in":"query"},{"schema":{"type":"string","description":"Shipment's sending country, if not the shop's country (receiver's shop abroad)"},"required":false,"description":"Shipment's sending country, if not the shop's country (receiver's shop abroad)","name":"from","in":"query"},{"schema":{"type":"string","minLength":2,"maxLength":60,"description":"Postcode or town"},"required":true,"description":"Postcode or town","name":"near","in":"query"},{"schema":{"type":"string","enum":["dropoff","delivery"],"description":"dropoff: sender hands the parcel in; delivery: receiver collects"},"required":true,"description":"dropoff: sender hands the parcel in; delivery: receiver collects","name":"purpose","in":"query"},{"schema":{"type":"boolean","default":false,"description":"Only shops that can print the label"},"required":false,"description":"Only shops that can print the label","name":"printInStore","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":20,"default":5},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"shops":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Use as from.shopId (drop-off) or to.shopId (delivery)"},"name":{"type":"string"},"address":{"type":"string"},"distanceKm":{"type":"number"},"locker":{"type":"boolean","description":"A self-service locker: size limits apply, the receiver needs a mobile"},"printInStore":{"type":"boolean","description":"Can print the label"},"hours":{"type":"string","description":"Opening hours; days not listed are closed"}},"required":["id","name","address","distanceKm"]}},"totalFound":{"type":"integer"},"notes":{"type":"array","items":{"type":"string"}}},"required":["shops","totalFound"]}}}},"400":{"description":"The input is not valid","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}},"422":{"description":"The booking service rejected the request","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}},"429":{"description":"Too many requests","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}},"502":{"description":"The booking service is unavailable","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}}}}},"/v1/orders/validate":{"post":{"operationId":"validate_order","tags":["Booking"],"summary":"Validate an order","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"serviceSlug":{"type":"string","minLength":1,"maxLength":100,"description":"slug from get_quotes"},"to":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":50,"description":"Contact name"},"organisation":{"type":"string","maxLength":50},"property":{"type":"string","minLength":1,"maxLength":50,"description":"House number or name"},"street":{"type":"string","minLength":1,"maxLength":50},"locality":{"type":"string","maxLength":50},"town":{"type":"string","minLength":1,"maxLength":50},"county":{"type":"string","maxLength":50,"description":"State or province code where required (e.g. NY)"},"postcode":{"type":"string","minLength":1,"maxLength":16},"country":{"type":"string","minLength":2,"maxLength":12,"description":"Country code get_quotes returned (may be a territory such as GB-NIR)"},"email":{"type":"string","maxLength":256},"phone":{"type":"string","maxLength":24},"shopId":{"type":"string","maxLength":20,"description":"Drop shop id from search_drop_shops"},"companyStatus":{"type":"string","enum":["individual","business-registered","business-not-registered"]},"companyTaxNumber":{"type":"string","maxLength":32,"description":"VAT or company tax number"},"eori":{"type":"string","maxLength":20},"taxId":{"type":"string","maxLength":35,"description":"Personal tax id"},"residential":{"type":"boolean","description":"false for a business address (cheaper on some sites)"}},"required":["name","property","street","town","postcode","country"],"description":"Receiver"},"parcels":{"type":"array","items":{"$ref":"#/components/schemas/OrderParcel"},"minItems":1,"maxItems":20},"collectionDate":{"type":"string","format":"date","description":"YYYY-MM-DD from get_quotes dates; drop-off ignores it"},"extras":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"maxItems":10,"description":"Extra keys from get_quotes"},"customs":{"type":"object","properties":{"exportReason":{"type":"string","maxLength":30},"dutyTerms":{"type":"string","enum":["ddu","ddp","ioss"]},"ioss":{"type":"string","maxLength":14,"description":"IM + 10 digits"}},"description":"International only"},"from":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":50,"description":"Contact name"},"organisation":{"type":"string","maxLength":50},"property":{"type":"string","minLength":1,"maxLength":50,"description":"House number or name"},"street":{"type":"string","minLength":1,"maxLength":50},"locality":{"type":"string","maxLength":50},"town":{"type":"string","minLength":1,"maxLength":50},"county":{"type":"string","maxLength":50,"description":"State or province code where required (e.g. NY)"},"postcode":{"type":"string","minLength":1,"maxLength":16},"country":{"type":"string","minLength":2,"maxLength":12,"description":"Country code get_quotes returned (may be a territory such as GB-NIR)"},"email":{"type":"string","maxLength":256},"phone":{"type":"string","maxLength":24},"shopId":{"type":"string","maxLength":20,"description":"Drop shop id from search_drop_shops"},"companyStatus":{"type":"string","enum":["individual","business-registered","business-not-registered"]},"companyTaxNumber":{"type":"string","maxLength":32,"description":"VAT or company tax number"},"eori":{"type":"string","maxLength":20},"taxId":{"type":"string","maxLength":35,"description":"Personal tax id"},"residential":{"type":"boolean","description":"false for a business address (cheaper on some sites)"}},"required":["name","property","street","town","postcode","country"],"description":"Sender. Also the billing address"},"moreItems":{"type":"array","items":{"type":"object","properties":{"serviceSlug":{"type":"string","minLength":1,"maxLength":100,"description":"slug from get_quotes"},"to":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":50,"description":"Contact name"},"organisation":{"type":"string","maxLength":50},"property":{"type":"string","minLength":1,"maxLength":50,"description":"House number or name"},"street":{"type":"string","minLength":1,"maxLength":50},"locality":{"type":"string","maxLength":50},"town":{"type":"string","minLength":1,"maxLength":50},"county":{"type":"string","maxLength":50,"description":"State or province code where required (e.g. NY)"},"postcode":{"type":"string","minLength":1,"maxLength":16},"country":{"type":"string","minLength":2,"maxLength":12,"description":"Country code get_quotes returned (may be a territory such as GB-NIR)"},"email":{"type":"string","maxLength":256},"phone":{"type":"string","maxLength":24},"shopId":{"type":"string","maxLength":20,"description":"Drop shop id from search_drop_shops"},"companyStatus":{"type":"string","enum":["individual","business-registered","business-not-registered"]},"companyTaxNumber":{"type":"string","maxLength":32,"description":"VAT or company tax number"},"eori":{"type":"string","maxLength":20},"taxId":{"type":"string","maxLength":35,"description":"Personal tax id"},"residential":{"type":"boolean","description":"false for a business address (cheaper on some sites)"}},"required":["name","property","street","town","postcode","country"],"description":"Receiver"},"parcels":{"type":"array","items":{"$ref":"#/components/schemas/OrderParcel"},"minItems":1,"maxItems":20},"collectionDate":{"type":"string","format":"date","description":"YYYY-MM-DD from get_quotes dates; drop-off ignores it"},"extras":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"maxItems":10,"description":"Extra keys from get_quotes"},"customs":{"type":"object","properties":{"exportReason":{"type":"string","maxLength":30},"dutyTerms":{"type":"string","enum":["ddu","ddp","ioss"]},"ioss":{"type":"string","maxLength":14,"description":"IM + 10 digits"}},"description":"International only"},"from":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":50,"description":"Contact name"},"organisation":{"type":"string","maxLength":50},"property":{"type":"string","minLength":1,"maxLength":50,"description":"House number or name"},"street":{"type":"string","minLength":1,"maxLength":50},"locality":{"type":"string","maxLength":50},"town":{"type":"string","minLength":1,"maxLength":50},"county":{"type":"string","maxLength":50,"description":"State or province code where required (e.g. NY)"},"postcode":{"type":"string","minLength":1,"maxLength":16},"country":{"type":"string","minLength":2,"maxLength":12,"description":"Country code get_quotes returned (may be a territory such as GB-NIR)"},"email":{"type":"string","maxLength":256},"phone":{"type":"string","maxLength":24},"shopId":{"type":"string","maxLength":20,"description":"Drop shop id from search_drop_shops"},"companyStatus":{"type":"string","enum":["individual","business-registered","business-not-registered"]},"companyTaxNumber":{"type":"string","maxLength":32,"description":"VAT or company tax number"},"eori":{"type":"string","maxLength":20},"taxId":{"type":"string","maxLength":35,"description":"Personal tax id"},"residential":{"type":"boolean","description":"false for a business address (cheaper on some sites)"}},"required":["name","property","street","town","postcode","country"],"description":"Defaults to the order's sender. Must be in the same country"}},"required":["serviceSlug","to","parcels"]},"maxItems":4,"description":"More shipments on this order, paid together with one link. Each needs its own quote and requirements"},"customer":{"type":"object","properties":{"forename":{"type":"string","minLength":1,"maxLength":50},"surname":{"type":"string","minLength":1,"maxLength":50},"email":{"type":"string","minLength":1,"maxLength":256}},"required":["forename","surname","email"],"description":"Defaults to the sender's name and email"}},"required":["serviceSlug","to","parcels","from"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"service":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"courier":{"type":"string"}},"required":["slug","name","courier"]},"from":{"type":"string"},"to":{"type":"string"},"date":{"type":"string","description":"Collection or drop-off date that will be booked"},"delivery":{"type":"string","description":"Expected delivery date or range"},"total":{"type":"object","properties":{"minor":{"type":"integer","description":"Amount in minor units (pence, cents)"},"currency":{"type":"string","description":"ISO 4217 code, e.g. GBP"},"display":{"type":"string","description":"Formatted, e.g. £12.16"}},"required":["minor","currency","display"],"description":"Final price of the whole order. Show it, the breakdown and every warning before booking"},"breakdown":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"amount":{"type":"object","properties":{"minor":{"type":"integer","description":"Amount in minor units (pence, cents)"},"currency":{"type":"string","description":"ISO 4217 code, e.g. GBP"},"display":{"type":"string","description":"Formatted, e.g. £12.16"}},"required":["minor","currency","display"]}},"required":["name","amount"]},"description":"Incl. tax, grouped by charge"},"items":{"type":"array","items":{"type":"object","properties":{"service":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"courier":{"type":"string"}},"required":["slug","name","courier"]},"from":{"type":"string"},"to":{"type":"string"},"date":{"type":"string","description":"Collection or drop-off date that will be booked"},"delivery":{"type":"string","description":"Expected delivery date or range"}},"required":["service","from","to"]},"description":"Every shipment, in order, when the order has more than one"},"warnings":{"type":"array","items":{"type":"string"}},"confirmationToken":{"type":"string","description":"Pass to create_order before expiresAt. It holds this exact order"},"expiresAt":{"type":"string"}},"required":["service","from","to","total","breakdown","confirmationToken","expiresAt"]}}}},"400":{"description":"The input is not valid","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}},"422":{"description":"The booking service rejected the request","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}},"429":{"description":"Too many requests","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}},"502":{"description":"The booking service is unavailable","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}}}}},"/v1/orders":{"post":{"operationId":"create_order","tags":["Booking"],"summary":"Create an order","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirmationToken":{"type":"string","minLength":10,"maxLength":24200,"description":"From validate_order"}},"required":["confirmationToken"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"orderId":{"type":"string"},"paymentUrl":{"type":"string","format":"uri","description":"Give this to the user to pay"},"total":{"type":"object","properties":{"minor":{"type":"integer","description":"Amount in minor units (pence, cents)"},"currency":{"type":"string","description":"ISO 4217 code, e.g. GBP"},"display":{"type":"string","description":"Formatted, e.g. £12.16"}},"required":["minor","currency","display"]},"service":{"type":"string"},"date":{"type":"string"},"next":{"type":"array","items":{"type":"string"}}},"required":["orderId","paymentUrl","total","service","next"]}}}},"400":{"description":"The input is not valid","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}},"422":{"description":"The booking service rejected the request","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}},"429":{"description":"Too many requests","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}},"502":{"description":"The booking service is unavailable","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine code, e.g. missing-destination-contactname"},"field":{"type":"string","description":"Path of the input field to fix, e.g. destination.contactName"},"message":{"type":"string","description":"Readable explanation that can be shown to the user"},"fix":{"type":"string","description":"How to fix it"}},"required":["code","message"]}}},"required":["type","title","status"]}}}}}}}},"webhooks":{}}