Discussions
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!
