Example request to server¶ ↑
curl -X GET https://xmlagri.qcone.com/api/v1/inspections/1.xml --user :api_key
Example response from server¶ ↑
<?xml version="1.0" encoding="UTF-8"?>
<inspection>
<id>1</id>
<shipperId>11951</shipperId>
<consigneeId>9289</consigneeId>
<principalId>9289</principalId>
<shipperReference>EXAMPLE SHIPER REF</shipperReference>
<consigneeReference>EXAMPLE CONSIGNEE REFERENCE</consigneeReference>
<inspectionType>import</inspectionType>
<instructions>Please check pallets in the back extra!</instructions>
<isHighPrio>false</isHighPrio>
<isWaitingForArrival>false</isWaitingForArrival>
<isUnitDataEditable>true</isUnitDataEditable>
<eta>2015-12-03T11:00:00Z</eta>
<location/>
<inspectionPoint>arrival</inspectionPoint>
<details>
<type>containerized</type>
<vessel>SANTA ELANE</vessel>
<container>SUDU 123456-7</container>
</details>
<created>2016-12-16T13:38:46Z</created>
<units>
<unit>
<id>2598793</id>
<productId>7</productId>
<varietyId>240</varietyId>
<carton/>
<brand/>
<productClass/>
<packType/>
<palletCode>123456</palletCode>
<growerCode/>
<countSize/>
<surveyMethod>count</surveyMethod>
<sampleSize/>
</unit>
</units>