Link

Purchase Order

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

The Purchase Order object has the following parameters.

Field NameData TypeDescription
salesforceIDIDRead-Only field, provides the Salesforce Record ID upon successful creation or updation in Salesforce.
billingAddressAddressDetailBilling Address of the Vendor
classificationLookupRecordInternal ID of the Class.
createdDateLongRead-Only field, the Date will be returned as a Unix timestamp in seconds.
createdFromLookupRecordInternal ID of the SalesOrder.
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.
dueDateLongDate is accepted and returned as a Unix timestamp in seconds.
emailString 
employeeLookupRecordInternal ID of the Employee.
entity*LookupRecordInternal ID of the Entity (Vendor).
exchangeRateDoubleSupported only while creating, holds the value of the Exchange Rate.
externalIdString 
faxString 
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 
shipDateLong 
shippingAddressAddressDetailAddress of the Vendor or Company
shipMethodLookupRecordInternal ID of the Shipping Method.
shipToLookupRecordInternal ID of the Customer.
sourceString 
statusStringRead-Only field, returns the Status of the Purchase Order.
subTotalDoubleRead-Only field, returns the Sub-Total.
subsidiaryLookupRecordInternal ID of the Subsidiary. By default, NetSuite considers the Subsidiary of the Vendor if not provided.
taxTotalDoubleRead-Only field, returns the Total Tax Amount.
termsLookupRecordInternal ID of the Terms.
totalDoubleRead-Only field, returns the Total Amount.
trackingNumbersString 
tranDateLongDate is accepted and returned as a Unix timestamp in seconds.
tranIdStringProvide PO # (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
expectedReceiptDateLongDate is accepted and returned as a Unix timestamp in seconds.
grossAmtDouble 
item*LookupRecordInternal ID of the Item.
lineIntegerSpecifies the Line Number, which should be unique across the lines.
locationLookupRecordInternal ID of the Location.
quantityDouble 
rateString 
tax1AmtDouble 
taxCodeLookupRecordInternal ID of the Tax Code.
taxRate1Double 

AddressDetail

Field NameData TypeDescription
addr1StringAddress Line 1
addr2StringAddress Line 2
addr3StringAddress Line 3
addrPhoneStringPhone Number
addresseeString 
attentionString.
cityString 
countryString 
internalIdStringInternal ID of existing Address
stateStringState/Province
zipString 

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