Sample JSON data for Refund Mappings

Note: The Sample JSON data for Refund Mappings that is provided is an example, therefore in some cases, copying and pasting directly from these mappings might lead to an error. It might need to be adjusted according to your NetSuite account settings should an error occur. 

Credit Memo

{
  "mapping": {
    "fields": [
      {
        "generate": "location",
        "hardCodedValue": 6
      }
    ],
    "sublist": {
      "item": [
        {
          "generate": "taxcode",
          "hardCodedValue": -7
        }
      ]
    }
  }
}

Customer Refund

{
  "mapping": {
    "fields": [
      {
        "generate": "otherrefnum",
        "lookupName": "otherrefnumlookup"
      },
      {
        "generate": "subsidiary",
        "initializationDefaultValue": true,
        "lookupName": "subsidairylookup"
      },
      {
        "generate": "memo",
        "lookupName": "subsidairylookup"
      }
    ]
  },
  "lookups": {
    "otherrefnumlookup": {
      "resultFieldId": "tranid",
      "recordType": "parent"
    },
    "subsidairylookup": {
      "resultFieldId": "subsidiary",
      "recordType": "parent"
    }
  }
}

 

Was this article helpful?
0 out of 0 found this helpful

More resources