Items
Update item
Updates the item for the specified item id. <br><br>This operation only works for items attached to orders that are in the OPEN state. Called on items of orders in the FINALIZED state leads to an 404 error (an item with the desired attributes cannot be found). The following fields are not updatable: product, serviceLevel, destinationCountry
put/dpi/shipping/v1/items/{itemId}
Request
- Base URLhttps://api-sandbox.dhl.com
- Authnone declared. Required headers: Authorization
Path parameters
itemIdstring required
The id of the item.
Headers
Authorizationstring required
Bearer Auth access_token together with the "Bearer" prefix is required. Example of the header value:"Bearer 0UuA....."
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
Item data.
Example response
{
"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
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.