Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
terms aren't populated in sales order
When I create sales order using suite talk API "terms" are not added automatically although they are set in customer .
And when I tried to insert them explicitly I receive "Please enter a payment method" error message.
Any help of how can I get them populated either automatically or explicitly.
This is my code:///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var salesOrder = new SalesOrder
{
entity = xxxxxx,
shipDate =xxxxxx
shipDateSpecified = true,
itemList = xxxxxx,
customFieldList = xxxxxx,
};
salesOrder.terms = new RecordRef //Set terms explicitly
{
type = terms.type,
typeSpecified = true,
internalId = xxxxx,
};
var response = netSuiteService.add(salesOrder);
// response.status.isSuccess = false;
// response.status.statusDetail[0].message = "Please enter a payment method"