Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
How to specify Payment Method in REST POST for CustomerPayment
I am REST POSTing the following json to CustomerPayment:
{ "apply": {"items": [ { "doc": { "apply": true, "id": 109307769 }, "amount": 1.0 } ] } ,
"customer": { "id": 19581797 }, "autoapply" : false , "payment": 1 ,
"paymentMethod": { "internalId": 11 } }
However I get back the error message 'Please enter value(s) for: Payment Method."
I have also tried, all to no avail:
paymentmethod : { "id" : 11}
paymentmethod: { "id" : "11"}
PaymentMethod: { "id" : "11"}
paymentmethod: { [ "id" : "11" ] }
What is NetSuite looking for as the correct way to specify payment method?
Tagged:
0