JSON Material Master Import Document (MMID)

A JSON material master import document (MMID) contains all the details of a material. The MMID constitutes the body of the HTTP POST request of the ERP Import service, which posts the material to Plant Applications.

Schema versions 1 and 2 are supported in an MMID.

JSON MMID Schema Version 2

Using schema version 2, you can import materials for serialized as well as non-serialized products.
{
  "schemaVersion": 2,
  "productionLines": [
    "Line1"
  ],
  "storageZone": "StorageZone",
  "storageUnit": "StorageUnit",
  "material": {
    "productCode": "105D6043P008",
    "productDescription": "INDEX TUBE",
    "productFamily": "Capacitor",
    "propertyValues": [
      {
        "propertyName": "UNITOFMEASURE",
        "propertyValue": "EA"
      },
      {
        "propertyName": "REVISION_DATE",
        "propertyValue": "2/20/2016 11:52:44 AM"
      },
      {
        "propertyName": "ITEM_CREATION_DATE",
        "propertyValue": "2/19/2016 4:08:05 PM"
      },
      {
        "propertyName": "STORAGELOCATION",
        "propertyValue": "STK"
      },
      {
        "propertyName": "ITEM_DRAWING",
        "propertyValue": "[\"http://www/google.com/document1\", \"http://www/google.com/document2\"]"
      }
    ],
    "isSerialized": true
  }
}

JSON MMID Schema Version 1

Using schema version 1, you can import materials for serialized products.
{
   "schemaVersion":1,
   "productionLines":[   ],     // production lines can be blank
   "storageZone": "",               // storage zone can be blank
   "storageUnit": "",               // storage unit can be blank
   "material":{
      "productFamily":"",
      "productCode":"",         // material name
      "productDescription":"",  // material description
      "propertyValues":[                    // custom properties can be blank
         {
            "propertyName":"",
            "propertyValue":""
         },
         {
            "propertyName":"",
            "propertyValue":""
         }
      ]
   }
}