Global API
...
Requests
Return Authorization
Update
1min
The following is an example of updating Return Authorization where we are changing some of the fields. (See Return Authorization for all available fields). The NetSuite Return Authorization Id (internalId) is required to update the Return Authorization.
Note: You can only update one record at a time.
The response returns the complete Return Authorization information but we have shortened the response in our example for ease of reading.
Request
Response
1{
2 action = updateReturnAuthorization,
3 timestamp = 1621574690167,
4 validRequest = true,
5 version = 1.0,
6 responseJSON = {
7 "status": "200",
8 "errors": [],
9 "returnAuthorizations": [
10 {
11 "tranId": "85",
12 "tranDate": 1630936800,
13 "totalCostEstimate": null,
14 "total": 200,
15 "taxTotal": 0,
16 "subTotal": 220,
17 "subsidiary": {
18 "type": null,
19 "name": "Parent Company",
20 "internalId": "1",
21 "externalId": null
22 },
23 "status": "Pending Receipt",
24 "source": "Web Services",
25 "salesRep": null,
26 "salesforceID": "a0M5Y00000dWFt2UAG",
27 "salesEffectiveDate": 1630936800,
28 "otherRefNum": "4343390",
29 "orderStatus": "_pendingReceipt",
30 "nullFieldList": null,
31 "memo": "Order 30",
32 "location": null,
33 "lastModifiedDate": 1621574677,
34 "itemList": {
35 "replaceAll": null,
36 "item": [
37 {
38 "unitsDisplay": null,
39 "taxRate1": "0.0",
40 "taxCode": {
41 "type": null,
42 "name": "VAT_IN:UNDEF-IN",
43 "internalId": "5",
44 "externalId": null
45 },
46 "tax1Amt": 0,
47 "shipMethod": null,
48 "shipGroup": null,
49 "serialNumbers": null,
50 "revRecStartDate": null,
51 "revRecSchedule": null,
52 "revRecEndDate": null,
53 "rate": "100.00",
54 "quantityRemaining": null,
55 "quantityReceived": 0,
56 "quantityBilled": 0,
57 "quantity": 2,
58 "price": {
59 "type": null,
60 "name": "Base Price",
61 "internalId": "1",
62 "externalId": null
63 },
64 "poNum": null,
65 "orderLine": null,
66 "onHand": null,
67 "location": null,
68 "line": 4,
69 "jobName": null,
70 "itemReceive": null,
71 "itemName": null,
72 "itemIsFulfilled": null,
73 "item": {
74 "type": null,
75 "name": "Bow",
76 "internalId": "239",
77 "externalId": null
78 },
79 "grossAmt": 220,
80 "expectedReceiptDate": null,
81 "description": "A weapon for shooting arrows test",
82 "department": null,
83 "customFieldList": null,
84 "createPo": null,
85 "costEstimateType": null,
86 "costEstimate": null,
87 "classification": null,
88 "amount": 220
89 }
90 ]
91 },
92 "internalId": "86840",
93 "externalId": null,
94 "entity": {
95 "type": null,
96 "name": "21 Atherton Grocery",
97 "internalId": "362",
98 "externalId": null
99 },
100 "discountTotal": -20,
101 "discountRate": "-20.00",
102 "discountItem": {
103 "type": null,
104 "name": "Partner Discount",
105 "internalId": "-6",
106 "externalId": null
107 },
108 "department": {
109 "type": null,
110 "name": "PR Department",
111 "internalId": "1",
112 "externalId": null
113 },
114 "customForm": {
115 "type": null,
116 "name": "Custom Return Authorization - Credit",
117 "internalId": "109",
118 "externalId": null
119 },
120 "customFieldList": {
121 "customField": [
122 {
123 "valueLookup": null,
124 "value": " - ",
125 "scriptId": "custbody_breadwinner_pc_internal_id",
126 "internalId": "299",
127 "fieldType": null
128 },
129 {
130 "valueLookup": null,
131 "value": "false",
132 "scriptId": "custbody23",
133 "internalId": "271",
134 "fieldType": null
135 },
136 {
137 "valueLookup": null,
138 "value": "2021-05-20 22:24:37",
139 "scriptId": "custbodylastmodifieddate",
140 "internalId": "298",
141 "fieldType": null
142 }
143 ]
144 },
145 "currencyRecord": null,
146 "currencyName": "INR",
147 "createdFrom": null,
148 "createdDate": 1621573302,
149 "classification": {
150 "type": null,
151 "name": "Individual Partner Class",
152 "internalId": "2",
153 "externalId": null
154 }
155 }
156 ]
157 }
158}
159