---
schema_version: "1"
id: bbb106024e8bc6f09f6cc948aec80c619fb1b04180f65c37b3f942242297a79a
title: Expense
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_expense.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_expense.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 37bb63e7cef80d9d7a201ad06bfd04a8c0e89735cd27a09173a313cf80bc78d3
description: Represents an expense linked to a work order. Service resource technicians can log expenses, such as tools or travel costs. This object is available in API version 49.0 and later.
---
# Expense

Represents an expense linked to a work order. Service resource technicians can log expenses, such as tools or travel costs. This object is available in API version 49.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

## Fields

| Field | Details |
| --- | --- |
| AccountId | 
Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The ID of the account associated with the linked work order.



 |
| Amount | 

Type

currency

Properties

Create, Filter, Sort, Update

Description

The amount of the expense.



 |
| CurrencyIsoCode | 

Type

picklist

Properties

Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

Available only if the multicurrency feature is enabled. Contains the ISO code for any currency allowed by the organization.



 |
| Description | 

Type

textarea

Properties

Create, Nillable, Update

Description

A description for the expense.



 |
| Discount | 

Type

percent

Properties

Create, Filter, Nillable, Sort, Update

Description

The percentage deducted from the Subtotal price. Available in version 51.0 and later.



 |
| ExpenseEndDate | 

Type

date

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

If the expense was incurred over multiple days, the Expense End Date is the last day that the expense covers.



 |
| ExpenseNumber | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

The number that uniquely identifies the expense.



 |
| ExpenseStartDate | 

Type

date

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

If the expense was incurred over multiple days, the Expense Start Date is the first day that the expense covers.



 |
| ExpenseType | 

Type

picklist

Properties

Create, Defaulted on create, Filter, Group, Nillable, Sort, Update

Description

The type of expense. Possible values are:

- Billable
- Non-Billable

The default value is Billable.



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp for when the current user last viewed a record related to this record.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp for when the current user last viewed this record. If this value is null, this record might only have been referenced (LastReferencedDate) and not viewed.



 |
| OwnerId | 

Type

reference

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

The ID of the user who owns the expense record.



 |
| Quantity | 

Type

double

Properties

Create, Filter, Nillable, Sort, Update

Description

The number of items purchased in this record. Available in version 51.0 and later.



 |
| Subtotal | 

Type

currency

Properties

Filter, Nillable, Sort

Description

The subtotal price calculated as the product of Quantity and UnitPrice. Available in version 51.0 and later.

This is a calculated field.



 |
| Title | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

A title that identifies the expense.

This field is available in API version 50.0 and later.



 |
| TotalPrice | 

Type

currency

Properties

Filter, Nillable, Sort

Description

The total price of the transaction which is equal to the discounted subtotal: Subtotal - (Discount \* Subtotal). Available in version 51.0 and later.

This is a calculated field.



 |
| TransactionDate | 

Type

date

Properties

Create, Filter, Group, Sort, Update

Description

The day that the expense was incurred, or the payment date for the expense.



 |
| UnitPrice | 

Type

currency

Properties

Create, Filter, Nillable, Sort, Update

Description

The price of one item on the record. Available in version 51.0 and later.



 |
| WorkOrderId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The ID of the work order associated with the expense.



 |

## Associated Objects

This object has the following associated objects. Unless noted, they are available in the same API version as this object.

[ExpenseChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_change_event.htm "A ChangeEvent object is available for each object that supports Change Data Capture. You can subscribe to a stream of change events using Change Data Capture to receive data tied to record changes in Salesforce. Changes include record creation, updates to an existing record, deletion of a record, and undeletion of a record. A change event isn’t a Salesforce object—it doesn’t support CRUD operations or queries. It’s included in the object reference so you can discover which Salesforce objects support change events.") (API version 55.0)

Change events are available for the object.

[ExpenseFeed](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_feed.htm "StandardObjectNameFeed is the model for all feed objects associated with standard objects. These objects represent the posts and feed-tracked changes of a standard object.")

Feed tracking is available for the object.

[ExpenseHistory](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_history.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.")

History is available for tracked fields of the object.

[ExpenseOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_ownersharingrule.htm "StandardObjectNameOwnerSharingRule is the model for all owner sharing rule objects associated with standard objects. These objects represent a rule for sharing a standard object with users other than the owner.")

Sharing rules are available for the object.

[ExpenseShare](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_share.htm "StandardObjectNameShare is the model for all share objects associated with standard objects. These objects represent a sharing entry on the standard object.")

Sharing is available for the object.