DHL · Schema
Post request format for DHL eCommerce UK eCommerce Shipping Label API
FreightLogisticsShippingE-CommerceTrackingSupply ChainExpress DeliveryPostal ServicesParcel
Properties
| Name | Type | Description |
|---|---|---|
| pickupAccount | string | The DHL eCommerce UK account number. You will receive this after doing the onboarding with DHL sales. |
| dropOffType | string | Specify how shipments will be handed over to DHL. PICKUP is for a driver pickup from your account address or a specified adhoc pickup address if a carriageForward. DROPOFF is for service point drop of |
| pickup | object | Physical pickup instructions (optional). |
| pickupAddress | object | Pickup address, mandatory if pickup not from accountAddress |
| senderAddress | object | Sender address and contact details. This is used when passing through customs and to return back undeliverable shipments. |
| shipments | array | Shipment to be created. Has a consigneeAddress and potentially multiple pieces. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/dhl/json-schema/dhl-post-request-format-schema.json",
"title": "Post request format for DHL eCommerce UK eCommerce Shipping Label API",
"x-generated": "2026-11-12",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/dhl-ecommerce-uk-openapi.json#/components/schemas/PostRequestFormat",
"type": "object",
"required": [
"pickupAccount",
"dropOffType",
"senderAddress",
"shipments"
],
"properties": {
"pickupAccount": {
"maxLength": 30,
"minLength": 1,
"type": "string",
"description": "The DHL eCommerce UK account number. You will receive this after doing the onboarding with DHL sales."
},
"dropOffType": {
"type": "string",
"description": "Specify how shipments will be handed over to DHL. PICKUP is for a driver pickup from your account address or a specified adhoc pickup address if a carriageForward. DROPOFF is for service point drop off, DEPOT is a DHL Parcel Depot or Hub drop off, before DROPOFF or DEPOT please check this has been enabled on your account via your account manager.",
"enum": [
"PICKUP",
"DROPOFF",
"DEPOT"
]
},
"pickup": {
"required": [
"date",
"accountAddress"
],
"type": "object",
"properties": {
"date": {
"type": "string",
"description": "Pickup date in ISO 8601 date format."
},
"accountAddress": {
"type": "boolean",
"description": "Should the shipment be collected from the pickupAccount address? If false then shipment will be collected from the supplied pickupAddress which then becomes mandatory."
},
"pickupIdentifier": {
"type": "string",
"description": "Pickup Identifier for a pickup from an account holder address i.e. accountAddress is true. This will have been returned from a previous call to the Pickup API. Not required if accountAddress is false."
},
"instructions": {
"maxLength": 60,
"minLength": 1,
"type": "string",
"description": "Optional special instructions for driver at pickup"
},
"secureLocation": {
"maxLength": 60,
"minLength": 1,
"type": "string",
"description": "Description of a location where the parcels have been left securely for unattended collection"
},
"labelRequired": {
"type": "boolean",
"description": "Indicates whether the pickup driver needs to print and apply labels to the parcel at pickup. Not for pickup at accountAddress."
}
},
"description": "Physical pickup instructions (optional)."
},
"pickupAddress": {
"required": [
"address1",
"city",
"country",
"name",
"postalCode"
],
"type": "object",
"properties": {
"companyName": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "Optional name of organisation"
},
"address1": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "Line 1 of the street address"
},
"address2": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "Line 2 of the street address"
},
"address3": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "Line 3 of the street address"
},
"city": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "city"
},
"state": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "county, state, province or territory."
},
"postalCode": {
"maxLength": 15,
"minLength": 3,
"type": "string",
"description": "postal code"
},
"country": {
"maxLength": 2,
"minLength": 2,
"type": "string",
"description": "Two-character ISO country code."
},
"name": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "Pickup contact name"
},
"email": {
"maxLength": 70,
"minLength": 1,
"type": "string",
"description": "pickup email address, either email or phone must be provided",
"format": "email"
},
"phone": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "phone number, either email or phone must be provided"
}
},
"description": "Pickup address, mandatory if pickup not from accountAddress"
},
"senderAddress": {
"required": [
"address1",
"city",
"country",
"name",
"postalCode",
"email",
"phone"
],
"type": "object",
"properties": {
"companyName": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "Optional name of organisation"
},
"address1": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "Line 1 of the street address"
},
"address2": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "Line 2 of the street address"
},
"address3": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "Line 3 of the street address"
},
"city": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "city"
},
"state": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "county, state, province or territory."
},
"postalCode": {
"maxLength": 15,
"minLength": 3,
"type": "string",
"description": "postal code"
},
"country": {
"maxLength": 2,
"minLength": 2,
"type": "string",
"description": "Two-character ISO country code."
},
"name": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "Name"
},
"email": {
"maxLength": 70,
"minLength": 1,
"type": "string",
"description": "pickup email address",
"format": "email"
},
"phone": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "phone number"
}
},
"description": "Sender address and contact details. This is used when passing through customs and to return back undeliverable shipments."
},
"shipments": {
"maxItems": 1,
"minItems": 1,
"type": "array",
"description": "Shipment to be created. Has a consigneeAddress and potentially multiple pieces.",
"items": {
"required": [
"consigneeAddress",
"shipmentDetails"
],
"type": "object",
"properties": {
"consigneeAddress": {
"required": [
"recipientType",
"addressType",
"name",
"address1",
"city",
"country",
"postalCode"
],
"type": "object",
"properties": {
"recipientType": {
"type": "string",
"description": "Type of recipient being delivered to",
"enum": [
"business",
"residential"
]
},
"addressType": {
"type": "string",
"description": "Type of address being delivered to.",
"enum": [
"doorstep",
"servicePoint"
]
},
"companyName": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "Optional Name of the organisation receiving the shipment. If addressType is servicePoint, then this is the companyName returned from the Service Point Finder API."
},
"address1": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "Line 1 of the consignee's street address or delivery location. If addressType is servicePoint, then this is the title returned from the Service Point Finder API."
},
"address2": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "Line 2 of the consignee's street address or delivery location. If addressType is servicePoint, then this is the address1 returned from the Service Point Finder API."
},
"address3": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "Line 3 of the consignee's street address or delivery location - typically used for addresses to designate province, district, or neighborhood. If addressType is servicePoint, then this is the address2 returned from the Service Point Finder API."
},
"city": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "Consignee's city. If addressType is servicePoint, then this is the city returned from the Service Point Finder API."
},
"state": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "Consignee's county, state, province or territory. If addressType is servicePoint, then this is the state returned from the Service Point Finder API."
},
"postalCode": {
"maxLength": 15,
"minLength": 3,
"type": "string",
"description": "Consignee's postal code. If addressType is servicePoint, then this is the postalCode returned from the Service Point Finder API."
},
"country": {
"maxLength": 2,
"minLength": 2,
"type": "string",
"description": "Two-character ISO consignee address country code. If addressType is servicePoint, then this is the country returned from the Service Point Finder API."
},
"what3words": {
"type": "object",
"description": "What 3 words identifier of a recipients delivery location. Used where addressType=doorstep. If the what 3 words have been validated the latitude and longitude can be provided",
"required": [
"words"
],
"properties": {
"words": {
"type": "string"
},
"geo": {
"type": "object",
"required": [
"latitude",
"longitude"
],
"properties": {
"latitude": {
"type": "number"
},
"longitude": {
"type": "number"
}
}
}
}
},
"name": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "Name of the person receiving the shipment"
},
"email": {
"maxLength": 70,
"minLength": 1,
"type": "string",
"description": "Consignee's email address. Please supply to allow pre delivery notifications.",
"format": "email"
},
"phone": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "Consignee's phone number"
},
"locationId": {
"maxLength": 20,
"minLength": 1,
"type": "string",
"description": "If addressType is servicePoint, then this is the servicePointId returned from the Service Point Finder API"
},
"locationType": {
"type": "string",
"description": "If addressType is servicePoint, then address type of service point: Parcel Shop (More types added in future)",
"enum": [
"ParcelShop"
]
}
},
"description": "Address of the consignee (delivery address)."
},
"recipientAddress": {
"required": [
"address1",
"city",
"country",
"email",
"name",
"postalCode"
],
"type": "object",
"properties": {
"companyName": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "Optional Name of the organisation receiving the shipment"
},
"address1": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "Line 1 of the recipient's street address"
},
"address2": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "Line 2 of the recipient's street address"
},
"address3": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "Line 3 of the recipient's street address - typically used for addresses to designate province, district, or neighborhood"
},
"city": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "recipient's city"
},
"state": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "recipient's county, state, province or territory."
},
"postalCode": {
"maxLength": 15,
"minLength": 3,
"type": "string",
"description": "recipient's postal code"
},
"country": {
"maxLength": 2,
"minLength": 2,
"type": "string",
"description": "Two-character ISO recipient address country code."
},
"name": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "Name of the recipient"
},
"email": {
"maxLength": 70,
"minLength": 1,
"type": "string",
"description": "recipient's email address",
"format": "email"
},
"phone": {
"maxLength": 35,
"minLength": 1,
"type": "string",
"description": "recipient's phone number"
}
},
"description": "Address of the recipient (not delivery address). Required if consignee/delivery address is a service point - Parcel Shop / Parcel Lockers etc."
},
"shipmentDetails": {
"required": [
"orderedProduct",
"totalPieces",
"totalWeight"
],
"type": "object",
"properties": {
"shipmentId": {
"maxLength": 40,
"minLength": 1,
"type": "string",
"description": "Unique Shipment Identifier for the shipment. This is by default generated by the API but can be overwritten by clients."
},
"customerRef1": {
"maxLength": 20,
"minLength": 1,
"type": "string",
"description": "Intended to be printed on Label - 1, also pick and pack info"
},
"customerRef2": {
"maxLength": 20,
"minLength": 1,
"type": "string",
"description": "Intended to be printed on Label - 2, also pick and pack info. Add a value and a description of goods when shipping to the Channel Islands for the customer ref2 field e.g. Toys 10GBP or Toys £10."
},
"orderedProduct": {
"maxLength": 3,
"minLength": 1,
"type": "string",
"description": "Identifies the DHL eCommerce UK 3 digit service code that is to be applied to the shipment. "
},
"totalPieces": {
"minimum": 1,
"maximum": 99,
"type": "integer",
"description": "Total number of pieces/parcels/boxes in shipment. Maximum number of pieces depends on product selected. Please refer the Product API to check max number of pieces for given product"
},
"totalWeight": {
"minimum": 0.1,
"maximum": 999.99,
"type": "number",
"format": "float",
"description": "Total weight of shipment in kilograms to two decimal places"
},
"inBoxReturn": {
"type": "boolean",
"description": "Is an inbox return shipment and label required? If true then shipments -> return object should be provided"
},
"shipmentDesc": {
"maxLength": 90,
"minLength": 1,
"type": "string",
"description": "Description of the contents of the shipment (See reference for general categories)"
},
"dutiesPaid": {
"type": "string",
"description": "Indicates whether duties and taxes for the shipment are paid by the shipper - DDP (Delivered Duties Paid), DAP (Delivered at Place).",
"enum": [
"DDP",
"DAP"
]
},
"freightCharges": {
"maximum": 1000000000,
"exclusiveMaximum": true,
"minimum": 0,
"exclusiveMinimum": false,
"type": "number",
"description": "Freight costs for shipment"
},
"currency": {
"maxLength": 3,
"minLength": 3,
"type": "string",
"description": "Three-letter ISO Currency code. Only accepts GBP for Clearance Declaration for Windsor Framework."
},
"deliveryInstructions": {
"maxLength": 60,
"type": "string",
"description": "Special instructions for the delivery driver"
},
"secureLocation": {
"maxLength": 60,
"type": "string",
"description": "Optional description of a location where a parcel may be safely left at delivery"
},
"partnerCode": {
"type": "string",
"description": "Optional partner code for DHL eCommerce UK partner"
},
"totalPallets": {
"type": "integer",
"description": "Total number of pallets in this shipment if a pallets product. Please refer the Product API to check max number of pallets allowed for pallet product."
},
"exchangeOnDelivery": {
"type": "boolean",
"description": "Is an exchange on delivery required? If true, then a parcel must be collected in return for the parcel delivered. (United Kingdom delivery only)"
},
"carriageForward": {
"type": "boolean",
"description": "This shipment is a carriage forward type shipment"
},
"thirdPartyCollection": {
"type": "boolean",
"description": "This shipment is a third party collection type shipment"
},
"iossShipment": {
"type": "boolean",
"description": "Is IOSS Vat processing required for this shipment? If the product selected from the Product Capabilities API has iossApplies as true and nonIossAllowed as false then this must be set to true."
},
"totalDeclaredValue": {
"maximum": 999999.99,
"exclusiveMaximum": true,
"minimum": 0,
"exclusiveMinimum": true,
"type": "number",
"description": "Total declared value for the shipment. Recommend to provide the declared value at shipment level. Mandatory to provide totalDeclaredValue at shipment level or piece level declared value if delivery outside United Kingdom."
},
"deliveryChoice": {
"type": "string",
"description": "Specify what delivery choice is required for the delivery. Delivery Choices are enabled by account and are mutually exclusive at shipment level. Only one delivery choice can be selected if required. If no delivery choice is selected, the shipment will be delivered according to the service selected.",
"enum": [
"AGE",
"PIN",
"SIG",
"POS"
]
}
},
"description": "Details relating to whole shipment (can be multiple physical boxes / pieces)"
},
"customsDetails": {
"maxItems": 20,
"minItems": 1,
"type": "array",
"description": "Customs details for all commodities contained in shipment. Only applicable if orderedProduct is an International Product. Recommended to provide customs at shipment level. ",
"items": {
"required": [
"itemDescription",
"itemValue",
"itemWeight",
"packagedQuantity"
],
"type": "object",
"properties": {
"countryOfOrigin": {
"maxLength": 2,
"minLength": 2,
"type": "string",
"description": "2-Character Country Code for Origin Manufacturer Country of the product"
},
"descriptionExport": {
"maxLength": 50,
"minLength": 1,
"type": "string",
"description": "Dedicated description for export customs clearance(if required to be different from item description)"
},
"descriptionImport": {
"maxLength": 50,
"minLength": 1,
"type": "string",
"description": "Dedicated description for import customs clearance if required to be different from item description)"
},
"hsCode": {
"maxLength": 8,
"minLength": 8,
"type": "string",
"description": "The Harmonized Tariff Schedule is a number assigned to every possible commodity that can be imported or exported from any country. Please do not include any decimals \".\" in this field. 8 digit HS code required."
},
"itemDescription": {
"maxLength": 50,
"minLength": 1,
"type": "string",
"description": "Detailed description of the commodity item - Used for customs clearance. Accuracy and Detail are required."
},
"itemValue": {
"maximum": 999999.99,
"exclusiveMaximum": true,
"minimum": 0,
"exclusiveMinimum": true,
"type": "number",
"description": "The commercial value of the commodity (per each)."
},
"packagedQuantity": {
"minimum": 1,
"type": "integer",
"description": "Quantity of the same item in the package"
},
"skuNumber": {
"maxLength": 50,
"minLength": 1,
"type": "string",
"description": "SKU #, or item code - Used for product verification on clients website during customs clearance process."
},
"itemWeight": {
"maximum": 1000000,
"exclusiveMaximum": true,
"minimum": 0.01,
"exclusiveMinimum": true,
"type": "number",
"description": "The weight of the commodity in kilograms (per each)"
},
"productIdentifiers": {
"$ref": "#/$defs/ProductIdentifiers"
},
"eudr": {
"$ref": "#/$defs/EUDRData"
}
}
}
},
"pieces": {
"maxItems": 99,
"minItems": 1,
"type": "array",
"description": "One or more pieces which constitute a shipment. Each piece is the physical box/parcel using its own tracking number, label, ID, list of commodities, VAS.",
"items": {
"type": "object",
"properties": {
"pieceId": {
"maxLength": 43,
"minLength": 1,
"type": "string",
"description": "Follows pattern shipmentId-sequence_number (For example JJD49055313895700000010001 for the first piece/parcel if shipmentId was JJD49055313895700000010). Used to track that piece aka physical parcel. This is automatically generated by the API and cannot be overwritten by clients."
},
"pieceRefId": {
"maxLength": 40,
"minLength": 1,
"type": "string",
"description": "Unique customer reference ID for piece; used for barcodes, by large customers"
},
"declaredValue": {
"maximum": 999999.99,
"exclusiveMaximum": true,
"minimum": 0,
"exclusiveMinimum": true,
"type": "number",
"description": "Declared value for the piece. Mandatory if delivery outside United Kingdom. Don't Use Declared value at Piece level rather use total declared value at shipment level."
},
"weight": {
"maximum": 1000000,
"exclusiveMaximum": true,
"minimum": 0.01,
"exclusiveMinimum": true,
"type": "number",
"description": "Piece weight in kilograms to two decimal places"
},
"length": {
"maximum": 1000000000,
"exclusiveMaximum": true,
"minimum": 0,
"exclusiveMinimum": true,
"type": "number",
"description": "Longest measurement of package in cm (provide if available). Mandatory if delivery outside United Kingdom."
},
"width": {
"maximum": 1000000000,
"exclusiveMaximum": true,
"minimum": 0,
"exclusiveMinimum": true,
"type": "number",
"description": "Width dimension of the package in cm (provide if available). Mandatory if delivery outside United Kingdom."
},
"height": {
"maximum": 1000000000,
"exclusiveMaximum": true,
"minimum": 0,
"exclusiveMinimum": true,
"type": "number",
"description": "Height dimension of the package in cm (provide if available). Mandatory if delivery outside United Kingdom."
},
"diameter": {
"maximum": 1000000000,
"exclusiveMaximum": true,
"minimum": 0,
"exclusiveMinimum": true,
"type": "number",
"description": "Diameter dimension of the package in cm (provide if available)."
},
"customsDetails": {
"maxItems": 20,
"minItems": 1,
"type": "array",
"description": "Customs details for all commodities contained in piece. Only applicable if orderedProduct is an International Product. **Don't Use customs at Piece level rather use customs at shipment level.**",
"items": {
"required": [
"itemDescription",
"itemValue",
"itemWeight",
"packagedQuantity"
],
"type": "object",
"properties": {
"countryOfOrigin": {
"maxLength": 2,
"minLength": 2,
"type": "string",
"description": "2-Character Country Code for Origin Manufacturer Country of the product"
},
"descriptionExport": {
"maxLength": 50,
"minLength": 1,
"type": "string",
"description": "Dedicated description for export customs clearance(if required to be different from item description)"
},
"descriptionImport": {
"maxLength": 50,
"minLength": 1,
"type": "string",
"description": "Dedicated description for import customs clearance if required to be different from item description)"
},
"hsCode": {
"maxLength": 8,
"minLength": 8,
"type": "string",
"description": "The Harmonized Tariff Schedule is a number assigned to every possible commodity that can be imported or exported from any country. Please do not include any decimals \".\" in this field. 8 digit HS code required."
},
"itemDescription": {
"maxLength": 50,
"minLength": 1,
"type": "string",
"description": "Detailed description of the commodity item - Used for customs clearance. Accuracy and Detail are required."
},
"itemValue": {
"maximum": 999999.99,
"exclusiveMaximum": true,
"minimum": 0,
"exclusiveMinimum": true,
"type": "number",
"description": "The commercial value of the commodity (per each)."
},
"packagedQuantity": {
"minimum": 1,
"type": "integer",
"description": "Quantity of the same item in
# --- truncated at 32 KB (58 KB total) ---
# Full source: https://artifacts.apis.io/dhl/json-schema/dhl-post-request-format-schema.json
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/dhl-post-request-format"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.