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

Create Parcels with Metrics

With this API, you can create multiple new parcels while providing information about each parcel.

URL /parcel/v2/init_parcel
Method POST
Parameters

parcelreference, string

parcelweight, number

avgweight, number 

numberofstones, string

Total_Stones, string

parcelcountry, string

minefactory, string

knownorigin, string (You can use this to add "Mine")

geolocation_X, string

geolocation_Y, string

geolocation_Z, string

workingdepartment, string

workingunit, string

personname, string

workingpersonname, string

parentid, string

Sample Request JSON

"parcel":[

   {

      "parcelreference":"Test Parcel 1",

      "parcelweight":"15.00",

      "avgweight":"15.00",

      "numberofstones":"5",

      "Total_Stones":"5",

      "parcelcountry": "Australia",

      "minefactory": "Kimberley Diamond Company",

      "knownorigin":"Ellendale",

      "geolocation_X": "",

      "geolocation_X": "",

      "geolocation_X": "",

      "workingdepartment": "Department Name",

      "workingunit": "Unit Name",

      "personname": "Person Name",

      "workingpersonname": "Working Person Name",

      "parentid": ""

   },

   {

      "parcelreference":"Test Parcel 2",

      "parcelweight":"20.00",

      "avgweight":"1.00",

      "numberofstones":"20",

      "Total_Stones":"20",

      "parcelcountry": "Australia",

      "minefactory": "Kimberley Diamond Company",

      "knownorigin":"Ellendale",

      "geolocation_X": "",

      "geolocation_X": "",

     "geolocation_X": "",

     "workingdepartment": "Department Name",

      "workingunit": "Unit Name",

      "personname": "Person Name",

      "workingpersonname": "Working Person Name",

      "parentid": "961ef083-e226-4213-946c-a3433eebb685"

   }

]

Sample Response JSON

{

   "status": "ok",

   "isvalid": true,

   "parcel": [

      {

         "idparcel": 17853,

         "parcelid": "13ddb5c2-414b-4cb2-9023-ddf62e0e9092"

      },

      {

         "idparcel": 17854,

         "parcelid": "a59de173-a900-4257-b74c-72f27f98785d"

      }

   ],

   "idbatch": 487,

   "batchid": "2ec824bc-eb9a-4bcb-83a8-f60edb7a6367",

   "nadded_qty": 2

}

Response Codes 200: ok 
Note

When you set a 'parentid' for a parcel, the parcel reference you entered will be replaced with the parent reference/1

(eg: Parent: Parent Parcel Reference, Child: Parent Parcel Reference/1)