CSV column reference

Every column you can put on a sales order export template: what it targets in NetSuite, its level, its format, and an example.

This is the complete set of source fields available in the column picker for a sales order export template. Level tells you whether the value repeats on every row of an order (header) or varies per row (line). Reference columns respect the reference type you set on the column: Internal ID, External ID, name, or raw value.

How reference resolution falls back

When a column is set to Internal ID and the record has none, the export writes the External ID, and then the name, rather than leaving the cell blank. External ID falls back to Internal ID and then name. This keeps files readable, but it also means a blank Internal ID can silently ship a name that NetSuite fails to match.

Identity and grouping

ColumnNetSuite targetLevelRequiredFormat / example
external_idExternal ID — the line-grouping keyBothEffectively requiredSO-20260810-00042
order_dateDateHeaderRecommendedConfigured date format, e.g. 08/10/2026
line_numberLine sequence within the orderLineOptionalComputed: 1, 2, 3

Customer

ColumnNetSuite targetLevelRequiredFormat / example
customerCustomerHeaderRequiredReference. Internal ID, e.g. 1043
customer_parentParent customerHeaderOptionalReference, e.g. 1002
customer_categoryCustomer categoryHeaderOptionalList value, e.g. Wholesale
customer_territoryTerritoryHeaderOptionalTerritory name, e.g. Pacific Northwest
taxableTaxableHeaderOptionalT or F

Addresses

Include these only when you want to override the customer's default NetSuite address. Leaving them out lets NetSuite use the address on the customer record.

ColumnNetSuite targetLevelRequiredFormat / example
ship_toShipping address label onlyHeaderOptionalMain Warehouse
bill_toBilling address label onlyHeaderOptionalAccounts Payable
ship_addresseeShipping addresseeHeaderOptionalBlue Bottle Cafe
ship_address1Shipping address line 1HeaderOptional1200 SE Grand Ave
ship_cityShipping cityHeaderOptionalPortland
ship_stateShipping state / provinceHeaderOptionalOR
ship_zipShipping zip / postal codeHeaderOptional97214
ship_countryShipping countryHeaderOptionalUS
bill_addresseeBilling addresseeHeaderOptionalBlue Bottle Cafe AP
bill_address1Billing address line 1HeaderOptionalPO Box 88
bill_cityBilling cityHeaderOptionalPortland
bill_stateBilling state / provinceHeaderOptionalOR
bill_zipBilling zip / postal codeHeaderOptional97208
bill_countryBilling countryHeaderOptionalUS

Order header

ColumnNetSuite targetLevelRequiredFormat / example
po_numberPO # / other reference numberHeaderOptionalPO-12345
requested_ship_dateShip dateHeaderOptional08/14/2026
shipping_methodShip methodHeaderOptionalReference to the shipping_method list
termsTermsHeaderOptionalReference to the terms list, e.g. Net 30
memoMemoHeaderOptionalFree text
sales_repSales repHeaderOptionalReference, e.g. 87
price_levelPrice levelHeaderOptionalWholesale

Deposits

ColumnNetSuite targetLevelRequiredFormat / example
deposit_amountCustomer deposit amountHeaderOptional250.00
deposit_payment_methodPayment methodHeaderOptionalReference, defaults to name, e.g. Visa
deposit_referenceDeposit reference / check numberHeaderOptionalCHK 10422
deposit_memoDeposit memoHeaderOptionalFree text
deposit_dateDeposit dateHeaderOptional08/10/2026

Order-level discount

ColumnNetSuite targetLevelRequiredFormat / example
header_discount_pctOrder discount percentageHeaderOptional5
header_discount_amtOrder discount amountHeaderOptional50.00
header_discount_itemDiscount item on the transactionHeaderOptionalReference, e.g. 214
header_discount_rateDiscount rate, signedHeaderOptionalComputed: -5% or -50.00 depending on the discount item
header_discount_accountDiscount GL accountHeaderOptionalAccount reference from the discount item

Lines

ColumnNetSuite targetLevelRequiredFormat / example
itemItemLineRequiredReference. Internal ID, e.g. 512
item_typeItem typeLineOptionalinventory, non_inventory, or discount
descriptionLine descriptionLineOptionalEthiopia Yirgacheffe, 5 lb bag
quantityQuantityLineRequiredNumber, e.g. 12
unitsUnits of measureLineOptionalReference, defaults to name, e.g. Case
rateRateLineRequiredNumber, e.g. 18.50
amountAmountLineOptionalComputed: quantity × rate
tax_codeTax codeLineOptionalReference, defaults to name, e.g. CA-SF
extended_amountAmount after line discountLineOptionalComputed, e.g. 210.90

Line-level discount

ColumnNetSuite targetLevelRequiredFormat / example
line_discount_pctLine discount percentageLineOptional10
line_discount_amtLine discount amountLineOptional22.20
line_discount_rateDiscount rate in NetSuite formatLineOptional-10% or -22.20, per your discount sign setting
line_discount_applies_toScope of the discountLineOptionalorder or line
line_discount_target_refThe line the discount applies toLineOptionalReference to the target item
line_discount_accountDiscount GL accountLineOptionalAccount reference from the discount item

Accounting segments

ColumnNetSuite targetLevelRequiredFormat / example
subsidiarySubsidiaryHeaderRequired on OneWorldOrder value, else the column static value, else the organization default
locationLocationHeaderOften requiredSame fallback chain as subsidiary
departmentDepartmentLineOptionalSame fallback chain
classClassLineOptionalSame fallback chain

Custom fields

Custom fields you define appear in the picker with a source key of custom.<key>. Order custom fields are header level; order line custom fields are line level. List-type custom fields resolve through the reference type on the column, checkbox fields export as T or F, and everything else exports its stored value.

custom.delivery_window   →   header column
custom.lot_number        →   line column
External ID is not optional in practice

It is the column NetSuite groups rows by. Without it, every row of a multi-line order becomes its own Sales Order. Keep it in every sales order template.

How External IDs are generated

NetOrderFlow does this for you. Start a 14-day free trial.

Questions about this guide?