Global API
...
Requests
Return Authorization
Update
2min
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
|
{ action = updateReturnAuthorization, timestamp = 1621574690167, validRequest = true, version = 1.0, responseJSON = { "status": "200", "errors": [], "returnAuthorizations": [ { "tranId": "85", "tranDate": 1630936800, "totalCostEstimate": null, "total": 200, "taxTotal": 0, "subTotal": 220, "subsidiary": { "type": null, "name": "Parent Company", "internalId": "1", "externalId": null }, "status": "Pending Receipt", "source": "Web Services", "salesRep": null, "salesforceID": "a0M5Y00000dWFt2UAG", "salesEffectiveDate": 1630936800, "otherRefNum": "4343390", "orderStatus": "_pendingReceipt", "nullFieldList": null, "memo": "Order 30", "location": null, "lastModifiedDate": 1621574677, "itemList": { "replaceAll": null, "item": [ { "unitsDisplay": null, "taxRate1": "0.0", "taxCode": { "type": null, "name": "VAT_IN:UNDEF-IN", "internalId": "5", "externalId": null }, "tax1Amt": 0, "shipMethod": null, "shipGroup": null, "serialNumbers": null, "revRecStartDate": null, "revRecSchedule": null, "revRecEndDate": null, "rate": "100.00", "quantityRemaining": null, "quantityReceived": 0, "quantityBilled": 0, "quantity": 2, "price": { "type": null, "name": "Base Price", "internalId": "1", "externalId": null }, "poNum": null, "orderLine": null, "onHand": null, "location": null, "line": 4, "jobName": null, "itemReceive": null, "itemName": null, "itemIsFulfilled": null, "item": { "type": null, "name": "Bow", "internalId": "239", "externalId": null }, "grossAmt": 220, "expectedReceiptDate": null, "description": "A weapon for shooting arrows test", "department": null, "customFieldList": null, "createPo": null, "costEstimateType": null, "costEstimate": null, "classification": null, "amount": 220 } ] }, "internalId": "86840", "externalId": null, "entity": { "type": null, "name": "21 Atherton Grocery", "internalId": "362", "externalId": null }, "discountTotal": -20, "discountRate": "-20.00", "discountItem": { "type": null, "name": "Partner Discount", "internalId": "-6", "externalId": null }, "department": { "type": null, "name": "PR Department", "internalId": "1", "externalId": null }, "customForm": { "type": null, "name": "Custom Return Authorization - Credit", "internalId": "109", "externalId": null }, "customFieldList": { "customField": [ { "valueLookup": null, "value": " - ", "scriptId": "custbody_breadwinner_pc_internal_id", "internalId": "299", "fieldType": null }, { "valueLookup": null, "value": "false", "scriptId": "custbody23", "internalId": "271", "fieldType": null }, { "valueLookup": null, "value": "2021-05-20 22:24:37", "scriptId": "custbodylastmodifieddate", "internalId": "298", "fieldType": null } ] }, "currencyRecord": null, "currencyName": "INR", "createdFrom": null, "createdDate": 1621573302, "classification": { "type": null, "name": "Individual Partner Class", "internalId": "2", "externalId": null } } ] } }