CreateShipment
Replace with POST /api/orders. Optionally call POST /api/orders/verify first.
What’s different
Section titled “What’s different”An order holds one or more shipments. A Parcel2Go order has Items, and each item is one shipment: one service, one collection address and one or more parcels. To book several shipments and pay once, put them in one order.
Each parcel has its own delivery address. Parcel Monkey had one recipient per shipment. Parcel2Go puts a DeliveryAddress and a ContentsSummary on every parcel. For a multi-box shipment to one address, repeat the address on each parcel.
You generate IDs. Each item needs an Id (a GUID) and each parcel needs an Id (a UUID). You get the item ID back next to Parcel2Go’s reference, and errors quote it.
New required fields. CustomerDetails (Email, Forename, Surname) on the order, and OriginCountry on each item.
The order is created unpaid. Nothing is booked until you pay. The response has payment links, not a label URL. Labels come after payment. See GetPaymentLink and Labels.
Values are per parcel. goods_value becomes EstimatedValue on each parcel.
The order flow
Section titled “The order flow”- Quote and pick a
Service.Slug. - Optional:
POST /api/orders/verifywith the same body as the order. It runs the same validation and returns errors and pricing without creating anything. POST /api/ordersto create the unpaid order.- Pay with PrePay.
- Get labels.
Before you create orders, you can also check addresses with GET /api/services/{serviceSlug}/addressrules/{addressType}/{countryIso3Code}, collection dates with POST /api/collectiondates, and contents with POST /api/prohibiteditems. Parcel2Go’s orders guide walks through each step.
Examples
Section titled “Examples”An international shipment of three books, with customs details.
curl -X POST "https://sandbox.parcel2go.com/api/orders" \ -H "Authorization: Bearer $P2G_TOKEN" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "Items": [ { "Id": "6a1f0c2e-3b4d-4e5f-8a9b-0c1d2e3f4a5b", "Service": "<service-slug>", "CollectionDate": "2026-12-07T00:00:00+00:00", "OriginCountry": "GBR", "Reference": "ORDER-1001", "ExportReason": "Sale", "VatStatus": "Registered", "VatNumber": "GB123456789", "RecipientVatStatus": "Individual", "Upsells": [ { "Type": "Sms" } ], "CollectionAddress": { "ContactName": "Sam Sender", "Email": "sam@example.com", "Phone": "+441130000000", "Property": "Unit 1", "Street": "Example Park", "Town": "Leeds", "County": "West Yorkshire", "Postcode": "LS1 4AP", "CountryIsoCode": "GBR" }, "Parcels": [ { "Id": "0b7f6c1e-2d3a-4b5c-9d8e-7f6a5b4c3d2e", "Weight": 1, "Length": 10, "Width": 10, "Height": 10, "EstimatedValue": 150, "ContentsSummary": "Books", "DeliveryAddress": { "ContactName": "Alex Recipient", "Email": "alex@example.com", "Phone": "+12120000000", "Property": "1335", "Street": "6th Avenue", "Town": "New York", "County": "NY", "Postcode": "10019", "CountryIsoCode": "USA", "SpecialInstructions": "Red door" }, "Contents": [ { "Description": "Paperback book", "Quantity": 3, "EstimatedValue": 150, "TariffCode": "490199", "OriginCountry": "GBR" } ] } ] } ], "CustomerDetails": { "Email": "sam@example.com", "Forename": "Sam", "Surname": "Sender" }}'<?php// $p2g is the client from the Authentication page$order = $p2g->request('POST', '/api/orders', [ 'Items' => [ [ 'Id' => '6a1f0c2e-3b4d-4e5f-8a9b-0c1d2e3f4a5b', 'Service' => '<service-slug>', 'CollectionDate' => '2026-12-07T00:00:00+00:00', 'OriginCountry' => 'GBR', 'Reference' => 'ORDER-1001', 'ExportReason' => 'Sale', 'VatStatus' => 'Registered', 'VatNumber' => 'GB123456789', 'RecipientVatStatus' => 'Individual', 'Upsells' => [ [ 'Type' => 'Sms', ], ], 'CollectionAddress' => [ 'ContactName' => 'Sam Sender', 'Email' => 'sam@example.com', 'Phone' => '+441130000000', 'Property' => 'Unit 1', 'Street' => 'Example Park', 'Town' => 'Leeds', 'County' => 'West Yorkshire', 'Postcode' => 'LS1 4AP', 'CountryIsoCode' => 'GBR', ], 'Parcels' => [ [ 'Id' => '0b7f6c1e-2d3a-4b5c-9d8e-7f6a5b4c3d2e', 'Weight' => 1, 'Length' => 10, 'Width' => 10, 'Height' => 10, 'EstimatedValue' => 150, 'ContentsSummary' => 'Books', 'DeliveryAddress' => [ 'ContactName' => 'Alex Recipient', 'Email' => 'alex@example.com', 'Phone' => '+12120000000', 'Property' => '1335', 'Street' => '6th Avenue', 'Town' => 'New York', 'County' => 'NY', 'Postcode' => '10019', 'CountryIsoCode' => 'USA', 'SpecialInstructions' => 'Red door', ], 'Contents' => [ [ 'Description' => 'Paperback book', 'Quantity' => 3, 'EstimatedValue' => 150, 'TariffCode' => '490199', 'OriginCountry' => 'GBR', ], ], ], ], ], ], 'CustomerDetails' => [ 'Email' => 'sam@example.com', 'Forename' => 'Sam', 'Surname' => 'Sender', ],]);{ "OrderId": "76423942", "Links": { "PayWithPrePay": "https://www.parcel2go.com/api/orders/76423942/paywithprepay?hash=<order hash>", "payment": "https://www.parcel2go.com/order/payment?id=76423942&hash=<payment hash>", "help": "https://www.parcel2go.com/help-centre" }, "Hash": "<order hash>", "OrderlineIdMap": [ { "Hash": "<order line hash>", "OrderLineId": "115030194", "ItemId": "6a1f0c2e-3b4d-4e5f-8a9b-0c1d2e3f4a5b" } ]}Abridged. Price fields (TotalPrice, TotalVat, TotalPriceExVat, TotalDiscount) are left out. Links follow the shape in the Parcel2Go orders guide; always read them from the response rather than building them.
Compare with the Parcel Monkey CreateShipment call
curl -X POST "https://api.parcelmonkey.co.uk/CreateShipment" \ -H "Content-Type: application/json" \ -H "apiversion: 3.3" \ -H "userid: $PM_USER_ID" \ -H "token: $PM_API_KEY" \ -d '{ "service": "international_pmair", "origin": "GB", "destination": "US", "boxes": [ { "length": 10, "width": 10, "height": 10, "weight": 1 } ], "goods_value": 150, "goods_description": "Books", "delivery_notes": "Red door", "collection_date": "2026-12-07", "sender": { "name": "Sam Sender", "phone": "01130000000", "email": "sam@example.com", "address1": "Unit 1 Example Park", "town": "Leeds", "county": "West Yorkshire", "postcode": "LS1 4AP" }, "recipient": { "name": "Alex Recipient", "phone": "12120000000", "email": "alex@example.com", "address1": "1335 6th Avenue", "town": "New York", "county": "NY", "postcode": "10019" }, "customs": { "doc_type": "commercial", "reason": "Sold", "sender_name": "Sam Sender", "sender_tax_reference": "GB123456789", "recipient_name": "Alex Recipient", "recipient_tax_reference": "Private Individual", "country_of_manufacture": "GB", "items": [ { "quantity": 3, "description": "Paperback book", "value_per_unit": 50 } ] }}'<?php$ch = curl_init('https://api.parcelmonkey.co.uk/CreateShipment');curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => ['Content-Type: application/json', 'apiversion: 3.3', 'userid: ' . $pmUserId, 'token: ' . $pmApiKey], CURLOPT_POSTFIELDS => json_encode([ 'service' => 'international_pmair', 'origin' => 'GB', 'destination' => 'US', 'boxes' => [ [ 'length' => 10, 'width' => 10, 'height' => 10, 'weight' => 1, ], ], 'goods_value' => 150, 'goods_description' => 'Books', 'delivery_notes' => 'Red door', 'collection_date' => '2026-12-07', 'sender' => [ 'name' => 'Sam Sender', 'phone' => '01130000000', 'email' => 'sam@example.com', 'address1' => 'Unit 1 Example Park', 'town' => 'Leeds', 'county' => 'West Yorkshire', 'postcode' => 'LS1 4AP', ], 'recipient' => [ 'name' => 'Alex Recipient', 'phone' => '12120000000', 'email' => 'alex@example.com', 'address1' => '1335 6th Avenue', 'town' => 'New York', 'county' => 'NY', 'postcode' => '10019', ], 'customs' => [ 'doc_type' => 'commercial', 'reason' => 'Sold', 'sender_name' => 'Sam Sender', 'sender_tax_reference' => 'GB123456789', 'recipient_name' => 'Alex Recipient', 'recipient_tax_reference' => 'Private Individual', 'country_of_manufacture' => 'GB', 'items' => [ [ 'quantity' => 3, 'description' => 'Paperback book', 'value_per_unit' => 50, ], ], ], ]),]);$response = json_decode(curl_exec($ch), true);{ "ShipmentId": 4749253, "label_url": "https://www.parcelmonkey.co.uk/shippinglabel.php?id=4749253&key=5a697", "tracking_url": "https://www.parcelmonkey.co.uk/tracking.php?PMID=4749253&ShipmentDeliveryPostcode=10019"}What to store from the response
Section titled “What to store from the response”| Field | What it is | Use it for |
|---|---|---|
OrderId |
The order | Payment, labels for the whole order |
Hash |
Order hash | Labels and order lookup with client credentials |
OrderlineIdMap[].OrderLineId |
One shipment, Parcel2Go’s reference (the “P2G number”) | Tracking, labels per shipment, and any query about the shipment |
OrderlineIdMap[].Hash |
Order line hash | Labels per shipment |
OrderlineIdMap[].ItemId |
The Items[].Id you sent |
Matching shipments back to your records |
Store OrderLineId where you stored Parcel Monkey’s ShipmentId.
Verify and errors
Section titled “Verify and errors”Verify takes exactly the same body. If something’s wrong, both verify and create return 400 with a list of errors, each tied to your item ID:
{ "Errors": [ { "Type": "Customs", "Error": "Please supply the reason for exporting your parcel.", "ItemId": "6a1f0c2e-3b4d-4e5f-8a9b-0c1d2e3f4a5b" }, { "Type": "Customs", "Error": "Please supply details of your international parcel's contents.", "ItemId": "6a1f0c2e-3b4d-4e5f-8a9b-0c1d2e3f4a5b" } ]}Example 400 response, from the Parcel2Go customs guide. Verify and create return the same error shape.
Addresses
Section titled “Addresses”Parcel Monkey’s address1, address2 and address3 map onto Parcel2Go’s Property, Street and Locality. Either ContactName or Organisation is required.
| Parcel Monkey | Parcel2Go |
|---|---|
name |
ContactName (or Organisation for a business) |
phone |
Phone |
email |
Email |
address1 |
Property (house name or number) and Street |
address2 |
Street or Locality |
address3 |
Locality |
town |
Town |
county |
County |
postcode |
Postcode |
origin / destination |
CountryIsoCode (3-letter), plus Subdivision where relevant |
delivery_notes |
DeliveryAddress.SpecialInstructions (not all services allow it) |
TODO(verify) T6: Can a whole first address line go in Property, or must it be split into Property and Street? If an order fails on the address, GET /api/services/{serviceSlug}/addressrules/{addressType}/{countryIso3Code} returns the rules for that service and country.
Customs
Section titled “Customs”Parcel Monkey had a customs block. Parcel2Go has no customs object. Customs details sit on the item (reason and tax IDs) and on each parcel’s Contents (the line items). Which fields you need depends on the service and route, so read the quote first. See Parcel2Go’s customs guide.
Read these on the quote: RequiresCustoms, ExportReasonRequired, TariffCodeRequired, CountryOfManufactureRequired, SenderTaxIdRequirements, RecipientTaxIdRequirements, SenderEoriRequirements, RecipientEoriRequirements, IossRequirements, and for EU shipments ItemSkuRequirements, ManufacturerIdRequirements and BarcodeRequirements.
Export reason
Section titled “Export reason”Use one of the values Parcel2Go accepts: Sale, Gift, Sample, Repair, Documents, IntraCompanyTransfer or TemporaryExport.
Parcel Monkey customs.reason |
Parcel2Go ExportReason |
|---|---|
Sold |
Sale |
Gift |
Gift |
Sample |
Sample |
Repair |
Repair |
Documents |
Documents |
Intra Company Transfer |
IntraCompanyTransfer |
Temporary Export |
TemporaryExport |
Tax references
Section titled “Tax references”Parcel Monkey took free text such as "Private Individual" or a VAT number. Parcel2Go uses structured fields:
| You sent | Parcel2Go |
|---|---|
sender_tax_reference: "Private Individual" |
VatStatus: "Individual" |
sender_tax_reference: <VAT number> |
VatStatus: "Registered" and VatNumber |
recipient_tax_reference: "Private Individual" |
RecipientVatStatus: "Individual" |
recipient_tax_reference: <local tax ID> |
RecipientTaxId (for example UKIMS, PCCC or TIN), or RecipientVatStatus: "Registered" and RecipientVatNumber |
| (new) | TaxId, EoriNumber, RecipientEoriNumber, IOSSCode when the quote says they’re required |
VatStatus and RecipientVatStatus take Individual, NotRegistered or Registered.
Other customs changes
Section titled “Other customs changes”doc_typegoes away. Parcel2Go decides the document. If the quote saysRequiresCommercialInvoice, get it from the labels endpoint withdetailLevel=CommercialInvoiceorAll. See Labels.- Country of manufacture moves to each line as
Contents[].OriginCountry. TODO(verify) T3: Swagger describes this as a country name (not ISO), but the customs guide uses ISO alpha-3 such asGBR. - Sender and recipient names come from the collection and delivery addresses. TODO(verify) T5: Confirm the declaration uses
ContactName/Organisationfrom the addresses. - Commodity codes go in
Contents[].TariffCodewhenTariffCodeRequiredis true. - EU product identifiers (
ItemSku,ManufacturerId,Barcode) go on each content line when the quote’s requirement objects aren’t null.
Extras: protection, SMS, signature
Section titled “Extras: protection, SMS, signature”Request extras on each item with Upsells, choosing types from the quote’s AvailableExtras:
"Upsells": [{ "Type": "Cover" }, { "Type": "Sms" }, { "Type": "Signature" }]| Parcel Monkey | Parcel2Go |
|---|---|
protection_price_net on the quote |
Cover and ExtendedBaseCover in AvailableExtras. Parcel2Go’s extras guide explains how they combine. |
| (not available) | Sms, Signature, DeliveryGuarantee, PrintInStore and other types, depending on the service |
The links object
Section titled “The links object”Order responses include a Links object of ready-made URLs: payment options, help, and after payment, documents such as labels. Always read the URLs from the response rather than building them yourself, because the options vary by order. See Parcel2Go’s links object guide.
Field mapping
Section titled “Field mapping”Request
Section titled “Request”| Parcel Monkey | Parcel2Go | Required | Notes |
|---|---|---|---|
| New in Parcel2Go | Items[]CustomerDetails | Yes | One order holds one or more shipments in Items. CustomerDetails (Email, Forename, Surname) is required. |
| New in Parcel2Go | Items[]. | Yes | Required. A GUID you generate per shipment; echoed back in OrderlineIdMap[].ItemId. |
| New in Parcel2Go | Items[]. | Yes | Required. A UUID you generate per parcel; used in error messages. |
service | Items[]. | No | The Service.Slug from a quote. |
origin | Items[].Items[]. | Yes | ISO alpha-3 in both places. OriginCountry is required on every item. |
destination | Items[]. | Yes | ISO alpha-3. Set on every parcel. |
boxes[] | Items[]. | No | Each parcel carries its own DeliveryAddress and ContentsSummary. |
boxes[].length / width / height | Items[].Items[].Items[]. | No | cm. |
boxes[].weight | Items[]. | Yes | kg. |
goods_value | Items[]. | No | Per parcel, not per consignment. |
goods_description | Items[]. | Yes | Required, per parcel. |
delivery_notes | Items[]. | No | Not all services allow special instructions. |
collection_date | Items[]. | No | ISO 8601 date-time. Use POST /api/collectiondates to get valid dates. |
sender.name | Items[].Items[]. | No | ContactName or Organisation is required. |
sender.phone | Items[]. | No | |
sender.email | Items[]. | No | |
sender.address1 | Items[].Items[]. | No | P2G splits property (name/number) and street. TODO(verify) T6: Is it acceptable to send a full first line (e.g. '10 High Street') in Property with Street empty, or must it be split? |
sender.address2 | Items[].Items[]. | No | Depends on how your address1 is split. |
sender.address3 | Items[]. | No | |
sender.town | Items[]. | No | |
sender.county | Items[]. | No | |
sender.postcode | Items[]. | No | |
recipient.* (docs table: recpient.*) | Items[]. | Yes | Same OrderAddress shape as the sender, mapped field-for-field. Set on each parcel. |
recipient.email | Items[]. | No | PM marked this 'Sometimes'. Some services need it for delivery notifications; send it when you have it. |
customs (block) | No equivalent | No customs object. Customs data sits on the Item (reason, tax/VAT IDs) and on each parcel's Contents (line items). The quote tells you which fields are required. | |
customs.doc_type | RequiresCommercialInvoice | No / Yes | Not an input. P2G decides the document; retrieve it with detailLevel=CommercialInvoice (or All) on the labels endpoint. |
customs.reason | Items[]. | No | Use one of the values Parcel2Go accepts. Sold->Sale, Gift, Sample, Repair, Documents, Intra Company Transfer->IntraCompanyTransfer, Temporary Export->TemporaryExport. |
customs.sender_name | Items[].Items[]. | No | No separate customs name; the collection address name is used. TODO(verify) T5: Confirm the customs declaration uses CollectionAddress ContactName/Organisation. |
customs.sender_tax_reference | Items[].Items[].Items[].Items[].Items[]. | No | PM's free text becomes structured fields. 'Private Individual' -> VatStatus=Individual. A VAT number -> VatStatus=Registered plus VatNumber. Send TaxId/EoriNumber/IOSSCode when the quote's requirement objects say so. |
customs.recipient_name | Items[].Items[]. | No | No separate customs name. |
customs.recipient_tax_reference | Items[].Items[].Items[].Items[]. | No | 'Private Individual' -> RecipientVatStatus=Individual. Local tax IDs (e.g. UKIMS, PCCC) go in RecipientTaxId. |
customs.country_of_manufacture | Items[]. | No | Per line item, not per shipment. TODO(verify) T3: Format conflict: Swagger says 'e.g. United Kingdom. This is not an ISO-3166 code' but the customs guide says ISO 3166-1 alpha-3 and its examples send 'GBR'. Which is correct? |
customs.items[] | Items[]. | No | Line items belong to a parcel, not the shipment. For multi-parcel shipments, put each item on the parcel that contains it. |
customs.items[].quantity | Items[]. | No | Integer (PM examples sent a string). |
customs.items[].description | Items[]. | No | |
customs.items[].value_per_unit | Items[]. | No | Not per unit. P2G expects the line total: unit value x quantity. |
| New in Parcel2Go | Items[]. | No | Required when Quote.TariffCodeRequired is true. |
| New in Parcel2Go | Items[].Items[].Items[]. | No | EU product identifiers, required for in-scope EU shipments. Check the quote's ItemSkuRequirements / ManufacturerIdRequirements / BarcodeRequirements. |
| New in Parcel2Go | Items[].Type = "Cover"Type = "Sms"Type = "Signature" | No | Extras are requested per item via Upsells[].Type, choosing from the quote's AvailableExtras. |
| New in Parcel2Go | Items[]. | No | Optional reference stored against the shipment. |
Response
Section titled “Response”| Parcel Monkey | Parcel2Go | Required | Notes |
|---|---|---|---|
ShipmentId | OrderlineIdMap[].OrderId | No | PM had one ID per shipment. P2G returns an OrderId for the order and an OrderLineId per shipment (the 'P2G number'). Store both, plus the hashes. |
| New in Parcel2Go | HashOrderlineIdMap[]. | No | Needed with Client Credentials for labels, order lookup and (for orders not owned by the client) PrePay payment. |
| New in Parcel2Go | OrderlineIdMap[]. | No | The Items[].Id you sent, so you can match shipments back. |
label_url | Links[] | No | Not returned at create time. The order must be paid first; then use the label links from the payment response or call GET /api/labels/{reference}. |
tracking_url | Links | No | Links objects can include a 'tracking-page' redirect. TODO(verify) T7: Which response(s) include the 'tracking-page' link, and is it available for Client Credentials orders? |
| New in Parcel2Go | LinksTotalPriceTotalPriceExVatTotalVat | No | Payment links and order totals. |