I am using the Customer Deposit REST API from Postman to create a Customer Deposit record in NetSuite. However, I am encountering a validation error related to the Payment Method field.
The confusing part is that when I retrieve an existing Customer Deposit record using the API, the paymentMethod field is not visible in the response. Despite that, while creating the record via API, NetSuite throws the following error:
“Error while accessing a resource. Please enter value(s) for: Payment Method”
Body for the api is :
{
"externalId": "a0xDN0000000u9ZYAQ",
"exchangeRate": 1,
"payment": 100,
"memo": "Customer deposit via API",
"customer": {
"id": "192005"
},
"salesOrder": {
"id": "178038"
},
"currency": {
"id": "1"
},
"paymentMethod": {
"id": "11"
},
"undepFunds": false
}