Developer - How to connect
How to connect
It is very easy to connect to our API's!
Follow these steps:
- Apply for a key here.
- Setup the connection to our API gateway.
- Try the API.
Apply for a key
To use our API you must first register an application and apply for a key. You will get a key: it is a shared secret that identifies you as a developer. A valid key must be sent with every request. You may ask for more than one key, but to get started, one key will suffice. Please contact us in this case. Subscribing to our API service will allow you to make a limited number of requests to the API. This should be enough to explore the API and its content. Once you develop an application for serious use, contact us to discuss raising your call quota.
Setup the connection to our API gateway
Our API is a collection of RESTful and SOAP web services. You interact with our resources by sending an HTTP message to a URL. The URL determines the resource and for RESTful services the HTTP method defines the type of action. The path determines whether you access the test or production environment.
Schema, host and port (443) are always the same: https://api.lhcargo.com
This key must be sent as a HTTP header like this:
Try the API
After you received your key and installed the connection, you can try our API.
A complete example request looks like this:
GET /shipment/tracking?aWBPrefix=020&aWBNumber=11111111 HTTP/1.1 Host: api.lhcargo.com APIKEY: ZmUXXXXXXXXXXXXWFj