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.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
import sales order via web services
Hi I am trying to import sales orders through web services without billing the customer. When I run the following code it is billing my customers again that have a default CC assigned.
// create array of fields
$purchaseOrderFields = array (
'entity' => array ('internalId' => $netsuiteId),
'account' => array ('internalId' => 131),
'ccApproved' => 'T',
'customForm' => array ('internalId'=> 95),
'tranDate' => $date,
'itemList' => array (
'item' => array (
array( 'item' => array('internalId' => $leadtypeId),
'quantity' => 1,
'rate' =>$rate,
'taxCode' =>$taxcode))
)
);
// create purchase order record
$purchaseOrder = new nsComplexObject('CashSale');
// set fields
$purchaseOrder->setFields($purchaseOrderFields);
// this will create a purchase order with 1 line item