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 '{
&quot;intermodal_region_id&quot;: 94,
&quot;to_city_id&quot;: 115,
&quot;to_zipcode&quot;: &quot;91803&quot;,
&quot;memo&quot;: &quot;Memo&quot;
}'
Response:
HTTP/1.1 201 OK
Content-Type: application/json; charset=utf-8
{
&quot;data&quot;: {
&quot;id&quot;: 1470,
&quot;to_zipcode&quot;: &quot;91803&quot;,
&quot;status&quot;: null,
&quot;rejected_reason&quot;: null,
&quot;created_at&quot;: &quot;2023-02-06 11:30:45&quot;,
&quot;memo&quot;: &quot;Memo&quot;,
&quot;to_city_id&quot;: 115,
&quot;intermodal_region_id&quot;: 94,
&quot;intermodal_region&quot;: &quot;Los Angeles/Long Beach - CA&quot;,
&quot;to_city&quot;: &quot;Ontario, CA, USA&quot;,
&quot;remaining_limit&quot;: 47
},
}</code></pre>
<p></details></p>
<p>> <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>