I am trying to push/add VendorCredit using SOAP API & below is my payload
<add xmlns="urn:messages_2023_1.platform.webservices.netsuite.com"><record xsi:type="ns1:VendorCredit" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="urn:purchases_2023_1.transactions.webservices.netsuite.com" xmlns:platformCore="urn:core_2023_1.platform.webservices.netsuite.com"><ns1:entity internalId="5023"/><ns1:tranDate>2025-05-23T12:00:00.000-00:00</ns1:tranDate><ns1:exchangeRate>1</ns1:exchangeRate><ns1:expenseList><ns1:expense><ns1:account internalId="1284"/><ns1:amount>0.41</ns1:amount><ns1:memo>Supplier credit discount for invoice Test</ns1:memo><ns1:location internalId="1"/></ns1:expense></ns1:expenseList><ns1:location internalId="1"/></record></add>
I am getting the following error →
You do not have permissions to set a value for element expense.location due to one of the following reasons: 1) The field is read-only; 2) An associated feature is disabled; 3) The field is available either when a record is created or updated, but not in both cases.