List Trade Parties
<h1>List Trade Parties</h1>
<h2>Request</h2>
<ul>
<li>Method: <strong>GET</strong></li>
<li>URI: <code>/api/v2/tradeParties</code></li>
</ul>
<table>
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>String</td>
<td>Search By code</td>
</tr>
<tr>
<td>name</td>
<td>String</td>
<td>Search By name</td>
</tr>
<tr>
<td>type</td>
<td>String</td>
<td>Search By type</td>
</tr>
<tr>
<td>country</td>
<td>String</td>
<td>Search By country</td>
</tr>
<tr>
<td>search</td>
<td>String</td>
<td>Search for records that partially match with code, name, address, billing_address, or bl_address</td>
</tr>
<tr>
<td>per_page</td>
<td>Number</td>
<td>Number of record per page</td>
</tr>
<tr>
<td>page</td>
<td>Number</td>
<td>Page number</td>
</tr>
</tbody>
</table>
<h2>Code Example</h2>
<pre><code>Request:
curl --location --request GET 'https://admin.easyfreight.solutions/api/v2/tradeParties' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer xxxxxx' \
Response:
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
&quot;data&quot;: [
{
&quot;id&quot;: 4158,
&quot;code&quot;: &quot;ABC&quot;,
&quot;type&quot;: &quot;US Forwarder&quot;,
&quot;name&quot;: &quot;TEST NAME&quot;,
&quot;billing_to_name&quot;: &quot;test&quot;,
&quot;country&quot;: &quot;UNITED STATES&quot;,
&quot;state&quot;: null,
&quot;city&quot;: null,
&quot;zipcode&quot;: null,
&quot;address&quot;: null,
&quot;billing_address&quot;: &quot;TEST BILLING ADDRESS&quot;,
&quot;bl_address&quot;: &quot;TEST BL ADDRESS&quot;
},
....
],
&quot;links&quot;: {
&quot;first&quot;: &quot;xxxx&quot;,
&quot;last&quot;: &quot;xxxx&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;xxxx&quot;,
&quot;per_page&quot;: 25,
&quot;to&quot;: 1,
&quot;total&quot;: 1
}
}</code></pre>