Time Bill (Track Time)

A time transaction, also known as TimeBill, records the hours worked by an employee. You can use this transaction to record billable hours and invoice customers. This transaction is available when the Time Tracking feature is enabled.

Important:

The TimeBill record is labelled as the Track Time record in the UI.

The REST API Browser includes information about the field names and field types of the time bill record, and about the HTTP methods, request parameters, and operations available to this record. For details, see the REST API Browser’s time bill reference page.

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

Record ID

The record ID for a time bill REST record is timebill.

Prerequisites

You must enable the Time Tracking feature before you can use this record through REST web services.

Code Sample

The following sample shows how to update a timebill record with id=28, where you want to change the number of hours to 4:00 and set a memo explaining what occurred.

            PATCH https://3553905.suitetalk.api.netsuite.com/services/rest/record/v1/timebill/28Request headers
Content-Type: application/json
Authorization: OAuth realm="3553905",oauth_consumer_key="secret",oauth_token="secret",oauth_signature_method="HMAC-SHA256",oauth_timestamp="1643201657",oauth_nonce="iuZQtDG47ET",oauth_version="1.0",oauth_signature="uW43ATVUbQMCFD6TE%2FloGHUhqkQQiZ59x00YnUOtJAo%3D"
User-Agent: PostmanRuntime/7.29.0
Accept: */*
Postman-Token: c559cac0-1f7a-4275-9037-4c97ff85cb57
Host: 3553905.suitetalk.api.netsuite.com
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 71
Cookie: NS_ROUTING_VERSION=LAGGING
Request Body
{ "memo": "I updated the hours to reflect reality", "hours": "4:00" } 

          

Related Topics

REST Web Services Supported Records
SuiteTalk REST Web Services Overview and Setup
Working with Records
NetSuite Record Structure
The REST API Browser

General Notices