We are using the REST API to create Sales Orders in Netsuite and it is working fine. However, we are having an issue when the customer associated to the sales order has a default payment method (credit card) set at their profile. In this case, once the Sales Order is created and the "Bill Remaining" button is clicked, a "Cash Sale" record is created instead of an "Invoice" record (which is the desired behavior). According to the documentation, that is happening because the Payment Method at the sales order is automatically set to the credit card in file for the Sales Order customer. So, we are trying to set the paymentmethod field for the Sales Order to a null value (so no Payment Method is set for the Sales Order) but it is not working. This is a sample of the payload we are sending to the create sales order service endpoint:
{
"entity": { "id": 1528501 },
"salesRep": 41,
"cseg_cwgp_revstream": 2,
"department": 1,
"subsidiary": 1,
"currency": 1,
"memo": "Test from postman",
"paymentmethod": { "id": null },
"item": {
"items": [
{
"item": { "id": 1136 },
"cseg_cwgp_revstream": { "id": 2 },
"custcol_rev_rec_start_date": "2022-02-01T00:00:00.000Z",
"custcol_rev_rec_end_date": "2022-02-28T00:00:00.000Z"
}
]
}
}
The service endpoint call finishes with no error but the payment method is still being set to "Credit Card". We are wondering if this is a permissions issue? Thanks in advance for your kind replies!