Upload documents to your parcel
There are two methods available for uploading documents to parcels.
Method 1:
In order to upload a document to your parcel using this method, you need to follow a few simple steps.
Step 1: First, use the API mentioned below to upload a base64 encoded image file.
https://docs.itraceit.io/en/API/Media#insert-media
Step 2: Then, you need to add a history record using the following API.
https://docs.itraceit.io/en/API/Parcel#insert-parcel-history
Sample Request JSON:
{
"idparceltask" : "PARCEL_TASK_PICTURE",
"parcelid" => "9ae14b60-87a5-4e20-acc9-124930379b0a",
"mediaid" => "d5f69851-f012-4a20-9002-86645bd35326",
"taskdescription" => "file attachment"
}
Method 2:
Using method 2, you can assign multiple documents to multiple parcels at once using the following API. In that case, you have to have the parcel ID list and media ID list. This API will link all the media to each parcel in your list.
https://docs.itraceit.io/en/API/Parcel#link-multiple-documents-to-multiple-parcels