DrayEasy API v2

DrayEasy API v2


Create Rate Request

<h2>Overview</h2> <p>This endpoint is used to create rate requests. It requires specifying the Intermodal Region ID and the ID of the destination city. Optionally, you can provide a specific ZIP code and additional memo notes.</p> <h2>Request</h2> <ul> <li>Method: <strong>POST</strong></li> <li>URI: <code>/rateRequests</code></li> </ul> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>intermodal_region_id (*)</td> <td>Integer</td> <td>The id of Intermodal Region</td> </tr> <tr> <td>to_city_id (*)</td> <td>Integer</td> <td>The id of To City</td> </tr> <tr> <td>to_zipcode</td> <td>String</td> <td>Specific Zipcode</td> </tr> <tr> <td>memo</td> <td>String</td> <td>Memo</td> </tr> </tbody> </table> <h2>Code Example</h2> <pre><code>Request: curl --location --request POST 'https://api.drayeasy.com/api/v2/rateRequests' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer xxxxxxxxx' --data-raw '{ &amp;quot;intermodal_region_id&amp;quot;: 94, &amp;quot;to_city_id&amp;quot;: 115, &amp;quot;to_zipcode&amp;quot;: &amp;quot;91803&amp;quot;, &amp;quot;memo&amp;quot;: &amp;quot;Memo&amp;quot; }' Response: HTTP/1.1 201 OK Content-Type: application/json; charset=utf-8 { &amp;quot;data&amp;quot;: { &amp;quot;id&amp;quot;: 1470, &amp;quot;to_zipcode&amp;quot;: &amp;quot;91803&amp;quot;, &amp;quot;status&amp;quot;: null, &amp;quot;rejected_reason&amp;quot;: null, &amp;quot;created_at&amp;quot;: &amp;quot;2023-02-06 11:30:45&amp;quot;, &amp;quot;memo&amp;quot;: &amp;quot;Memo&amp;quot;, &amp;quot;to_city_id&amp;quot;: 115, &amp;quot;intermodal_region_id&amp;quot;: 94, &amp;quot;intermodal_region&amp;quot;: &amp;quot;Los Angeles/Long Beach - CA&amp;quot;, &amp;quot;to_city&amp;quot;: &amp;quot;Ontario, CA, USA&amp;quot;, &amp;quot;remaining_limit&amp;quot;: 47 }, }</code></pre> <p>&lt;/details&gt;</p> <p>&gt; <code>(*)</code> it means the field is required.</p> <h2>Response Fields Description</h2> <table> <thead> <tr> <th>Field Name</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>Unique identifier for the entry</td> </tr> <tr> <td>to_zipcode</td> <td>Destination ZIP code</td> </tr> <tr> <td>status</td> <td>Status of the entry</td> </tr> <tr> <td>rejected_reason</td> <td>Reason for rejection</td> </tr> <tr> <td>created_at</td> <td>Date and time when the entry was created</td> </tr> <tr> <td>memo</td> <td>Additional notes or comments</td> </tr> <tr> <td>to_city_id</td> <td>ID of the destination city</td> </tr> <tr> <td>intermodal_region_id</td> <td>ID of the intermodal region</td> </tr> <tr> <td>intermodal_region</td> <td>Name of the intermodal region</td> </tr> <tr> <td>to_city</td> <td>Destination city and country</td> </tr> <tr> <td>remaining_limit</td> <td>Remaining limit or quantity</td> </tr> </tbody> </table>

页面列表

ITEM_HTML