Vendor Category
The vendor category record is defined in the listAcct (accounting) XSD.
Supported Operations
The following operations can be used with the vendor category record.
add | addList | delete | deleteList | get | getList | getSelectValue | search | update | updateList | upsert | upsertList
You can also use the asynchronous equivalents of SOAP web services list operations. For information about asynchronous operations, see SOAP Web Services Asynchronous Operations. For more information about request processing, see Synchronous Versus Asynchronous Request Processing.
Field Definitions
The SOAP Schema Browser includes definitions for all body fields, sublist fields, search filters, and search joins available to this record. For details, see the SOAP Schema Browser’s vendor reference page.
For information on using the SOAP Schema Browser, see SOAP Schema Browser.
Sample Code
The following example shows how to add a vendor category through SOAP web services.
SOAP Request
<soapenv:Body>
<add xmlns="urn:messages_2017_2.platform.webservices.netsuite.com">
<record xsi:type="ns7:VendorCategory" xmlns:ns7="urn:accounting_2017_2.lists.webservices.netsuite.com">
<ns7:name xsi:type="xsd:string">Insurance Providers</ns7:name>
<ns7:isTaxAgency xsi:type="xsd:boolean">false</ns7:isTaxAgency>
<ns7:isInactive xsi:type="xsd:boolean">false</ns7:isInactive>
</record>
</add>
</soapenv:Body>
Java
public void vendorCategory() throws Exception {
VendorCategory vendorCat = new VendorCategory();
vendorCat.setName("Insurance Providers");
vendorCat.setIsInactive(false);
vendorCat.setIsTaxAgency(false);
c.addRecord(vendorCat);
}