Skip to content
English
  • There are no suggestions because the search field is empty.

Export Parcel

Using this API, you have the option to export a parcel to the blockchain with Extra Fields and Documents. However, you need to ensure that the files you want to export are in a category that has permission to be exported to the blockchain. Similarly, any extra fields that you need to export should also have the same permission.

Note: With isshadowed, you can export your parcel without revealing your country in the Traceability report's journey detail.

          isshadowed = true → hide country in the report

 

URL /transferability/v2/export_parcel
Method POST 
Parameters

 parcelid, string

exportedfields, array

isshadowed, boolean

Sample Request JSON

{

    "parcelid":"84187a73-9589-40b4-ac2a-a7503fa0abdf",

    "exportedfields":

       "REFERENCE,KNOWN_ORIGIN,WEIGHT,NUMBER_OF_STONES,DOMAIN_COUNTRY,DOMAIN_CITY,DOMAIN_FACTORY,

       DOMAIN_DEPARTMENT,DOMAIN_COMPANY,DOMAIN_SECTOR,DOMAIN_ITRACEIT_RATE,CUSTOM,

       CUSTOM_FILE,ORIGINS",

    "isshadowed": 0,

     "extrafields":"281474976710994,281474976710995",

     "files":"30bba67b-6139-4ff0-aadd-27a11f39b8f5"

}

Sample Response JSON

{

    "status": "ok",

     "isvalid": true,

    "export_result": {

       "status": "ok"

    }

}

Response Codes  200: ok