ExpenseSheet

An object representing a user's Expense Sheet.

Supported API Calls: Get | Add | Update | Delete

Object Properties

Property

Type

Description

Id

integer

A unique ID for the expense sheet. When adding a new expense sheet the value must be 0.

UserId

integer

ID of the object's parent internal user.

StartDate

DateTime

First day of the expense sheet's range.

EndDate

DateTime

Last day of the expense sheet's range.

Description

string(100)

Text describing the expense sheet.

DeclinedReason

string(100)

Reason the expense sheet was declined

Status

string(100)

Status of the expense sheet. Can be open, submitted, accepted, approved.

Username

string(100)

Name of the user who submitted the expense sheet.

Permission

string (100)

The permissions (write, read, none) the user has to this record.

ItemList

List<ExpenseSheetItem>

A list of ExpenseSheetItem objects.

Get

Description

Returns the details of a specified ExpenseSheet.

URL

https://{company}.bluecamroo.com/api/ExpenseSheet/{id}

HTTP Method

GET

Parameters

None

Data Return

Returns an ExpenseSheet object in the requested format (e.g., JSON or XML)

HTTP Return Status Code

200: Ok

400: Bad Request (One or more input data items is not valid, for example a mandatory field is blank)

401: Not authorized (you need to log in)

403: Forbidden (you don't have permission to this resource)

Add

Description

Adds an ExpenseSheet object.

URL

https://{company}.bluecamroo.com/api/ExpenseSheet/add

HTTP Method

POST

Parameters

An ExpenseSheet object

Data Return

Returns the ExpenseSheet object in the requested format (e.g., JSON or XML)

HTTP Return Status Code

201: Created

401: Not authorized (you need to log in)

403: Forbidden (you don't have permission to this resource)

Update

Description

Updates the specified ExpenseSheet.

URL

https://{company}.bluecamroo.com/api/ExpenseSheet/update

HTTP Method

PUT

Parameters

An ExpenseSheet object

Data Return

Returns the ExpenseSheet object in the requested format (e.g., JSON or XML)

HTTP Return Status Code

200: Ok

400: Bad Request (One or more input data items is not valid, for example a mandatory field is blank)

401: Not authorized (you need to log in)

403: Forbidden (you don't have permission to this resource)

Delete

Description

Deletes the specified ExpenseSheet.

URL

https://{company}.bluecamroo.com/api/ExpenseSheet/delete/{id}

HTTP Method

DELETE

Parameters

None

Data Return

None

HTTP Return Status Code

200: Ok

400: Bad Request (One or more input data items is not valid, for example a mandatory field is blank)

401: Not authorized (you need to log in)

403: Forbidden (you don't have permission to this resource)