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"
}
}
}