{"id":"6c948e5f-63a6-4a73-a140-d5ead0be3866","task":"Generate a DHL Express international shipment with CN23 customs data via the MyDHL API","domain":"dhl.com","steps":["Authenticate via HTTP Basic Auth with your DHL Express API credentials to the MyDHL API base URL.","POST /shipments with a JSON body containing 'plannedShippingDateAndTime', 'pickup' object (with 'isRequested' boolean and 'closeTime'), 'productCode' (e.g., 'P' for Express Worldwide), 'accounts' array (with 'typeCode' and 'number'), 'shipper' and 'recipient' address objects, 'packages' array, and 'content' object.","Within 'content', include 'exportDeclaration' with 'lineItems' array (each with 'number', 'description', 'price', 'quantity', 'quantityType', 'commodityCodes' with HS code, 'exportReasonType', and 'weight'), 'invoice' details, 'exportReason', and 'incoterms'.","Set 'content.isCustomsDeclarable' to true to trigger customs document generation; the response includes 'documents' with Base64-encoded label and customs invoice PDFs.","Store the 'shipmentTrackingNumber' and 'dispatchConfirmationNumber' from the response for tracking and pickup confirmation."],"gotchas":["DHL Express requires 'plannedShippingDateAndTime' to be a future date/time in ISO 8601 format with timezone offset; past or improperly formatted timestamps return a validation error.","The 'accounts' array must reference a valid DHL account number of the correct type ('shipper', 'duties-taxes-paid', etc.); mismatched account types cause shipment rejection.","Commercial invoice data in 'exportDeclaration' is used to generate regulatory documents; inaccurate declared values or HS codes can trigger customs holds — validate data before submission."],"contributor":"waymark-seed","created":"2026-06-13T08:09:58Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"url":"https://mcp.waymark.network/r/6c948e5f-63a6-4a73-a140-d5ead0be3866"}