Skip to content

GetQuote

Replace with POST /api/quotes.

  • Fewer address fields. Only Country is needed for a quote, but send Postcode, Town and Property too, because availability can depend on them. Names, phone numbers and emails go on the order, not the quote.
  • 3-letter country codes. GB becomes GBR, US becomes USA. GET /api/countries returns Iso2Code and Iso3Code for each country, so use it to convert. Some places are subdivisions (for example Northern Ireland NIR or the Channel Islands GB-CI), set with Subdivision.
  • Value per parcel. Parcel Monkey took one goods_value for the whole consignment. Parcel2Go takes a Value on each parcel.
  • Collection date isn’t an input. Each quote returns its own Collection, CutOff and EstimatedDeliveryDate. To list available dates for a service, use POST /api/collectiondates.
  • Customs requirements come back on the quote. For international quotes, send ExportReason and each address’s VatStatus. 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.

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:

  1. Request a quote for the parcel and route.
  2. 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 in AvailableExtras.
  3. Send the chosen Service.Slug as Items[].Service when you create the order.
Pick a service from the quote results
<?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');

Parcel Monkey returned a single protection_price_net. Parcel2Go has a list of extras:

  • AvailableExtras on each quote lists the extras the service offers, with their Type (for example Cover, 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’s Extras.
  • On the order, request extras with Items[].Upsells. See Extras.
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
}
]
}'
Response
{
"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": "alex@example.com",
"address1": "1335 6th Avenue",
"town": "New York",
"county": "NY",
"postcode": "10019"
}
}'
Response
[
{
"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.

GetQuote request field mapping
Parcel MonkeyParcel2GoRequiredNotes
origin
CollectionAddress.Country
NoISO alpha-2 (GB) becomes ISO alpha-3 (GBR). GET /api/countries returns both Iso2Code and Iso3Code, so use it to convert.
destination
DeliveryAddress.Country
NoAs origin. Some areas are Subdivisions (e.g. NIR, GB-CI); set DeliveryAddress.Subdivision where relevant.
boxes[]
Parcels[]
YesOne entry per parcel.
boxes[].length
Parcels[].Length
Yescm, up to 2 decimal places.
boxes[].width
Parcels[].Width
Yescm.
boxes[].height
Parcels[].Height
Yescm.
boxes[].weight
Parcels[].Weight
Yeskg, up to 2 decimal places.
goods_value
Parcels[].Value
NoPM: one value for the whole consignment. P2G: estimated value per parcel. Split the consignment value across parcels.
collection_date
Collection
CutOff
NoNot 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 / countyNo equivalentNot used for quoting. Send them on the order instead.
sender.address1
CollectionAddress.Property
NoOptional at quote time.
sender.address2 / address3No equivalentNot used for quoting.
sender.town
CollectionAddress.Town
NoOptional at quote time.
sender.postcode
CollectionAddress.Postcode
NoOptional, but send it: area surcharges and availability can depend on it.
recipient.* (docs table: recpient.*)
DeliveryAddress
YesSame as sender: Country, Property, Town, Postcode are used; name/phone/email/county are not.
New in Parcel2Go
Service
NoOptional: limit the quote to one service slug.
New in Parcel2Go
Extras[]
NoOptional: include extras (e.g. Sms, Cover) in the quoted total.
New in Parcel2Go
ExportReason
CollectionAddress.VatStatus
DeliveryAddress.VatStatus
NoSend these for international quotes so customs requirements in the response are accurate.
New in Parcel2Go
ServiceFilter
NoOptional: include/exclude services by tag.
GetQuote response field mapping
Parcel MonkeyParcel2GoRequiredNotes
[] (top-level array)
Quotes[]
NoQuotes are wrapped in a Quotes array.
service
Service.Slug
NoService identifiers are different. Do not map PM codes to P2G slugs in code; pick from the quote results each time.
carrier
Service.CourierName
NoCourierSlug is also available.
service_name
Service.Name
No
service_description
Service.ShortDescriptions
NoOverview and Features hold HTML descriptions.
customs_invoice_required
RequiresCustoms
RequiresCommercialInvoice
NoP2G splits this out, and also returns per-field requirements (TariffCodeRequired, ExportReasonRequired, SenderTaxIdRequirements, etc.).
shipping_price_net
UnitPrice
NoBase price of the service excluding VAT, before extras and discount.
protection_price_net
AvailableExtras[].Price
Type = "Cover"
Type = "ExtendedBaseCover"
NoProtection is an extra. Look for AvailableExtras entries with Type Cover or ExtendedBaseCover. Quote.IncludedCover gives cover included as standard.
total_price_net
TotalPriceExVat
NoTotal of service and included extras, excluding VAT.
total_price_gross
TotalPrice
NoTotal including VAT. TotalVat and VatRate are separate fields. Parcel2Go returns prices as numbers, where Parcel Monkey returned some as strings.