Orders
Add Items to an Order
Add new item(s) to a open order.
post/dpi/shipping/v1/orders/{orderId}/items
Request
- Base URLhttps://api-sandbox.dhl.com
- Authnone declared. Required headers: Authorization
Path parameters
orderIdstring required
The id of the order.
Headers
Authorizationstring required
Bearer Auth access_token together with the "Bearer" prefix is required. Example of the header value:"Bearer 0UuA....."
ThirdPartyVendor-IDstring
The ID of the 3PV/Third Party Vendor who adds an item to this order. If no 3PV software is used please leave out of request
Request body
Example request
[
{
"product": "GPT",
"serviceLevel": "PRIORITY",
"recipient": "Doris Bronson",
"addressLine1": "Uptown street 10",
"addressLine2": "2nd floor",
"postalCode": "SW1A 2AA",
"city": "London",
"destinationCountry": "GB",
"custRef": "BRE-2021-XIT",
"recipientPhone": "+441234567890",
"recipientEmail": "doris@somewhere.non.eu",
"senderTaxId": "IOSS number",
"importerTaxId": "IOSS number",
"shipmentAmount": 100,
"shipmentCurrency": "EUR",
"shipmentGrossWeight": 1500,
"returnItemWanted": false,
"shipmentNaturetype": "SALE_GOODS",
"contents": [
{
"contentPieceHsCode": 1234567890,
"contentPieceDescription": "Hairspray",
"contentPieceValue": "120.50",
"contentPieceNetweight": 1200,
"contentPieceOrigin": "DE",
"contentPieceAmount": 2
}
]
}
]Response
Data of created items.
unknown required
Example response
{
"id": 123456,
"barcode": "RX12345678DE",
"product": "GPT",
"serviceLevel": "PRIORITY",
"custRef": "BRE-2021-XIT",
"recipient": "Doris Bronson",
"recipientPhone": "+441234567890",
"recipientEmail": "doris@somewhere.non.eu",
"addressLine1": "Uptown street 10",
"addressLine2": "2nd floor",
"city": "London",
"postalCode": "SW1A 2AA",
"destinationCountry": "GB",
"shipmentCurrency": "EUR",
"shipmentGrossWeight": 1500,
"senderTaxId": "IOSS number",
"importerTaxId": "IOSS number",
"returnItemWanted": false,
"shipmentNaturetype": "SALE_GOODS",
"contents": [
{
"contentPieceHsCode": 1234567890,
"contentPieceDescription": "Hairspray",
"contentPieceValue": "120.50",
"contentPieceNetweight": 1200,
"contentPieceOrigin": "DE",
"contentPieceAmount": 2
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.