Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to 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?