DHL · Schema
DomesticLabel
FreightLogisticsShippingE-CommerceTrackingSupply ChainExpress DeliveryPostal ServicesParcel
Properties
| Name | Type | Description |
|---|---|---|
| pickup | string | DHL eCommerce pickup account number. You will receive this after onboarding with our DHL eCommerce sales and customer implementation team. This is not the same as the Sold To Account number. (M for Do |
| orderedProductId | string | DHL eCommerce three-character product code. See Reference for list of valid Product IDs. [Products] https://developer.dhl.com/api-reference/references-dhl-ecommerce-americas#get-started-section/domest |
| merchantId | string | Optional for International and Domestic (O for Domestic and International) |
| distributionCenter | string | Primary DHL eCommerce Distribution center assigned to your products/services.This is the distribution center where your packages are going to be lodged after pickup. Requires a valid US distribution c |
| consigneeAddress | object | Address of the consignee.(M for Domestic and International) |
| returnAddress | object | Address where package should be returned if it cannot be delivered.(M for Domestic and International) |
| packageDetail | object | Object that contains the package detail.(M for Domestic and International) |
| shippingCost | object | Object that contains the package shipping cost details.(O for Domestic and M for International) |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/dhl/json-schema/dhl-domestic-label-schema.json",
"title": "DomesticLabel",
"x-generated": "2026-11-12",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/dhl-label-dhl-ecommerce-americas-openapi.yml#/components/schemas/DomesticLabel",
"type": "object",
"required": [
"pickup",
"orderedProductId",
"distributionCenter",
"consigneeAddress",
"returnAddress",
"packageDetail"
],
"properties": {
"pickup": {
"type": "string",
"maxLength": 10,
"minLength": 4,
"pattern": "^[\\S]+$",
"description": "DHL eCommerce pickup account number. You will receive this after onboarding with our DHL eCommerce sales and customer implementation team. This is not the same as the Sold To Account number. (M for Domestic and International)"
},
"orderedProductId": {
"type": "string",
"maxLength": 3,
"minLength": 3,
"pattern": "^[A-Z]{3}$",
"description": "DHL eCommerce three-character product code. See Reference for list of valid Product IDs. [Products] https://developer.dhl.com/api-reference/references-dhl-ecommerce-americas#get-started-section/domestic-products (M for Domestic and International)"
},
"merchantId": {
"type": "string",
"minLength": 1,
"maxLength": 30,
"description": "Optional for International and Domestic (O for Domestic and International)"
},
"distributionCenter": {
"type": "string",
"maxLength": 6,
"minLength": 6,
"pattern": "^[A-Z0-9]{6}$",
"description": "Primary DHL eCommerce Distribution center assigned to your products/services.This is the distribution center where your packages are going to be lodged after pickup. Requires a valid US distribution center code. See the [Distribution Centers] https://developer.dhl.com/api-reference/references-dhl-ecommerce-americas#get-started-section/distribution-centers section for more information. (M for Domestic and International)"
},
"consigneeAddress": {
"type": "object",
"description": "Address of the consignee.(M for Domestic and International)",
"properties": {
"name": {
"type": "string",
"maxLength": 50,
"minLength": 1,
"pattern": "^$|.*[^\\s].*",
"description": "Name of consignee. Mandatory for international destinations. (C for Domestic and M for International)"
},
"companyName": {
"type": "string",
"maxLength": 30,
"minLength": 0,
"pattern": "^$|.*[^\\s].*",
"description": "Company name of consignee. Either name or company name is required for US domestic packages. (C for Domestic and International)"
},
"address1": {
"type": "string",
"maxLength": 50,
"minLength": 1,
"pattern": "^$|.*[^\\s].*",
"description": "Address line 1 of consignee. (M for Domestic and International)"
},
"address2": {
"type": "string",
"maxLength": 50,
"minLength": 0,
"description": "Address line 2 of consignee. (O for Domestic and International)"
},
"address3": {
"type": "string",
"maxLength": 50,
"minLength": 0,
"description": "Address line 3 of consignee. Not supported for US domestic consignee addresses. For International packages, address line 3 is accepted if address line 2 is also provided. (N for Domestic and C for International)"
},
"city": {
"type": "string",
"maxLength": 40,
"minLength": 1,
"pattern": "^$|.*[^\\s].*",
"description": "City of consignee. (M for Domestic and International)"
},
"state": {
"type": "string",
"maxLength": 50,
"minLength": 0,
"description": "State of consignee. Must be a valid 2-character state code for US domestic consignee address. Mandatory for some international destinations. See the [International Regulations]( https://developer.dhl.com/api-reference/references#get-started-section/international-regulations ) section for more information. (C for Domestic and O for International)"
},
"country": {
"type": "string",
"maxLength": 2,
"minLength": 2,
"pattern": "^[A-Z]{2}$",
"description": "Country of consignee. Must be a valid 2-character ISO country code. (M for Domestic and International)"
},
"postalCode": {
"type": "string",
"maxLength": 10,
"minLength": 3,
"description": "Postal Code of consignee. For US domestic consignee address, only 5-digit (NNNNN) and extended 9-digit (NNNNN-NNNN) formats are allowed. For other destinations, requirement varies by Country. (M for Domestic and C for International)"
},
"email": {
"type": "string",
"maxLength": 50,
"minLength": 0,
"description": "Email of consignee. Mandatory for some international destinations. See the [International Regulations]( https://developer.dhl.com/api-reference/references#get-started-section/international-regulations ) section for more information. (O for Domestic and C for International)"
},
"phone": {
"type": "string",
"maxLength": 26,
"minLength": 0,
"description": "Phone of consignee. Mandatory for some international destinations. See the [International Regulations]( https://developer.dhl.com/api-reference/references#get-started-section/international-regulations ) section for more information. (O for Domestic and C for International)"
},
"deliveryInstructions": {
"type": "string",
"minLength": 0,
"maxLength": 500,
"description": "This is where delivery instructions can be provided. (O for Domestic and International)"
},
"isBusiness": {
"type": "boolean",
"description": "Indicates whether the consignee address is a business address (as opposed to a private residence). (O for Domestic and International)",
"enum": [
true,
false
]
},
"idNumber": {
"type": "string",
"minLength": 0,
"maxLength": 30,
"description": "Consignee government ID number. Mandatory for some international destinations. See the [International Regulations]( https://developer.dhl.com/api-reference/references#get-started-section/international-regulations ) section for more information. (N for Domestic and C for International)'"
},
"idType": {
"type": "number",
"minimum": 0,
"maximum": 1,
"enum": [
1,
2,
3,
4
],
"description": "Consignee government ID number type. See [Consignee ID]( https://developer.dhl.com/api-reference/references#get-started-section/consignee-id-types ) Types for valid values. Mandatory for some international destinations. See the [International Regulations]( https://developer.dhl.com/api-reference/references#get-started-section/international-regulations ) section for more information. (N for Domestic and C for International)"
},
"taxId": {
"type": "string",
"minLength": 0,
"maxLength": 50,
"description": "Consignee government ID number. Mandatory for some international destinations. See the [International Regulations]( https://developer.dhl.com/api-reference/references#get-started-section/international-regulations ) section for more information. (N for Domestic and C for International)"
},
"taxIdType": {
"type": "number",
"enum": [
0,
1,
2,
3,
4,
5
],
"description": "Consignee tax ID type. See [Tax ID Types]( https://developer.dhl.com/api-reference/references#get-started-section/tax-id-types ) for valid values. Mandatory for some international destinations. See the [International Regulations]( https://developer.dhl.com/api-reference/references#get-started-section/international-regulations ) section for more information. (N for Domestic and C for International)"
}
}
},
"returnAddress": {
"type": "object",
"description": "Address where package should be returned if it cannot be delivered.(M for Domestic and International)",
"properties": {
"name": {
"type": "string",
"maxLength": 50,
"minLength": 1,
"pattern": "^$|.*[^\\s].*",
"description": "Name of return address. (C for Domestic and M for International)"
},
"companyName": {
"type": "string",
"maxLength": 30,
"minLength": 0,
"pattern": "^$|.*[^\\s].*",
"description": "Company name of return address. Either name or company name is required for US domestic packages. (C for Domestic and International)"
},
"address1": {
"type": "string",
"maxLength": 50,
"minLength": 1,
"pattern": "^$|.*[^\\s].*",
"description": "Address line 1 of return address. (M for Domestic and International)"
},
"address2": {
"type": "string",
"maxLength": 50,
"minLength": 0,
"description": "Address line 2 of return address. (O for Domestic and International)"
},
"address3": {
"type": "string",
"maxLength": 50,
"minLength": 0,
"description": "Address line 3 of return address. (N for Domestic and C for International)"
},
"city": {
"type": "string",
"maxLength": 40,
"minLength": 1,
"pattern": "^$|.*[^\\s].*",
"description": "City of return address. (M for Domestic and International)"
},
"state": {
"type": "string",
"maxLength": 50,
"minLength": 0,
"description": "State of return address. (C for Domestic and O for International)"
},
"country": {
"type": "string",
"maxLength": 2,
"minLength": 2,
"pattern": "^[A-Z]{2}$",
"description": "Two-character ISO return address country code. (M for Domestic and International)"
},
"postalCode": {
"type": "string",
"maxLength": 10,
"minLength": 3,
"description": "Postal code of return address. (M for Domestic and C for International)"
},
"email": {
"type": "string",
"maxLength": 50,
"minLength": 0,
"description": "Email of return address. Mandatory for some international destinations. See the [International Regulations]( https://developer.dhl.com/api-reference/references#get-started-section/international-regulations ) section for more information. (O for Domestic and International)"
},
"phone": {
"type": "string",
"maxLength": 26,
"minLength": 0,
"description": "Phone of return address. Mandatory for some international destinations. See the [International Regulations]( https://developer.dhl.com/api-reference/references#get-started-section/international-regulations ) section for more information. (O for Domestic and International)"
}
}
},
"packageDetail": {
"type": "object",
"description": "Object that contains the package detail.(M for Domestic and International)",
"required": [
"packageId",
"packageDescription",
"weight"
],
"properties": {
"packageId": {
"type": "string",
"maxLength": 30,
"minLength": 1,
"pattern": "^[a-zA-Z0-9]([a-zA-Z0-9_.\\-]*[a-zA-Z0-9])?$",
"description": "Customer-provided package ID, also known as the CCN (customer confirmation number) or the GM number. Not case sensitive. Can contain the following special characters except in the beginning or the end of the string \"-\", \".\",\"_\". We recommend a minimum length of 8 characters.(M for Domestic and International)"
},
"packageDescription": {
"type": "string",
"maxLength": 50,
"minLength": 1,
"description": "Description of the contents of the package. (M for Domestic and International)"
},
"packageReference": {
"type": "string",
"maxLength": 20,
"minLength": 0,
"description": "A prefix that will be prepended to the human-readable Package ID and display at the bottom of the label along with a barcode of the package ID. (O for Domestic and International)"
},
"orderSource": {
"type": "string",
"description": "Web shop, web platform, or merchant site from which the order originated. (O for Domestic and International)",
"minLength": 0,
"maxLength": 80
},
"customsCertificate": {
"type": "string",
"description": "Customs Certificate. (N for Domestic and O for International)",
"minLength": 0,
"maxLength": 50
},
"customsLicense": {
"type": "string",
"description": "Customs License. (N for Domestic and O for International)",
"minLength": 0,
"maxLength": 50
},
"contentCategory": {
"type": "string",
"description": "Identified the DHL eCommerce dangerous goods category code. DHL eCommerce accepts two types of Dangerous Goods, Lithium batteries and Limited Quantity material (other regulated materials for domestic transport only). While some sub-categories of Lithium batteries can be transported via DHL eCommerce’s expedited air network, Limited Quantity materials are only allowed for ground transportation. Refer to valid values under References.(O for Domestic and International)",
"minLength": 2,
"maxLength": 2
},
"service": {
"type": "string",
"minLength": 6,
"description": "Shipments originating and destined to the United States will default to DELCON. Signature confirmation* (SIGCON) is also available for certain products at an additional cost (please contact your Sales representative for more details). International shipments will default to the tracking capabilities available to the product/service selected. Shipment tracking is available for all parcel products. Tracking is available through the DHL eCommerce web portal, or through the USPS tracking site. For Domestic shipments DELCON, or SIGCON. For International shipments, SIGCON is not supported.(O for Domestic and N for International)",
"enum": [
"DELCON",
"SIGCON"
]
},
"serviceEndorsement": {
"type": "string",
"minLength": 0,
"maxLength": 1,
"enum": [
"1",
"2",
"3",
"4"
],
"description": "Ancillary service endorsements are used to request an addressee’s new address and to provide the USPS with instructions on how to handle undeliverable-as-addressed pieces. The endorsements are the same for all classes of US Domestic packages, but the treatment and cost differ by class of mail. Use of an ancillary service endorsement on a mailpiece obligates the mailer to pay any applicable charges for forwarding, return, and separate address notification charges. Refer valid values under Reference.(O for Domestic and N for International)"
},
"billingReference1": {
"type": "string",
"maxLength": 30,
"minLength": 0,
"description": "String of characters that can be used to aggregate billing data (can be unique per parcel). billingReference1 is also referred to as Reference. (O for Domestic and International)"
},
"billingReference2": {
"type": "string",
"maxLength": 30,
"minLength": 0,
"description": "Secondary string of characters that can be used to aggregate billing data (can be unique per parcel). billingReference2 is also referred to as Batch(O for Domestic and N for International)"
},
"customLabelText1": {
"type": "string",
"maxLength": 50,
"minLength": 0,
"description": "String of characters that can be used to show additional text on the label to assist with pick/pack processes. Values entered will NOT be captured on the invoices. Some examples include order numbers, miscellaneous notes, and department information.(O for Domestic and International)"
},
"customLabelText2": {
"type": "string",
"maxLength": 50,
"minLength": 0,
"description": "Secondary string of characters that can be used to show additional text on the label to assist with pick/pack processes. Values entered will NOT be captured on the invoices. Some examples include order numbers, miscellaneous notes, and department information. (O for Domestic and International)"
},
"weight": {
"type": "object",
"required": [
"value",
"unitOfMeasure"
],
"description": "Object that contains the package weight details. Mainly used for validating and identifying the right shipping product. See Weights for defined values. Please conform to product limitations. (M for Domestic and International)",
"properties": {
"value": {
"type": "number",
"maximum": 999999.99,
"minimum": 0,
"description": "Total package weight. (M for Domestic and International)",
"format": "float"
},
"unitOfMeasure": {
"type": "string",
"description": "Unit of measure for the weight. (M for Domestic and International)",
"enum": [
"LB",
"OZ",
"KG",
"G"
]
}
}
},
"dimension": {
"type": "object",
"description": "Object that contains the package dimension details. This will be used to calculate the dimensional weight. See [Weights]( https://developer.dhl.com/api-reference/references#get-started-section/weight-units ) for defined values. Please conform to product limitations. (O for Domestic and International)",
"required": [
"length",
"width",
"height",
"unitofMeasure"
],
"properties": {
"length": {
"type": "number",
"format": "float",
"description": "Length of the package. Please conform to product limitations. (M for Domestic and International)",
"minimum": 0,
"maximum": 9999.99
},
"width": {
"type": "number",
"format": "float",
"description": "Width of the package. Please conform to product limitations. (M for Domestic and International)",
"minimum": 0,
"maximum": 9999.99
},
"height": {
"type": "number",
"format": "float",
"description": "Height of the package. Please conform to product limitations. (M for Domestic and International)",
"minimum": 0,
"maximum": 9999.99
},
"unitOfMeasure": {
"type": "string",
"description": "Unit of measure for dimensions. (M for Domestic and International)",
"enum": [
"IN",
"CM"
]
},
"packageType": {
"type": "string",
"description": "Type of package (used for determining dimensional weight). If packageType is anything other than '1' then a discount factor will be applied. See [Package Types]( https://developer.dhl.com/api-reference/references#get-started-section/package-types ) for valid values. (O for Domestic and International )",
"enum": [
"1",
"2",
"3"
]
}
}
}
}
},
"shippingCost": {
"type": "object",
"description": "Object that contains the package shipping cost details.(O for Domestic and M for International)",
"required": [
"currency"
],
"properties": {
"currency": {
"type": "string",
"maxLength": 3,
"minLength": 3,
"description": "Three-character ISO Currency code. (M for Domestic and International)"
},
"freight": {
"type": "number",
"format": "float",
"maximum": 99999999.99,
"minimum": 0,
"description": "Freight charges for the package in the currency specified. (O for Domestic and International)"
},
"declaredValue": {
"type": "number",
"format": "float",
"maximum": 99999999.99,
"minimum": 0,
"description": "Total declared value for the package in the currency specified. While not mandatory, best practice is to provide if available. Many International destinations have a limit of 2500 USD. (O for Domestic and International)"
},
"insuredValue": {
"type": "number",
"format": "float",
"maximum": 99999999.99,
"minimum": 0,
"description": "Total insured value of the package in the currency specified. (O for Domestic and International)"
},
"duty": {
"type": "number",
"format": "float",
"minimum": 0,
"maximum": 99999999.99,
"description": "Duty charges for the package in the currency specified. (O for Domestic and International)"
},
"dutiesPaid": {
"type": "boolean",
"enum": [
true,
false
],
"description": "Whether or not duties were pre-paid by the consignee; false for DDU shipments, true for DDP shipments. If the user doesn’t specify then its marked DDU by default. Some international products and destinations do not offer both DDP and DDU. See the [International Regulations](https://developer.dhl.com/api-reference/references#get-started-section/international-regulations) section for more information.(N for Domestic and O for International)"
},
"taxesPaid": {
"type": "boolean",
"enum": [
true,
false
],
"description": "Whether or not duties were pre-paid by the shipper. (N for Domestic and O for International)"
},
"tax": {
"type": "number",
"format": "float",
"description": "Tax charges for the package in the currency specified. (O for Domestic and International)",
"minimum": 0,
"maximum": 99999999.99
}
}
}
}
}
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-domestic-label"
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.