---
title: Sales Order
slug: netsuite/TTX9-sales-order
description: This comprehensive document outlines the various fields available for inclusion in a new sales order, encompassing both transaction-level and line item details. It provides internal IDs and concise explanations of each field's significance. Furthermore, a
docTags: 
createdAt: 2021-10-30T07:32:42.000Z
---

# All fields available for a new Sales Order

The list and structure of a Custom URL with all possible fields, including those for Line Items that are drawn from Child Records, utilized is below.

### Transaction Level Fields

| **Field&#x20;**                 | **URL Param Name**     | **Description**                                                                                                                                     |
| ------------------------------- | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| Billing Schedule                | billing\_schedule      | Internal ID of the Billing Schedule                                                                                                                 |
| Class                           | class                  | Internal ID of the Class                                                                                                                            |
| Created From                    | created\_from          | Internal ID of the Estimate                                                                                                                         |
| Currency                        | currency               | Internal ID of the Currency                                                                                                                         |
| Custom Form                     | custom\_form           | Internal ID of the Custom Form                                                                                                                      |
| Date                            | date                   | Defaults to the current date                                                                                                                        |
| Department                      | department             | Internal ID of the Department                                                                                                                       |
| Discount Item                   | discount\_item         | Internal ID of the Discount Item                                                                                                                    |
| Discount Rate                   | discount\_rate         | To have the discount subtracted from your total, enter a negative currency amount (for example -10.00) or a negative percentage (for example -10%). |
| External Id                     | external\_id           |                                                                                                                                                     |
| Handling Cost                   | handling\_cost         |                                                                                                                                                     |
| Location                        | location               | Internal ID of the Location                                                                                                                         |
| Memo                            | memo                   |                                                                                                                                                     |
| PO #                            | other\_ref\_num        |                                                                                                                                                     |
| Sales Effective Date            | sales\_effective\_date |                                                                                                                                                     |
| Sales Rep                       | sales\_rep             | Internal ID of the Employee. You can't set this field when the Team Selling feature is enabled in NetSuite.                                         |
| Ship Method                     | ship\_method           | Internal ID of the Shipping Method                                                                                                                  |
| Shipping Cost                   | shipping\_cost         |                                                                                                                                                     |
| Start Date                      | start\_date            |                                                                                                                                                     |
| End Date                        | end\_date              |                                                                                                                                                     |
| Terms                           | terms                  | Internal ID of Terms                                                                                                                                |
| Bill To Address by Internal ID  | bill\_address\_list    | Select from Customer Addresses by Internal ID. Default to Customer Billing Address                                                                  |
| Ship To Address by  Internal ID | ship\_address\_list    | Select from Customer Addresses by Internal ID. Default to Customer Shipping Address                                                                 |
| Billing Addressee               | billing\_addressee     |                                                                                                                                                     |
| Billing Attention               | billing\_attention     |                                                                                                                                                     |
| Billing Address 1               | billing\_addr1         | Limits to 150 characters                                                                                                                            |
| Billing Address 2               | billing\_addr2         | Limits to 150 characters                                                                                                                            |
| Billing City                    | billing\_city          |                                                                                                                                                     |
| Billing State/Province          | billing\_state         |                                                                                                                                                     |
| Billing Country                 | billing\_country       |                                                                                                                                                     |
| Billing Zip                     | billing\_zip           |                                                                                                                                                     |
| Shipping Attention              | shipping\_attention    |                                                                                                                                                     |
| Shipping Addressee              | shipping\_addressee    |                                                                                                                                                     |
| Shipping Address 1              | shipping\_addr1        | Limits to 150 characters                                                                                                                            |
| Shipping Address 2              | shipping\_addr2        | Limits to 150 characters                                                                                                                            |
| Shipping City                   | shipping\_city         |                                                                                                                                                     |
| Shipping State/Province         | shipping\_state        |                                                                                                                                                     |
| Shipping Country                | shipping\_country      |                                                                                                                                                     |
| Shipping Zip                    | shipping\_zip          |                                                                                                                                                     |
| Subsidiary                      | subsidiary             | Internal ID of the Subsidiary. Pass the Customer related Subsidiary                                                                                 |

