GetQuote
Replace with POST /api/quotes.
What’s different
Section titled “What’s different”- Fewer address fields. Only
Countryis needed for a quote, but sendPostcode,TownandPropertytoo, because availability can depend on them. Names, phone numbers and emails go on the order, not the quote. - 3-letter country codes.
GBbecomesGBR,USbecomesUSA.GET /api/countriesreturnsIso2CodeandIso3Codefor each country, so use it to convert. Some places are subdivisions (for example Northern IrelandNIRor the Channel IslandsGB-CI), set withSubdivision. - Value per parcel. Parcel Monkey took one
goods_valuefor the whole consignment. Parcel2Go takes aValueon each parcel. - Collection date isn’t an input. Each quote returns its own
Collection,CutOffandEstimatedDeliveryDate. To list available dates for a service, usePOST /api/collectiondates. - Customs requirements come back on the quote. For international quotes, send
ExportReasonand each address’sVatStatus. The quote then tells you exactly which customs fields the order needs. See Customs. - No pallets. Pallets aren’t supported.
- Quotes are wrapped. The response is
{"Quotes": [...]}, not a bare array.
Don’t hard-code service codes
Section titled “Don’t hard-code service codes”Parcel Monkey service codes (for example international_pmair) don’t exist on Parcel2Go, and there’s no fixed mapping between the two. Parcel2Go identifies a service by its Service.Slug, and which services are offered depends on the route, the parcel and the date.
Choose a service from each quote response:
- Request a quote for the parcel and route.
- Filter the results on what matters to you:
Service.CollectionType(Collection,Shop,Locker),Service.DeliveryType(Door,Shop,Locker),EstimatedDeliveryDate,Service.CourierName,Service.Tags, or the extras inAvailableExtras. - Send the chosen
Service.SlugasItems[].Servicewhen you create the order.
<?php$result = $p2g->request('POST', '/api/quotes', $quoteRequest);
// Example rule: collected from the sender, delivered to the door, earliest delivery date.$options = array_values(array_filter( $result['Quotes'], fn (array $q) => $q['Service']['CollectionType'] === 'Collection' && $q['Service']['DeliveryType'] === 'Door',));usort($options, fn ($a, $b) => strtotime($a['EstimatedDeliveryDate']) <=> strtotime($b['EstimatedDeliveryDate']));
$serviceSlug = $options[0]['Service']['Slug'] ?? throw new RuntimeException('No matching service');Protection and other extras
Section titled “Protection and other extras”Parcel Monkey returned a single protection_price_net. Parcel2Go has a list of extras:
AvailableExtrason each quote lists the extras the service offers, with theirType(for exampleCover,ExtendedBaseCover,Sms,Signature).- To include an extra in the quoted total, add it to the request’s
Extras:"Extras": [{"Type": "Sms"}]. It then appears in the quote’sExtras. - On the order, request extras with
Items[].Upsells. See Extras.
Examples
Section titled “Examples”curl -X POST "https://sandbox.parcel2go.com/api/quotes" \ -H "Authorization: Bearer $P2G_TOKEN" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "CollectionAddress": { "Country": "GBR", "Property": "Unit 1", "Town": "Leeds", "Postcode": "LS1 4AP", "VatStatus": "Registered" }, "DeliveryAddress": { "Country": "USA", "Property": "1335", "Town": "New York", "Postcode": "10019", "VatStatus": "Individual" }, "ExportReason": "Sale", "Parcels": [ { "Value": 150, "Weight": 1, "Length": 10, "Width": 10, "Height": 10 } ]}'<?php// $p2g is the client from the Authentication page$result = $p2g->request('POST', '/api/quotes', [ 'CollectionAddress' => [ 'Country' => 'GBR', 'Property' => 'Unit 1', 'Town' => 'Leeds', 'Postcode' => 'LS1 4AP', 'VatStatus' => 'Registered', ], 'DeliveryAddress' => [ 'Country' => 'USA', 'Property' => '1335', 'Town' => 'New York', 'Postcode' => '10019', 'VatStatus' => 'Individual', ], 'ExportReason' => 'Sale', 'Parcels' => [ [ 'Value' => 150, 'Weight' => 1, 'Length' => 10, 'Width' => 10, 'Height' => 10, ], ],]);{ "Quotes": [ { "Service": { "Slug": "<service-slug>", "Name": "<service name>", "CourierName": "<courier name>", "ShortDescriptions": "<short description>", "CollectionType": "Collection", "DeliveryType": "Door" }, "RequiresCustoms": true, "RequiresCommercialInvoice": true, "TariffCodeRequired": true, "CountryOfManufactureRequired": true, "ExportReasonRequired": true, "SenderEoriRequirements": { "IsRequired": false, "Validation": null }, "ItemSkuRequirements": null, "AvailableExtras": [ { "Type": "Cover", "Details": null }, { "Type": "Sms", "Details": null } ], "Extras": [], "Collection": "2026-12-07T00:00:00+00:00", "CutOff": "2026-12-06T23:59:00+00:00", "EstimatedDeliveryDate": "2026-12-10T00:00:00+00:00", "CurrencyCode": "GBP" } ]}Abridged: one quote shown, with placeholder service details. Price fields (UnitPrice, TotalPrice, TotalPriceExVat, TotalVat, VatRate, and Price/Vat/Total on each extra) are left out here and described in the field mapping.
Compare with the Parcel Monkey GetQuote call
curl -X POST "https://api.parcelmonkey.co.uk/GetQuote" \ -H "Content-Type: application/json" \ -H "apiversion: 3.3" \ -H "userid: $PM_USER_ID" \ -H "token: $PM_API_KEY" \ -d '{ "origin": "GB", "destination": "US", "boxes": [ { "length": 10, "width": 10, "height": 10, "weight": 1 } ], "goods_value": 150, "sender": { "name": "Sam Sender", "phone": "01130000000", "address1": "Unit 1 Example Park", "town": "Leeds", "county": "West Yorkshire", "postcode": "LS1 4AP" }, "recipient": { "name": "Alex Recipient", "phone": "12120000000", "email": "[email protected]", "address1": "1335 6th Avenue", "town": "New York", "county": "NY", "postcode": "10019" }}'<?php$ch = curl_init('https://api.parcelmonkey.co.uk/GetQuote');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([ 'origin' => 'GB', 'destination' => 'US', 'boxes' => [ [ 'length' => 10, 'width' => 10, 'height' => 10, 'weight' => 1, ], ], 'goods_value' => 150, 'sender' => [ 'name' => 'Sam Sender', 'phone' => '01130000000', 'address1' => 'Unit 1 Example Park', 'town' => 'Leeds', 'county' => 'West Yorkshire', 'postcode' => 'LS1 4AP', ], 'recipient' => [ 'name' => 'Alex Recipient', 'phone' => '12120000000', 'address1' => '1335 6th Avenue', 'town' => 'New York', 'county' => 'NY', 'postcode' => '10019', ], ]),]);$response = json_decode(curl_exec($ch), true);[ { "service": "international_pmair", "carrier": "Parcel Monkey", "service_name": "Air Express", "service_description": "Delivery by Air in 2-3 days.", "customs_invoice_required": true }]Abridged. Price fields (shipping_price_net, protection_price_net, total_price_net, total_price_gross) omitted.
Field mapping
Section titled “Field mapping”Request
Section titled “Request”| Parcel Monkey | Parcel2Go | Required | Notes |
|---|---|---|---|
origin | CollectionAddress. | No | ISO alpha-2 (GB) becomes ISO alpha-3 (GBR). GET /api/countries returns both Iso2Code and Iso3Code, so use it to convert. |
destination | DeliveryAddress. | No | As origin. Some areas are Subdivisions (e.g. NIR, GB-CI); set DeliveryAddress.Subdivision where relevant. |
boxes[] | Parcels[] | Yes | One entry per parcel. |
boxes[].length | Parcels[]. | Yes | cm, up to 2 decimal places. |
boxes[].width | Parcels[]. | Yes | cm. |
boxes[].height | Parcels[]. | Yes | cm. |
boxes[].weight | Parcels[]. | Yes | kg, up to 2 decimal places. |
goods_value | Parcels[]. | No | PM: one value for the whole consignment. P2G: estimated value per parcel. Split the consignment value across parcels. |
collection_date | CollectionCutOff | No | Not a quote input. Each quote returns its Collection date/time and CutOff. Use POST /api/collectiondates to list available dates for a service. |
sender.name / phone / email / county | No equivalent | Not used for quoting. Send them on the order instead. | |
sender.address1 | CollectionAddress. | No | Optional at quote time. |
sender.address2 / address3 | No equivalent | Not used for quoting. | |
sender.town | CollectionAddress. | No | Optional at quote time. |
sender.postcode | CollectionAddress. | No | Optional, but send it: area surcharges and availability can depend on it. |
recipient.* (docs table: recpient.*) | DeliveryAddress | Yes | Same as sender: Country, Property, Town, Postcode are used; name/phone/email/county are not. |
| New in Parcel2Go | Service | No | Optional: limit the quote to one service slug. |
| New in Parcel2Go | Extras[] | No | Optional: include extras (e.g. Sms, Cover) in the quoted total. |
| New in Parcel2Go | ExportReasonCollectionAddress.DeliveryAddress. | No | Send these for international quotes so customs requirements in the response are accurate. |
| New in Parcel2Go | ServiceFilter | No | Optional: include/exclude services by tag. |
Response
Section titled “Response”| Parcel Monkey | Parcel2Go | Required | Notes |
|---|---|---|---|
[] (top-level array) | Quotes[] | No | Quotes are wrapped in a Quotes array. |
service | Service. | No | Service identifiers are different. Do not map PM codes to P2G slugs in code; pick from the quote results each time. |
carrier | Service. | No | CourierSlug is also available. |
service_name | Service. | No | |
service_description | Service. | No | Overview and Features hold HTML descriptions. |
customs_invoice_required | RequiresCustomsRequiresCommercialInvoice | No | P2G splits this out, and also returns per-field requirements (TariffCodeRequired, ExportReasonRequired, SenderTaxIdRequirements, etc.). |
shipping_price_net | UnitPrice | No | Base price of the service excluding VAT, before extras and discount. |
protection_price_net | AvailableExtras[].Type = "Cover"Type = "ExtendedBaseCover" | No | Protection is an extra. Look for AvailableExtras entries with Type Cover or ExtendedBaseCover. Quote.IncludedCover gives cover included as standard. |
total_price_net | TotalPriceExVat | No | Total of service and included extras, excluding VAT. |
total_price_gross | TotalPrice | No | Total including VAT. TotalVat and VatRate are separate fields. Parcel2Go returns prices as numbers, where Parcel Monkey returned some as strings. |