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

Export parcel and Import to another domain

This straightforward function allows you to export a parcelId to the blockchain and reimport it to a different domainId. As a result, you'll receive the destParcelId, identifying the new parcel created in the target domain.

 

Note that the user must have access to both domains to perform this operation.

 

 

URL /transferability/v1/export_import_parcel
Method POST 
Parameters

 parcelid, string (This parcel should not already be an exported parcel.)

domainid, string (Destination domain ID)

Sample Request JSON

{

    "parcelid": "f3d7561a-ba1c-4412-975e-ede80873e80f",
    "domainid": "f5f528ef-4a3f-4f5b-9429-774d8133bac1"

}

Sample Response JSON
{
"status": "ok",
"export": {
"status": "ok",
"isvalid": true,
"export_result": {
"status": "ok"
}
},
"sourceparcelid": "f3d7561a-ba1c-4412-975e-ede80873e80f",
"import": {
"status": "ok",
"parcelreference": "SE DEC 12 TEST EXPORT/IMPORT 02",
"knownorigin": "0",
"parcelweight": 43.35,
"numberofstones": 15,
"country": "SOUTH AFRICA",
"city": "JOBURG",
"minefactory": "Alrosa",
"media": [
{
"mediafilename": "Quarterly_Financial_Report_for_Fiscal_Year_2024_Consolidated_Analysis_and_Projections_Documentation_v1.2.3.pdf.pdf",
"mediacategoryid": "9762b72b-859a-46c3-800c-9c57c1cdbcf6"
},
{
"mediafilename": "Sample4mbImage.jpg",
"mediacategoryid": "9762b72b-859a-46c3-800c-9c57c1cdbcf6",
"numberofchunks": 2
}
],
"origin": [
{
"Country": "Angola",
"country_parcel": "Angola",
"country_domain": null,
"source_weight": 43.35,
"source_stones": 15,
"known_origin": "0",
"minefactory": "Alrosa",
"city": "0"
}
]
},
"destparcelid": "b60d5a79-52f5-43ad-b38a-2229dde4a14a"
}
Response Codes

200: ok

E144: token not found

E204: parcel already exported on the blockchain

E205: error in export

E206: you do not have right access to target domain