Filevine API AtlasHomeMain APIBulk DataIdentityWebhook events
Start here

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.


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"
        }
    ]
}

Source: https://developer.filevine.io/docs/v2-us

More in Start here

Related pages