Billing Schedule

The billing schedule record exposes a billing schedule to REST web services.

To access this record in NetSuite, go to List > Accounting > Billing Schedules > New.

This record enables you to create a billing schedule that can be applied to a sales order, a line item on a sales order, or a project. For details about this type of transaction, see Billing Schedules.

This record has the following subrecords:

The REST API Browser includes information about the field names and field types of the billing schedule record and about the HTTP methods, request parameters, and operations available to this record.

For details, see the REST API Browser's billing schedule reference page.

For information about using the REST API Browser, see The REST API Browser.

Record ID

The record ID for a billing schedule REST record is billingschedule.

Code Samples

These samples show common use cases for billing schedules.

Create a Billing Schedule

              POST: https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/BillingSchedule/
{ "frequency": { "id": "QUARTERLY", "refName": "Quarterly" }, "inArrears": true, "initialAmount": 100.0, "name": "NetSuite Test", "numberRemaining": 4, "repeatEvery": { "id": "1", "refName": "1" }, "scheduleType": { "id": "STD", "refName": "Standard" }
} 

            

Read a Billing Schedule

              GET: https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/BillingSchedule/106 

            

Update a Billing Schedule

              PATCH: https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/BillingSchedule/106
{ "frequency": { "id": "QUARTERLY", "refName": "Quarterly" }, "inArrears": true, "initialAmount":50.0, "name": "NetSuite Test", "numberRemaining": 2, "repeatEvery": { "id": "1", "refName": "1" }, "scheduleType": { "id": "STD", "refName": "Standard" }
} 

            

Update a Billing Schedule with a Custom Recurrence Pattern

              PATCH {{REST_SERVICES}}/record/v1/billingschedule/{id}
{
    "name": "Updated Billing Schedule Name",
    "frequency": {
        "id": "CUSTOM"
    },
    "recurrence": {
        "items": [
            {
                "amount": 10.0,
                "count": 5,
                "recurrenceId": 1, // including recurrenceId field will update the existing line at this index, excluding will add a new line
            "relativeToPrevious": true,
                "units": {
                    "id": "WEEK"
                }
            }
        ]
    }
} 

            

Delete a Billing Schedule

              DELETE: https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/billingSchedule/106 

            

Related Topics

General Notices