Dayton Freight REST Services

Setup

In order to get started with the REST API, you must have a daytonfreight.com username/password. If you do not have a web account, you can set one up here.

 

It is however, important to note, that a Dayton Freight Lines customer account code will be required in order to have your web account authorized by our customer service department. If you have any questions regarding this issue, please contact our customer service department.

 

Once your web account is setup and authorized, you can enable web services by going to daytonfreight.com and navigating to the "Shipping" menu and selecting "My Account". From "My Account" select "Web Account Information" and there you will find options to turn on your web service account.

First/last name, email address and phone number of the developer will be required in order by turn on web services. We would like to be able to keep the developer informed of any API changes.

Authentication

Dayton Freight supports Basic authentication which requires that you send your credentials with each request to the service being called.

Basic Authentication

Basic authentication is quite simple. You will be adding an “Authorization” header to every request. This header will consist of three items, the static value “Basic” followed by a base64 encoded string that contains your user name and password separated by a colon.

Example: Authorization: Basic VXNlcm5hbWU6UGFzc3dvcmQ=

Since credentials are being sent with every request, using the SSL protocol is required when using Basic authentication.