Update Trade Party
<h1>Update Trade Party</h1>
<h2>Request</h2>
<ul>
<li>Method: <strong>PUT</strong></li>
<li>URI: <code>/api/v2/tradeParties/{id}</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>Code</td>
</tr>
<tr>
<td>type</td>
<td>String</td>
<td>Type (Overseas Partner, US Forwarder, US Co-Loader, Others, US Customs Broker, Shipper, US Importer, US OTR Carrier, US Warehouse, Fulfillment Center, US Drayage Trucker)</td>
</tr>
<tr>
<td>name</td>
<td>String</td>
<td>Name</td>
</tr>
<tr>
<td>billing_to_name</td>
<td>String</td>
<td>Billing To Name</td>
</tr>
<tr>
<td>country</td>
<td>String</td>
<td>Country, (UNITED STATES, CANADA, CHINA..)</td>
</tr>
<tr>
<td>state</td>
<td>String</td>
<td>State, (CA, TX ...)</td>
</tr>
<tr>
<td>city</td>
<td>String</td>
<td>City, (Los Angeles, Houston .. )</td>
</tr>
<tr>
<td>zipcode</td>
<td>String</td>
<td>Zipcode</td>
</tr>
<tr>
<td>address</td>
<td>String</td>
<td>Street Address (16270 JURUPA AVE)</td>
</tr>
<tr>
<td>billing_address</td>
<td>String</td>
<td>Billing Address</td>
</tr>
<tr>
<td>bl_address</td>
<td>String</td>
<td>Bill of Lading Address</td>
</tr>
</tbody>
</table>
<p>> <code>(*)</code> it means the field is required.</p>
<h2>Code Example</h2>
<pre><code>Request:
curl --location --request PUT 'https://admin.easyfreight.solutions/api/v2/tradeParties/4158' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer xxxxxx' \
--data '{
&quot;code&quot;: &quot;ABC&quot;,
&quot;type&quot;: &quot;Overseas Partner&quot;,
&quot;name&quot;: &quot;Test Name&quot;,
&quot;country&quot;: &quot;UNITED STATES&quot;,
&quot;billing_address&quot;: &quot;Test Billing address&quot;,
&quot;bl_address&quot;: &quot;Test Bl Address&quot;
}'
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;Overseas Partner&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;billing_to_name\n123, Main St, San Francisco, CA, 66801&quot;,
&quot;bl_address&quot;: &quot;TEST NAME\n123, Main St, San Francisco, CA, 66801&quot;
}
}</code></pre>