dhl-node
v2.0.0
Published
MyDHL API node.js client
Downloads
77
Readme
dhl-node
A node client that implements the MyDHL API which is based on SOAP.
npm install dhl-node
This client implements the RateRequest
, RequestPickup
, ShipmentRequest
, and TrackingRequest
requests. The related scripts of this repo allow you to easily test these requests, and adapt them to your needs.
See the API documentation and the valid values of various fields.
Authentication
DHL provides a test account and a live account when giving access. Both of these accounts have an associated username, password, and an account number. You can copy auth.sample.js
as auth.js
, and replace its values with the actual values of your account to use the scripts of this repo.
Make sure to use the methods prefixed with test
such as testTrackingRequest()
when using your test credentials, and their prefixless version such as trackingRequest()
when using your live credentials.