---
title: Purchase Order
slug: netsuite/5hsX-purchase-order
description: Learn all about the fields available for a new Purchase Order, from transaction level to line item level. Find out the essential details like Class, Currency, Custom Form, Date, Department, and Terms for transactions, and get insights into fields such as 
docTags: 
createdAt: 2021-10-30T07:32:53.000Z
---

# All fields available for a new Purchase 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**                                                   |
| --------------- | ------------------ | ----------------------------------------------------------------- |
| Class           | class              | Internal ID of the Class                                          |
| 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                                     |
| Due Date        | due\_date          |                                                                   |
| External Id     | external\_id       |                                                                   |
| Location        | location           | Internal ID of the Location                                       |
| PO #            | other\_ref\_num    | PO number                                                         |
| Memo            | memo               |                                                                   |
| Terms           | terms              | Internal ID of the Terms                                          |
| Subsidiary      | subsidiary         | Internal ID of the Subsidiary. Pass the Vendor 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                 |                                               |
| 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                   |
| Sort By         | co\_sort\_by             | Fetch the child records in a particular order |

### Sample Example

:::CodeblockTabs
Button URL

```none
/apex/breadwinner_ns__CreatePurchaseOrder                 
?originating_record={!salesforce_record_ID*}               
&parent_account=api_field_name__c    
&class=purchase_order_class_api_field__c
&currency=purchase_order_currency_api_field__c                    
&custom_form=purchase_order_custom_form_api_field__c    
&date=purchase_order_date_api_field__c          
&department=purchase_order_department_api_field__c    
&due_date=purchase_order_due_date_api_field__c     
&extertnal_id=purchase_order_external_id_api_field__c              
&location=purchase_order_location_api_field__c   
&memo=purchase_order__memo_api_field__c 
&other_ref_num=purchase_order__other_ref_api_field__c
&terms=purchase_order__terms_api_field__c
&subsidiary=purchase_order__subsidiary_api_field__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_class=class_field__c 
&co_department=department_field__c
&co_location_id=location_field__c
&co_sort_by=sort_field__c                     
&testing=true
```
:::





