Link

Sales Order

Sales Order in the requestJSON and responseJSON are in the form of List of SalesOrder objects.

The Sales Order object has the following parameters.

Field NameData TypeDescription
salesforceIDIDRead-Only field, provides the Salesforce Record ID upon successful creation or updation in Salesforce.
classificationLookupRecordInternal ID of the Class.
createdDateLongRead-Only field, the Date will be returned as a Unix timestamp in seconds.
createdFromLookupRecordInternal ID of the Estimate.
currencyNameStringRead-Only field, returns the Currency Name.
currencyRecordLookupRecordInternal ID of the Currency.
customFieldListCustomFieldsCustom fields and their values.
customFormLookupRecordInternal ID of the Custom Form.
departmentLookupRecordInternal ID of the Department.
discountItemLookupRecordInternal ID of the Discount Item.
discountRateStringDiscount rate like “-12” or “15”.
discountTotalDoubleRead-Only field, returns the Total Discount.
entity*LookupRecordInternal ID of the Entity (Customer).
exchangeRateDoubleSupported only while creating, holds the value of the Exchange Rate.
externalIdString 
handlingCostDoubleRead-Only field, returns the Total Handling Cost.
internalIdStringUnique ID that NetSuite holds. It is required during the update of a Record.
itemList*LineItemsHolds the Line Items.
lastModifiedDateLongRead-Only field and the Date is returned as a Unix timestamp in seconds.
locationLookupRecordInternal ID of the Location.
memoString 
otherRefNumString 
salesRepLookupRecordInternal ID of the Sales Rep (Employee).
shippingCostDoubleRead-Only field, returns the Total Handling Cost.
statusStringRead-Only field, returns the Status of the Sales Order.
subTotalDoubleRead-Only field, returns the Sub-Total.
subsidiaryLookupRecordInternal ID of the Subsidiary. By default, NetSuite considers the Subsidiary of the Customer if not provided.
taxTotalDoubleRead-Only field, returns the Total Tax Amount.
totalDoubleRead-Only field, returns the Total Amount.
tranDateLongDate is accepted and returned as a Unix timestamp in seconds.
tranIdStringProvide Order # (number) or auto generated by NetSuite

LineItems

Field NameData TypeDescription
item*LineItemRecord[]List of LineItem Records.
replaceAllBooleanThe default value for the replaceAll attribute is true.If true,NetSuite will replace all the Line Items with the new ones.

LineItemRecord

Field NameData TypeDescription
amountDouble 
classificationLookupRecordInternal ID of the Class.
customFieldListCustomFieldsList of Custom Fields with their Values.
departmentLookupRecordInternal ID of the Department.
descriptionStringItem Description
grossAmtDouble 
item*LookupRecordInternal ID of the Item.
lineIntegerSpecifies the Line Number, which should be unique across the lines.
locationLookupRecordInternal ID of the Location.
priceLookupRecordInternal ID of the Price Level of Item.
quantityDouble 
rateString 
revRecEndDateLongDate is accepted and returned as a Unix timestamp in seconds.
revRecScheduleLookupRecordInternal ID of the Rev. Rec. Schedule.
revRecStartDateLongDate is accepted and returned as a Unix timestamp in seconds.
tax1AmtDouble 
taxCodeLookupRecordInternal ID of the Tax Code.
taxRate1Double 

LookupRecord

Field NameData TypeDescription
externalIdStringRead-Only, returns the external Id of the Record selected.
internalId*StringInternal Id of the Record or List.
nameStringRead-Only, returns the name of the Record selected.
typeStringRead-Only.

CustomFields

Field NameData TypeDescription
customFieldCustomFieldInfo[]List of CustomField Info

CustomFieldInfo

Field NameData TypeDescription
fieldType*StringSpecifies the Data Type of a Custom field.Possible values are: string, boolean, date, double, long, select.
internalIdStringInternalId of the Custom Field.
scriptId*StringScript ID of the Custom Field.
valueStringRequired and returned for all the custom fields other than “select” (fieldType)
valueLookupLookupRecordRequired and returned for the fieldType “select”

Table of contents