Attaching a Billing Schedule to an Item
After you create a billing schedule, you may want to attach it to an item record. In general, when you attach a billing schedule to an item record, the schedule is the default chosen when that item is added to a sales order.
For more information about attaching billing schedules to item records, see Applying Billing Schedules.
Note:
You can also attach billing schedules to project records. See Attaching a Billing Schedule to a Project.
The following example shows how to attach a billing schedule to an inventory item.
Java
{
// Identify the inventory item to which you
// want to attach the billing schedule.
InventoryItem myItem = new InventoryItem();
myItem.setInternalId("552");
// Identify the billing schedule you want to use.
RecordRef myBillingSchedule = new RecordRef();
myBillingSchedule.setInternalId("1");
myItem.setBillingSchedule(myBillingSchedule);
// Execute the update operation.
ns._port.update(myItem);
}
SOAP Request
<soapenv:Body>
<update xmlns="urn:messages_2017_1.platform.webservices.netsuite.com">
<record xsi:type="ns1:InventoryItem" internalId="552" xmlns:ns1="urn:accounting_2017_1.lists.webservices.netsuite.com">
<ns1:billingSchedule xsi:type="ns2:RecordRef" internalId="1" xmlns:ns2="urn:core_2017_1.platform.webservices.netsuite.com"/>
</record>
</update>
</soapenv:Body>
SOAP Response
<soapenv:Body>
<updateResponse xmlns="urn:messages_2017_1.platform.webservices.netsuite.com">
<writeResponse>
<platformCore:status isSuccess="true" xmlns:platformCore="urn:core_2017_1.platform.webservices.netsuite.com"/>
<baseRef xsi:type="platformCore:RecordRef" type="inventoryItem" internalId="552" xmlns:platformCore="urn:core_2017_1.platform.webservices.netsuite.com"/>
</writeResponse>
</updateResponse>
</soapenv:Body>
Related Topics
- Billing Schedule
- Billing Schedule Types
- Billing Schedule Body Fields and Sublist Fields
- Billing Schedule Supported Operations
- Billing Schedule Code Samples
- Attaching a Billing Schedule to a Project
- update
- SuiteTalk SOAP Web Services Platform Overview
- Advanced Billing Overview
- Applying Billing Schedules