Discussions
SuiteWorld is the largest annual gathering of the NetSuite community! It will be held in Las Vegas on October 6-9, 2025. Our customers and partners look forward to SuiteWorld every year as a place to hear the latest from NetSuite, get hands-on learning, and connect with each other. Register now!
We apologize for any inconvenience this may cause and appreciate your understanding.
NSC | REST WS: Setting Default Billing in Customer
Scenario:
A user wants to create a new AddressBook subrecord through REST Web Services, specifying a value for the Address Label and designating it as the default billing option.
Solution
The sample REST Request/payload below demonstrates how to create additional addressbookaddress subrecord in a customer record.
Note: Need to use PATCH operation to create a new line in addressbook.
{ "addressbook": { "items": [{ "defaultBilling": true, "label": "Sample REST Label", "addressBookAddress": { "addr1": "Rufina Cir", "city": "Osaka", "zip":"87507", "country":"JP" } }] } }
The sample code described herein is provided on an "as is" basis, without warranty of any kind, to the fullest extent permitted by law. Oracle + NetSuite Inc. does not warrant or guarantee the individual success developers may have in implementing the sample code on their development platforms or in using their own Web server configurations.
Richard James Uri | SuiteCloud and WMS Tech
----
- New to NetSuite
- Explore the NSC Webinars Category
- Join our poll and share your ideas! We want to know what you think. Don't forget to comment and make your voice heard!