EasyFreight API V2


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>&gt; <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 '{ &amp;quot;code&amp;quot;: &amp;quot;ABC&amp;quot;, &amp;quot;type&amp;quot;: &amp;quot;Overseas Partner&amp;quot;, &amp;quot;name&amp;quot;: &amp;quot;Test Name&amp;quot;, &amp;quot;country&amp;quot;: &amp;quot;UNITED STATES&amp;quot;, &amp;quot;billing_address&amp;quot;: &amp;quot;Test Billing address&amp;quot;, &amp;quot;bl_address&amp;quot;: &amp;quot;Test Bl Address&amp;quot; }' Response: HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8 { &amp;quot;data&amp;quot;: { &amp;quot;id&amp;quot;: 4158, &amp;quot;code&amp;quot;: &amp;quot;ABC&amp;quot;, &amp;quot;type&amp;quot;: &amp;quot;Overseas Partner&amp;quot;, &amp;quot;name&amp;quot;: &amp;quot;TEST NAME&amp;quot;, &amp;quot;billing_to_name&amp;quot;: &amp;quot;test&amp;quot;, &amp;quot;country&amp;quot;: &amp;quot;UNITED STATES&amp;quot;, &amp;quot;state&amp;quot;: null, &amp;quot;city&amp;quot;: null, &amp;quot;zipcode&amp;quot;: null, &amp;quot;address&amp;quot;: null, &amp;quot;billing_address&amp;quot;: &amp;quot;billing_to_name\n123, Main St, San Francisco, CA, 66801&amp;quot;, &amp;quot;bl_address&amp;quot;: &amp;quot;TEST NAME\n123, Main St, San Francisco, CA, 66801&amp;quot; } }</code></pre>

页面列表

ITEM_HTML