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

Book a parcel, step by step

An assistant books a parcel in five calls. The price is only final at validation, and the user pays on the linked payment page. This service never takes payment.

Extras and parcel protection · How to get the label

  1. 1 Get quotes

    Send both countries and postcodes, plus each parcel's weight, dimensions and valueMinor. Show the user a few options. Quote the chosen service again with the final parcel details to see its extras and dates. Tool: get_quotes.

    {
      "from": {
        "country": "GB",
        "postcode": "M1 1AE"
      },
      "to": {
        "country": "DE",
        "postcode": "10115"
      },
      "parcels": [
        {
          "weightKg": 2,
          "lengthCm": 30,
          "widthCm": 20,
          "heightCm": 15,
          "valueMinor": 2000
        }
      ]
    }
  2. 2 Check what the service needs

    Use the service slug and the from and to codes that get_quotes returned. Ask the user only for the fields it lists as required. Tool: get_booking_requirements.

    {
      "serviceSlug": "dpd-classic",
      "from": "GB",
      "to": "DE"
    }
  3. 3 Pick a drop-off shop (drop-off services only)

    Search the service's drop-off network near the sender. If the sender will show a code, use printInStore: true and choose a shop or locker from the filtered results. Tool: search_drop_shops.

    {
      "provider": "INPOST",
      "near": "M1 1AE",
      "purpose": "dropoff"
    }
  4. 4 Validate the order

    Send the full order with the chosen extra keys. Fix any issues and validate again. Show the user the total, the breakdown and every warning, and get a clear yes. Tool: validate_order.

    {
      "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"
        }
      ]
    }
  5. 5 Create the order

    Send the confirmationToken from validate_order, once. Give the user the payment link and explain how they will get the label after paying. Tool: create_order.

    {
      "confirmationToken": "v1.<from validate_order>"
    }

Extras and parcel protection

Use get_quotes with the chosen serviceSlug and the final parcel details. Set parcels[].valueMinor to the actual replacement value in the sender’s currency (for example 10000 for £100). Use the same value when validating.

How to get the label

Ask if the sender has a printer before choosing a service. Check the detail quote’s service.flags, service.handover and service.extras together.

MethodWhat to chooseWhat the sender does
Print at homeWhen the service uses home printing, leave label extras unselected. needs_printer flags home printing. Check for an offered label alternative.Print the PDF and attach one label per parcel before collection or drop-off.
Show a code at drop-offOn a dropoff service, choose printinstore if offered. print_in_store is a clue to check the detail quote. The extra can cost money. Use the service’s dropOffProvider with search_drop_shops, purpose: "dropoff" and printInStore: true.Take the sealed parcel and scannable code to the selected shop or locker. Some services only issue a code.
Driver brings the labelOn a collection service, explicitly select driverbringslabel if offered. Some services, such as CitySprint same-day, label at collection as standard.Have the parcel packed and sealed during the collection window.

Confirm the label method if the detail result is ambiguous. The quote flags are a summary and carry no separate code-only or courier-labels-at-collection flag.

After payment, the courier booking can take a few minutes to produce a PDF or a scannable code. The sender can find it on the order-complete page, in their confirmation email or in their order account. create_order returns a payment link. Use the agreed label method for the sender’s handover instructions.

Safe by design

Several parcels at once

Sending to several people? Price them together, then book them as one order with one payment link.

Same-day delivery

A dedicated motorcycle or van collects and delivers on the same day, within mainland Great Britain. Quotes leave it out unless includeSameDay: true.

Expected behaviour

These look like bugs but are how the service works.