-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deutsche Post DHL Tracking numbers not working #30
Comments
I started looking into this and found some documentation on it, but the checksum algorithm is a more complicated than the standard fare, and I'm having some trouble finding an implementation to add to tracking_number. They say it's a CRC-4 checksum algorithm and digest-crc has every CRC-related algorithm but that particular one, it seems. Bit shifting algorithms are not my forte. |
For DHL Parcels (national/EU/international), you can check the regex format here: It is most common for any commercial shipments with DHL. Then there is Deutsche Post letter mail which works a bit differently. Those shipments cannot be tracked by the DHL API, only with a dedicated tracking for Deutsche Post: For most registered international mailing with Deutsche Post, tracking numbers usually start with R and end with DE. There might be 3 trailing digits, which are usually omitted though.
Then for some Deutsche Post letters, there is only a 20-hex-digit "Franking ID" shown on the label looking like follows:
This ID including checksum calculation described in chapter 6.2 of the document you linked above: Note: For all shown regex, whitespace should be stripped from the target prior to matching. |
Putting it together:
Checksum DHL Express Waybill
Checksum DHL Express Piece Code License Plate (GS1-128 SSCC/NVE)No check digit! More info on DHL Express License Plate Codes: Checksum DHL Paket / Europaket (GS1-128 SSCC/NVE)
Check digit calculator: https://www.gs1.org/services/check-digit-calculator Checksum DHL Weltpaket/Retoure:
Checksum Deutsche Post / DHL International (UPU S10)
Checksum Deutsche Post Franking ID
|
Can someone provide multiple examples of valid 20 character franking ID values for testing? |
Hi
Love this gem, it's working really well for us tracking UPS in the UK. We've just started shipping in Germany using Deutsche Post DHL. All of the tracking numbers we have are 20 Digits long and seem to start with the digits 00340434
Does anyone have any idea about the format of these tracking numbers ? I'd like to try and help to add support but I can't find if there is any further information embedded.
The text was updated successfully, but these errors were encountered: