tags: [billing]
Billing Basics
Filevine's billing endpoints allow you to create, update, and query Expense and Time items on a specific project, or across the entire org.
Expense and Time items share the following fields:
| fieldSelector | name | type | note |
|---|---|---|---|
| BillingItemDescription | Description | string | |
| BillingItemUnit | Unit | string | |
| BillingItemRate | Rate | number | |
| BillingItemQuantity | Quantity | number | |
| BillingItemDate | Date | ISO string | |
| BillingItemBillable | Is Billable | boolean |
Time entries have an additional field to track the associated user:
| fieldSelector | name | type | note |
|---|---|---|---|
| BillingItemUser | User | integer | The user's internal id (See Get User List) |
Use PUT /core/billing/ to create a new item, or include an existing ID in the request to update an existing item:
{
"id": "{{ExistingBillingItemTimeId}}",
"projectId": {{projectId}},
"billingType": "Time",
"fieldValues": [
{
"fieldSelector": "BillingItemDescription",
"fieldName": "Description",
"value": "Testing time update"
},
{
"fieldSelector": "BillingItemQuantity",
"fieldName": "Quantity",
"value": 0.010
},
{
"fieldSelector": "BillingItemRate",
"fieldName": "Rate",
"value": 300.000
},
{
"fieldSelector": "BillingItemDate",
"fieldName": "Date",
"value": "2021-02-16T17:53:43.6378854Z"
},
{
"fieldSelector": "BillingItemIsChargeable",
"fieldName": "Is Chargeable",
"value": false
},
{
"fieldSelector": "BillingItemIsBillable",
"fieldName": "Is Billable",
"value": true
},
{
"fieldSelector": "BillingItemUnit",
"fieldName": "Unit",
"value": "hour"
}
]
}Related pages
WelcomeService Account UsersAuthenticationRate Limiting for PATsRequestsField SelectionPaginationLegacy vs. Custom ContactsCustom Time and Expense CodesSyncing Billing ItemsWhy Use Partner IDs?Referencing Partner IDs In UrlsEligible Entities and ScopesWebhooksWebhook SubscriptionWebhook SecurityWebhook PayloadsBulk Data Workflow