Global API
...
Requests
Cash Refund
Update
1min
The following is an example of updating a Cash Refund record where we are changing some of the fields. (See Cash Refund for all available fields). The NetSuite Cash Refund Id (internalId) is required to update the Cash Refund.
Note: You can only update one record at a time.
The response returns the complete Cash Refund information, but we have shortened the response in our example for ease of reading.
Request
Response
{
action=updateCashRefund,
timestamp=1682500479120,
validRequest=true,
version=1.0,
responseJSON={
"errors": [],
"status": "200",
"CashRefunds": [
{
"tranId": "16",
"tranDate": 1682478000,
"total": 400.0,
"taxTotal": 0.0,
"subTotal": 400.0,
"subsidiary": {
"type": null,
"name": "Parent Company",
"internalId": "1",
"externalId": null
},
"status": null,
"shippingCost": 0.0,
"salesRep": null,
"salesforceID": "a061e000003Ux0KAAS",
"refundCheck": false,
"otherRefNum": "43434544",
"memo": "CashRefund 215",
"location": {
"type": null,
"name": "Hyderabad : Hi-Tech City",
"internalId": "10",
"externalId": null
},
"lastModifiedDate": 1682500474,
"job": null,
"itemList": {
"replaceAll": null,
"item": [
{
"unitsDisplay": null,
"taxRate1": "0.0%",
"taxCode": {
"type": null,
"name": "VAT_IN:UNDEF-IN",
"internalId": "5",
"externalId": null
},
"tax1Amt": 0.0,
"shipMethod": null,
"shipGroup": null,
"serialNumbers": null,
"revRecStartDate": null,
"revRecSchedule": null,
"revRecEndDate": null,
"rate": null,
"quantityRemaining": null,
"quantityReceived": null,
"quantityPicked": null,
"quantityPacked": null,
"quantityOnHand": null,
"quantityFulfilled": null,
"quantityCommitted": null,
"quantityBilled": null,
"quantityBackOrdered": null,
"quantityAvailable": null,
"quantity": 15.0,
"price": {
"type": null,
"name": null,
"internalId": "-1",
"externalId": null
},
"poNum": null,
"percentComplete": null,
"orderLine": null,
"onHand": null,
"location": null,
"line": 1,
"jobName": null,
"itemReceive": null,
"itemName": null,
"itemIsFulfilled": null,
"item": {
"type": null,
"name": "Blue Jeans",
"internalId": "8823",
"externalId": null
},
"isClosed": null,
"grossAmt": 400.0,
"expectedReceiptDate": null,
"description": " For shooting arrows",
"department": null,
"customFieldList": {
"customField": [
{
"valueLookup": null,
"value": "true",
"scriptId": "custcol_checkbox",
"internalId": "443",
"fieldType": null
}
]
},
"createPo": null,
"costEstimateType": "_lastPurchasePrice",
"costEstimate": 0.0,
"classification": null,
"billingSchedule": null,
"amount": 400.0
}
]
},
"internalId": "121459",
"handlingCost": 0.0,
"externalId": null,
"exchangeRate": 1.0,
"entity": {
"type": null,
"name": "CUST1402AT Blue Origin",
"internalId": "109118",
"externalId": null
},
"discountTotal": 0.0,
"discountRate": null,
"discountItem": null,
"department": {
"type": null,
"name": "test",
"internalId": "3",
"externalId": null
},
"customForm": {
"type": null,
"name": "Custom Cash Refund",
"internalId": "128",
"externalId": null
},
"customFieldList": {
"customField": [
{
"valueLookup": null,
"value": "400",
"scriptId": "custbody42",
"internalId": "869",
"fieldType": null
},
{
"valueLookup": null,
"value": " - ",
"scriptId": "custbody_breadwinner_pc_internal_id",
"internalId": "588",
"fieldType": null
},
{
"valueLookup": null,
"value": "false",
"scriptId": "custbody_enableimport",
"internalId": "691",
"fieldType": null
}
]
},
"currencyRecord": {
"type": null,
"name": "INR",
"internalId": "1",
"externalId": null
},
"currencyName": "INR",
"createdFrom": null,
"createdDate": 1682496289,
"classification": {
"type": null,
"name": "Partner Class",
"internalId": "1",
"externalId": null
},
"applyList": null,
"applied": null,
"account": {
"type": null,
"name": "Cheque Account",
"internalId": "1",
"externalId": null
}
}
]
}
}