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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
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