-
Notifications
You must be signed in to change notification settings - Fork 38
/
dhl.json
67 lines (67 loc) · 1.7 KB
/
dhl.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"name": "DHL",
"courier_code": "dhl",
"tracking_numbers": [
{
"name": "DHL Express",
"id": "dhl_express",
"regex": "\\s*(?<SerialNumber>([0-9]\\s*){9,10})(?<CheckDigit>([0-9]\\s*))",
"validation": {
"checksum": {
"name": "mod7"
}
},
"tracking_url": "http://www.dhl.com/en/express/tracking.html?brand=DHL&AWB=%s",
"test_numbers": {
"valid": [
"3318810025",
"73891051146",
"8487135506",
"1099255990",
"3821724944",
"3318810036",
"3318810014"
],
"invalid": [
"3318810010",
"3318810034",
"3318810011"
]
}
},
{
"name": "DHL Express (Piece ID)",
"id": "dhl_express_piece_id",
"regex": "\\s*(J[A-Z]{2,3})(?<SerialNumber>([0-9]\\s*){9,10})",
"validation": {},
"tracking_url": "http://www.dhl.com/en/express/tracking.html?brand=DHL&AWB=%s",
"test_numbers": {
"valid": [
"JJD0099999999",
"JVGL0999999990"
],
"invalid": [
"XJD0099999998"
]
}
},
{
"name": "DHL E-Commerce",
"id": "dhl_ecommerce",
"regex": "\\s*((GM)|(LX)|(RX)|(UV)|(CN)|(SG)|(TH)|(IN)|(HK)|(MY))\\s*(?<SerialNumber>([0-9]\\s*){10,39})",
"validation": {},
"tracking_url": "http://www.dhl.com/en/express/tracking.html?brand=DHL&AWB=%s",
"test_numbers": {
"valid": [
"GM2951173225174494",
"GM 2 9 5 117 32 25 1 7 44 9 4",
"GM295117494011169042"
],
"invalid": [
"GS295117494011169041",
"GR295117494011169045"
]
}
}
]
}