Drayage API documentation
Drayage API (1.0.0)
- Production serverhttps://api.drayeasy.com/api/v2/users/profile
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api.drayeasy.com/api/v2/users/profile \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Successful response
The maximum number of search queries allowed within a defined time frame.
The number of search queries a user can still perform before hitting the limit.
Time in seconds until the search rate limit is reset to its maximum value.
The maximum number of create rate requests a user can make within a set period.
The available quota of create rate requests before reaching the allocated limit.
{ "name": "John Doe", "available_balance": 90937.58, "rate_search_limit": 100, "remaining_rate_search_limit": 100, "rate_search_limit_refresh_in_seconds": 100, "requested_rate_create_limit": 100, "remaining_requested_rate_create_limit": 100, "requested_rate_create_limit_refresh_in_seconds": 100 }
Request
This API endpoint offers a flexible way to retrieve information about cities by supporting search queries based on city names or UN/LOCODEs. It's designed to help users find detailed city data, including geographic coordinates and zip codes.
Note: Either the 'query' or 'unlocode' parameter must be present. However, 'unlocode' should be the only active option when both 'query' and 'unlocode' parameters are present.
- Production serverhttps://api.drayeasy.com/api/v2/cities
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.drayeasy.com/api/v2/cities?query=Ontario%2CCA&unlocode=USONT' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'- ontario
- losAngeles
{ "data": [ { … } ] }
Request
This API endpoint is designed to facilitate detailed searches for freight rates across various intermodal regions. It allows users to specify criteria such as intermodal region ID, destination city ID, container size, cargo types, and whether the area has limited access.
The container size (20, 40, 45). It is strongly recommended to send request with cntr_size parameter, if not, 40 will be used by default
2: HAZMAT, 3: REEFER. For example, [2, 3] refers to the hazmat and reefer container. empty array or null refers to general cargo
Cargo value, if not provided, premium will be 0, minimum is 0, maximum is 1000000
- Production serverhttps://api.drayeasy.com/api/v2/rates/advanceSearch
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.drayeasy.com/api/v2/rates/advanceSearch?intermodal_region_id=0&to_city_id=0&cntr_size=20&cargo_types=2&weight=0.1&weight_unit=lb&cargo_value=100000&is_limited_area_access=true' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "data": { "intermodal_region": { … }, "to_city": { … }, "currency": "USD", "remaining_limit": 18, "rates": [ … ], "premium": 56, "quote_id": "string" } }
- Production serverhttps://api.drayeasy.com/api/v2/warehouses/public
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.drayeasy.com/api/v2/warehouses/public?per_page=50&page=1&keyword=test' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "data": [ { … } ], "links": { "first": "https://api.drayeasy.com/api/v2/warehouses/public?page=1", "last": "https://api.drayeasy.com/api/v2/warehouses/public?page=1", "prev": "string", "next": "string" }, "meta": { "current_page": 1, "from": 1, "last_page": 1, "path": "https://api.drayeasy.com/api/v2/warehouses/public", "per_page": "50", "to": 9, "total": 9 } }