Sample JSON data for Surcharge Invoice Mapping

{
  "mapping": {
    "fields": [
      {
        "generate": "otherrefnum",
        "lookupName": "otherrefnumlookup"
      },
      {
        "generate": "subsidiary",
        "initializationDefaultValue": true,
        "lookupName": "subsidairylookup"
      },
      {
        "generate": "taxcode",
        "extract": "",
        "hardCodedValue": -7
      },
     {
        "generate": "account",
        "extract": "currency",
        "fieldtype": "",
        "discardIfEmpty": false,
        "lookupName": "accountlookup"
     }
    ],
    "sublist": {
      "item": [
        {
          "generate": "location",
          "extract": "",
          "hardCodedValue": 2
        },
        {
          "generate": "taxcode",
          "extract": "",
          "hardCodedValue": -7
        }
      ]
    }
  },
  "lookups": {
    "otherrefnumlookup": {
      "resultFieldId": "tranid",
      "recordType": "parent"
    },
    "subsidairylookup": {
      "resultFieldId": "subsidiary",
      "recordType": "parent"
    },
    "accountlookup": {
      "map": {
        "usd": "201",
        "cad": "101"
      }
    }
  }
}
Was this article helpful?
0 out of 0 found this helpful

More resources