Looking to create a return authorisation. Making a...
# suitetalkapi
n
Looking to create a return authorisation. Making a call including just one item results in an RA that has all the items not just the one being returned. This is the endpoint / payload, can anyone advise what might be causing the issue please? https://ACCOUNT_ID.suitetalk.api.netsuite.com/services/rest/record/v1/salesOrder/{salesOrderInternalId}/!transform/returnAuthorization' \
Copy code
-d 
{
  "externalId": "RMA-US_NO.7000948208",
  "location": 24,
  "item": {
    "items": [
      {
        "orderLine": 2,
        "item": {
          "externalId": "KSD-239558"
        },
        "quantity": 1,
        "amount": 3.99,
        "rate": 3.99
      }
    ]
  }
}
needed to add &replace=item to overwrite the item sublist for anyone interested in the future.