### Line Item Fields

| **Field&#x20;**      | **URL Param Name&#x20;**  | **Description**                               |
| -------------------- | ------------------------- | --------------------------------------------- |
| NetSuite Item        | co\_netsuite\_item        | Internal ID of the Item                       |
| Description          | co\_description           | Line item description                         |
| Quantity             | co\_quantity              |                                               |
| Rate                 | co\_rate                  |                                               |
| Billing Schedule     | co\_billing\_schedule     | Internal ID of the Billing Schedule           |
| Class                | co\_class                 | Internal ID of the Class                      |
| Department           | co\_department            | Internal ID of the Department                 |
| Location             | co\_location\_id          | Internal ID of the Location                   |
| Rev. Rec. Schedule   | co\_rev\_rec\_schedule    | Internal ID of the Rev. Rec. Schedule         |
| Rev. Rec. Start Date | co\_rev\_rec\_start\_date |                                               |
| Rev. Rec. End Date   | co\_rev\_rec\_end\_date   |                                               |
| Sort By              | co\_sort\_by              | Fetch the child records in a particular order |

### Sample Example

:::CodeblockTabs
Button URL

```none
/apex/breadwinner_ns__CreateSalesOrder
?originating_record={!salesforce_record_ID}
&parent_account=api_field_name__c
&billing_schedule=billing_schedule_api_field__c
&class=sales_order_class_api_field__c
&created_from=sales_order_created_from_api_field__c
&custom_form=sales_order_custom_form_api_field__c
&currency=sales_order_currency_api_field__c
&date=sales_order_date_api_field__c
&department=sales_order_department_api_field__c
&discount_item=sales_order_discount_item_api_field__c
&discount_rate=sales_order_discount_rate_api_field__c
&extertnal_id=sales_order_external_id_api_field__c
&handling_cost=sales_order_handling_cost_api_field__c
&location=sales_order_location_api_field__c
&memo=sales_order_memo_api_field__c
&other_ref_num=sales_order_other_ref_num_api_field__c
&sales_rep=sales_order_sales_rep_api_field__c
&sales_effective_date=sales_order_sales_effective_date_api_field__c
&ship_method=sales_order_ship_method_api_field__c
&shipping_cost=sales_order_shipping_cost_api_field__c
&start_date=sales_order_start_date_api_field__c
&end_date=sales_order_end_date_api_field__c
&terms=sales_order_terms_api_field__c
&subsidiary=sales_order__subsidiary_api_field__c
&bill_address_list=sales_order_bill_address_list__c
&ship_address_list=sales_order_ship_address_list__c
&billing_addressee=sales_order_billing_addressee__c
&billing_attention=sales_order_billing_attention__c
&billing_addr1=sales_order_billing_addr1__c
&billing_addr2=sales_order_billing_addr2__c
&billing_city=sales_order_billing_city__c
&billing_state=sales_order_billing_state__c
&billing_country=sales_order_billing_country__c
&billing_zip=sales_order_billing_zip__c
&shipping_attention=sales_order_shipping_attention__c
&shipping_addressee=sales_order_shipping_addressee__c
&shipping_addr1=sales_order_shipping_addr1__c
&shipping_addr2=sales_order_shipping_addr2__c
&shipping_city=sales_order_shipping_city__c
&shipping_state=sales_order_shipping_state__c
&shipping_country=sales_order_shipping_country__c
&shipping_zip=sales_order_shipping_zip__c
&child_relationship_name=child_name__r
&co_netsuite_item=netsuite_item_field__c
&co_description=description_field__c
&co_quantity=quantity_field__c
&co_rate=rate_field__c
&co_billing_schedule=billing_schedule_field__c
&co_class=class_field__c
&co_department=department_field__c
&co_location_id=location_field__c
&co_rev_rec_schedule=rev_rec_schedule_field__c
&co_rev_rec_start_date=rev_rec_start_date_field__c
&co_rev_rec_end_date=rev_rec_end_date_field__c
&co_sort_by=sort_by_field__c
&testing=true
```
:::

