Expense Category
An expense category request record exposes an expense category to REST web services. Expense categories are used to group expenses. Each expense category is linked to an account. When an employee enters an expense report, they select a category for each expense, and the expense automatically posts to the associated expense account.
This record:
-
is not a subrecord
-
has no subrecords
The REST API Browser includes information about the field names and field types of the expense category record, and about the HTTP methods, request parameters, and operations available to this record. For details, see the REST API Browser’s expense category reference page.
For information about using the REST API Browser, see The REST API Browser.
Record ID
The record ID for an expense category REST record is expensecategory.
Prerequisites
You must enable the Expense Reports feature before you can use this record through REST web services.
Limitations
Tax-related fields are not supported in REST.
Code Sample
This sample shows how to create the record:
POST /services/rest/record/v1/expenseCategory HTTP/1.1
Host: runbox…
Content-Type: application/json
Authorization: …
Content-Length: 47
{ "name": "5", "subsidiaries": "3"
}
This sample shows how to update the record:
PATCH /services/rest/record/v1/expenseCategory/2 HTTP/1.1
"name": "updated name"
}