Rate Request List
<h2>Overview</h2>
<p>This endpoint is used to retrieve a list of rate requests. You can filter the results based on the Rate Request ID, Intermodal Region ID, and Destination City ID. Pagination parameters (<code>page</code> and <code>per_page</code>) are also available to navigate through the list of rate requests.</p>
<h2>Request</h2>
<ul>
<li>Method: <strong>GET</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>id</td>
<td>Integer</td>
<td>The id of the Rate Request</td>
</tr>
<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>page</td>
<td>Integer</td>
<td>Current page of the list, default: 1</td>
</tr>
<tr>
<td>per_page</td>
<td>Integer</td>
<td>Current per page of the list, default: 20</td>
</tr>
</tbody>
</table>
<p>> <code>(*)</code> it means the field is required.</p>
<h2>Code Example</h2>
<pre><code>Request:
curl https://api.drayeasy.com/api/v2/rateRequests \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer xxxxxxxxx'
Response:
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
&quot;data&quot;: [
{
&quot;id&quot;: 1392,
&quot;to_zipcode&quot;: null,
&quot;status&quot;: &quot;created&quot;, // created, completed, rejected
&quot;rejected_reason&quot;: null,
&quot;created_at&quot;: &quot;2022-12-01 13:58:25&quot;,
&quot;memo&quot;: null,
&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;id&quot;: 1393,
&quot;to_zipcode&quot;: null,
&quot;status&quot;: &quot;completed&quot;,
&quot;rejected_reason&quot;: null,
&quot;created_at&quot;: &quot;2022-12-01 13:58:25&quot;,
&quot;memo&quot;: null,
&quot;to_city_id&quot;: 20,
&quot;intermodal_region_id&quot;: 73,
&quot;intermodal_region&quot;: &quot;INDIANAPOLIS-IN&quot;,
&quot;to_city&quot;: &quot;Cincinnati, OH, USA&quot;
},
{
&quot;id&quot;: 1303,
&quot;to_zipcode&quot;: null,
&quot;status&quot;: &quot;rejected&quot;,
&quot;rejected_reason&quot;: &quot;Rejected&quot;,
&quot;created_at&quot;: &quot;2022-11-08 09:34:35&quot;,
&quot;memo&quot;: &quot;10 Tons&quot;,
&quot;to_city_id&quot;: 7698,
&quot;intermodal_region_id&quot;: 21,
&quot;intermodal_region&quot;: &quot;Norfolk - VA&quot;,
&quot;to_city&quot;: &quot;Radford, VA, USA&quot;
}
],
&quot;links&quot;: {
&quot;first&quot;: &quot;https://api.drayeasy.com/api/v2/rateRequests?page=1&quot;,
&quot;last&quot;: &quot;https://api.drayeasy.com/api/v2/rateRequests?page=1&quot;,
&quot;prev&quot;: null,
&quot;next&quot;: null
},
&quot;meta&quot;: {
&quot;current_page&quot;: 1,
&quot;from&quot;: 1,
&quot;last_page&quot;: 1,
&quot;path&quot;: &quot;https://api.drayeasy.com/api/v2/rateRequests&quot;,
&quot;per_page&quot;: &quot;20&quot;,
&quot;to&quot;: 2,
&quot;total&quot;: 2
}
}</code></pre>
<p></details></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 (created, completed, rejected)</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</td>
</tr>
<tr>
<td>rate</td>
<td>Information about the rate, including its ID, base rate, fuel surcharge, truck rate, expiry date, terminals, scenarios, and possible charges</td>
</tr>
</tbody>
</table>