Skip to content

Billing Stats

Gathers client billing statistics.

Base URL

https://{{accountid}}.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=customscript_prac_api_billingstats&deploy=customdeploy_prac_api_billingstats_v1

HTTP: GET

Gets statistics for a client.

Required Parameters

Name Value Notes
script customscript_prac_api_billingstats
deploy customdeploy_prac_api_billingstats_v1

Optional Parameters

Name Value Notes
custparam_billclient {{integer}} Limit to this client (internal ID). "Bill To" client on WIP.
custparam_billclientid {{string}} Limit to this client (entity ID). "Bill To" client on WIP.
custparam_rangedatestart {{date}} Limit to this date range starting with this date (date format string: YYYY-MM-DD).
custparam_rangedateend {{date}} Limit to this date range ending with this date (date format string: YYYY-MM-DD).

Example Response

{
    "success": true,
    "requestId": "C76972130",
    "totalCount": 1,
    "isPaged": false,
    "result": [
        {
            "time_billed_ytd": 9.3,
            "time_billed_prior_fy": 30.1,
            "wip_outstanding": 516120.53,
            "progress_outstanding": 47675,
            "total_ar_outstanding": 541774.68,
            "total_time_billed": 550.38337
        }
    ]
}