Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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 | WMS Tech | SuiteCommerce Advanced
----
- NetSuite Admin Corner | 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!
- Expand your NetSuite knowledge by joining this month's Ask A Guru Live about Advanced Accounting. RSVP on this event now!
