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
1{
2 action=updateCashRefund,
3 timestamp=1682500479120,
4 validRequest=true,
5 version=1.0,
6 responseJSON={
7 "errors": [],
8 "status": "200",
9 "CashRefunds": [
10 {
11 "tranId": "16",
12 "tranDate": 1682478000,
13 "total": 400.0,
14 "taxTotal": 0.0,
15 "subTotal": 400.0,
16 "subsidiary": {
17 "type": null,
18 "name": "Parent Company",
19 "internalId": "1",
20 "externalId": null
21 },
22 "status": null,
23 "shippingCost": 0.0,
24 "salesRep": null,
25 "salesforceID": "a061e000003Ux0KAAS",
26 "refundCheck": false,
27 "otherRefNum": "43434544",
28 "memo": "CashRefund 215",
29 "location": {
30 "type": null,
31 "name": "Hyderabad : Hi-Tech City",
32 "internalId": "10",
33 "externalId": null
34 },
35 "lastModifiedDate": 1682500474,
36 "job": null,
37 "itemList": {
38 "replaceAll": null,
39 "item": [
40 {
41 "unitsDisplay": null,
42 "taxRate1": "0.0%",
43 "taxCode": {
44 "type": null,
45 "name": "VAT_IN:UNDEF-IN",
46 "internalId": "5",
47 "externalId": null
48 },
49 "tax1Amt": 0.0,
50 "shipMethod": null,
51 "shipGroup": null,
52 "serialNumbers": null,
53 "revRecStartDate": null,
54 "revRecSchedule": null,
55 "revRecEndDate": null,
56 "rate": null,
57 "quantityRemaining": null,
58 "quantityReceived": null,
59 "quantityPicked": null,
60 "quantityPacked": null,
61 "quantityOnHand": null,
62 "quantityFulfilled": null,
63 "quantityCommitted": null,
64 "quantityBilled": null,
65 "quantityBackOrdered": null,
66 "quantityAvailable": null,
67 "quantity": 15.0,
68 "price": {
69 "type": null,
70 "name": null,
71 "internalId": "-1",
72 "externalId": null
73 },
74 "poNum": null,
75 "percentComplete": null,
76 "orderLine": null,
77 "onHand": null,
78 "location": null,
79 "line": 1,
80 "jobName": null,
81 "itemReceive": null,
82 "itemName": null,
83 "itemIsFulfilled": null,
84 "item": {
85 "type": null,
86 "name": "Blue Jeans",
87 "internalId": "8823",
88 "externalId": null
89 },
90 "isClosed": null,
91 "grossAmt": 400.0,
92 "expectedReceiptDate": null,
93 "description": " For shooting arrows",
94 "department": null,
95 "customFieldList": {
96 "customField": [
97 {
98 "valueLookup": null,
99 "value": "true",
100 "scriptId": "custcol_checkbox",
101 "internalId": "443",
102 "fieldType": null
103 }
104 ]
105 },
106 "createPo": null,
107 "costEstimateType": "_lastPurchasePrice",
108 "costEstimate": 0.0,
109 "classification": null,
110 "billingSchedule": null,
111 "amount": 400.0
112 }
113 ]
114 },
115 "internalId": "121459",
116 "handlingCost": 0.0,
117 "externalId": null,
118 "exchangeRate": 1.0,
119 "entity": {
120 "type": null,
121 "name": "CUST1402AT Blue Origin",
122 "internalId": "109118",
123 "externalId": null
124 },
125 "discountTotal": 0.0,
126 "discountRate": null,
127 "discountItem": null,
128 "department": {
129 "type": null,
130 "name": "test",
131 "internalId": "3",
132 "externalId": null
133 },
134 "customForm": {
135 "type": null,
136 "name": "Custom Cash Refund",
137 "internalId": "128",
138 "externalId": null
139 },
140 "customFieldList": {
141 "customField": [
142 {
143 "valueLookup": null,
144 "value": "400",
145 "scriptId": "custbody42",
146 "internalId": "869",
147 "fieldType": null
148 },
149 {
150 "valueLookup": null,
151 "value": " - ",
152 "scriptId": "custbody_breadwinner_pc_internal_id",
153 "internalId": "588",
154 "fieldType": null
155 },
156 {
157 "valueLookup": null,
158 "value": "false",
159 "scriptId": "custbody_enableimport",
160 "internalId": "691",
161 "fieldType": null
162 }
163 ]
164 },
165 "currencyRecord": {
166 "type": null,
167 "name": "INR",
168 "internalId": "1",
169 "externalId": null
170 },
171 "currencyName": "INR",
172 "createdFrom": null,
173 "createdDate": 1682496289,
174 "classification": {
175 "type": null,
176 "name": "Partner Class",
177 "internalId": "1",
178 "externalId": null
179 },
180 "applyList": null,
181 "applied": null,
182 "account": {
183 "type": null,
184 "name": "Cheque Account",
185 "internalId": "1",
186 "externalId": null
187 }
188 }
189 ]
190 }
191}