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" } }
Request
This endpoint is used to create new orders with detailed information about the shipment, including container details, delivery information, contact emails, and more.
The unique identifier for a quote. Retrieve this ID from the rate search API.
Final Port (Intermodal Region), Required if destination_type is ramp port
Final Port ETA, Required if destination_type is ramp port
Delivery address. Required when warehouse_id is null.
Array of Container
Container Number, Four Letters + Seven Numbers
Container size and type specification.
Available container types:
20GP: 20' x 8'6" - DRY CONTAINER20RF: 20' x 8'6" - REEFER CONTAINER20TK: 20' x 8'6" - TANK CONTAINER20OT: 20' x 8'6" - OPENTOP CONTAINER40GP: 40' x 8'6" - DRY CONTAINER40OT: 40' x 8'6" - OPENTOP CONTAINER40RF: 40' x 8'6" - REEFER CONTAINER40TK: 40' x 8'6" - TANK CONTAINER40HC: 40' x 9'6" - HIGH CUBIC, DRY CONTAINER40HQ: 40' x 9'6" - HIGH CUBIC, DRY CONTAINER40HR: 40' x 9'6" - HIGH CUBIC, REEFER CONTAINER40RH: 40' x 9'6" - HIGH CUBIC, REEFER CONTAINER45HC: 45' x 9'6" - HIGH CUBIC, DRY CONTAINER45HQ: 45' x 9'6" - HIGH CUBIC, DRY CONTAINER45RH: 45' x 9'6" - HIGH CUBIC, REEFER CONTAINER
Available types:
- 0: TBD
- 1: Pallet Load
- 2: Floor Load
- 3: Other
- Production serverhttps://api.drayeasy.com/api/v2/createOrder
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.drayeasy.com/api/v2/createOrder \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"mbl_number": "MBL123456789",
"rate_id": "RATE123",
"quote_id": "fb8ed1ce-203f-4ffa-b70e-f91662a7eeb9",
"destination_type": 1,
"live_or_drop": 0,
"port_of_discharge_id": 123,
"port_of_discharge_eta": "2023-10-01",
"final_port_id": 456,
"final_port_eta": "2023-10-05",
"warehouse_id": 789,
"delivery_address": "1234 Main St, Anytown, USA",
"pu_number_agent_id": 101,
"customer_reference_number": "CUST12345",
"customer_memo": "Handle with care",
"terminal_firms_code": "TFC123",
"urgent": false,
"contact_emails": [
"contact@example.com"
],
"containers": [
{
"number": "ABCD1234567",
"type": "40HC",
"seal_number": "SEAL123",
"package": "20 Cartons",
"weight": 1000,
"delivery_reference": "DELREF123",
"urgent": false,
"is_dg": false,
"is_soc": false,
"is_overweight": false,
"is_reefer": false,
"commodity": [
"string"
],
"loading_type": 1,
"cargo_value": 100000
}
],
"file_list": [
{
"file": "string",
"type": "DO"
}
]
}'{ "data": { "id": 9079, "mbl_number": "MEDU12341232131", "booking_number": "TEST123456", "status": "open", "urgent": false, "delivery_address": "delivery_address", "customer_reference_number": "customer_reference_number", "customer_memo": "TEST", "released_status": "Not Released", "destination_type": 2, "destination_type_name": "Ramp Port", "port_of_discharge_eta": "2023-09-13", "port_of_discharge": { … }, "final_port_eta": "2023-10-06", "final_port": { … }, "commodity": "commodity", "contact_emails": [ … ], "terminal_firms_code": "S478", "amount_total": "606.00", "live_or_drop": 1, "created_at": "2023-09-19", "user": { … }, "containers": [ … ], "pickup_number_agent": { … }, "warehouse": { … }, "rate_id": "S200942", "rate": { … }, "scenarios": [ … ], "possible_charges": [ … ] } }
- Production serverhttps://api.drayeasy.com/api/v2/orders
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.drayeasy.com/api/v2/orders?id=0&mbl_number=string&booking_number=string&container_number=string&customer_reference_number=string&page=1&per_page=20' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "data": [ { … } ], "links": { "first": "https://api.drayeasy.com/api/v2/orders?page=1", "last": "https://api.drayeasy.com/api/v2/orders?page=1", "prev": null, "next": null }, "meta": { "current_page": 1, "from": 1, "last_page": 1, "path": "https://api.drayeasy.com/api/v2/orders", "per_page": 20, "to": 1, "total": 1 } }
Request
This endpoint allows you to upload files or provide URLs associated with a specific order. The request should include either an array of files (file_list) or an array of URLs (urls).
- multipart/form-data
- application/json
- Production serverhttps://api.drayeasy.com/api/v2/orders/{orderId}/files
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- multipart/form-data
- application/json
curl -i -X POST \
'https://api.drayeasy.com/api/v2/orders/{orderId}/files' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: multipart/form-data' \
-F 'file_list[0][file]=string' \
-F 'file_list[0][type]=DO' \
-F 'urls[0][url]=http://example.com' \
-F 'urls[0][type]=DO'{ "data": [ { … } ] }
- Production serverhttps://api.drayeasy.com/api/v2/orders/{orderId}/files
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.drayeasy.com/api/v2/orders/{orderId}/files' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "data": [ { … } ] }
- Production serverhttps://api.drayeasy.com/api/v2/orders/{orderId}/files/{fileId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.drayeasy.com/api/v2/orders/{orderId}/files/{fileId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'No content- Production serverhttps://api.drayeasy.com/api/v2/orders/{orderId}/files/{fileId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://api.drayeasy.com/api/v2/orders/{orderId}/files/{fileId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'