karrioapi / karrio-dashboard

The Open Source Shipping dashboard for karrio
https://karrio.io
Apache License 2.0
75 stars 28 forks source link

Add Support for Bulk Tracking #262

Open MarcoWel opened 1 year ago

MarcoWel commented 1 year ago

Is your feature request related to a problem? Please describe. For tracking external shipments with karrio Dashboard, a tracker needs to be created one by one and the carrier needs to be chosen. This is tedious and time consuming.

Describe the solution you'd like There should be a bulk tracking feature in karrio Dashboard where I can copy&pase tracking numbers into a text box (one by line), and karrio is auto-detecting the carrier and adding trackers automatically.

Describe alternatives you've considered Other services like 17track have this feature: https://www.17track.net

Additional context None

MarcoWel commented 1 year ago

Carrier detection can be done mostly by regex - the regex can be pre-defined in the carrier settings.

UPS:         (1Z[A-Z0-9]{6}[0-9]{10})
DPDHL:       (0034[0-9]{16}|C[A-Z]{1}[0-9]{9}DE)
DHL Express: ([0-9]{10}|J?JD[0-9]{18})

DPDHL and DHL Express can/should both be tracked by the DHL Unified Tracking API.

Edit: DPDHL regex changed

MarcoWel commented 1 year ago

I see there is a similar milestone on the roadmap already: https://github.com/orgs/karrioapi/projects/12/views/1?pane=issue&itemId=10124218

danh91 commented 1 year ago

That's right. It's on the roadmap. Hopefully, we will tackle it very soon

MarcoWel commented 1 year ago

More reading on this topic:

MarcoWel commented 1 year ago

Please check here for a detailed reference on DPDHL/DHL Express tracking codes: https://github.com/jkeen/tracking_number_data/issues/30#issuecomment-1570540792