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 set the Payment Method when creating Cash Sales via REST API?
We are trying to create cash sales by using the REST API but changing the payment method from credit card to any other "offline" payment method is not working. This is the section of the json payload we are passing to the cash sale rest endpoint:
{
"currency": {
"id": 1
},
"paymentOperation": {
"id": "SALE"
},
"paymentMethod": {
"id": 10
},
"chargeit": false,
"ccapproved":true,
...
No matter what payment method we set at the payload Netsuite is ignoring it. What are we doing wrong?
0