---
title: Custom Shipping and Billing
slug: netsuite/custom-shipping-and-billing
description: Learn how to efficiently create sales orders in NetSuite by utilizing custom shipping and billing addresses. This comprehensive guide includes helpful code examples for populating standard fields and creating formula fields for concatenating first and las
docTags: 
createdAt: 2022-03-03T21:51:33.000Z
---

Sales order creation in NetSuite allows for custom shipping, billing addresses, and addressee.&#x20;

When utilizing standard Salesforce source objects such as Order / Order Product, you may find standard fields such as BillingAddress and ShippingAddress, whose individual parts are not readily shown, can be used as shown below.

:::CodeblockTabs
cURL Addresses

```apex
&billing_addressee=BW_Bill_To_Contact__c
&billing_addr1=BillingStreet
&billing_city=BillingCity
&billing_state=BillingState
&billing_country=BillingCountry
&billing_zip=BillingPostalCode

&shipping_addressee=BW_Ship_To_Contact__c
&shipping_addr1=ShippingStreet
&shipping_city=ShippingCity
&shipping_state=ShippingState
&shipping_country=ShippingCountry
&shipping_zip=ShippingPostalCode
```
:::

For lookup fields to Contact records, for Bill and Ship To Contact, you may need to make a formula field which properly creates a single Text field from the separate First Name and Last Name fields. Shown above as BW\_Bill\_To\_Contact\_\_c they are just Text formula fields.&#x20;

:::CodeblockTabs
cURL Addresses

```apex
Formula for Bill To Contact:

BillToContact.FirstName & 
if(OR(ISBLANK(BillToContact.FirstName),ISNULL(BillToContact.FirstName)), ""," ") & 
BillToContact.LastName



Formula for Ship To Contact:

ShipToContact.FirstName & 
if(OR(ISBLANK(ShipToContact.FirstName),ISNULL(ShipToContact.FirstName)), ""," ") & 
ShipToContact.LastName
```
:::

In the above examples, the formula concatenates the First and Last Names from the contact record. The added IF statement determines if a blank space is needed between the two fields, which only occurs when data is in the First name. This avoids the problematic addition of a leading space when only the Last Name is present.



