Filevine API AtlasHomeMain APIBulk DataIdentityWebhook events
Start here

Syncing Billing Items

Billing items may need to be synchronized between Filevine and other accounting software. To this end, each billing item has a property syncNeeded that tracks the item's sync status.


tags: [billing]

Accounting Syncs

Billing items may need to be synchronized between Filevine and other accounting software. To this end, each billing item has a property syncNeeded that tracks the item's sync status.

        {
            "id": *****,
            "invoiceId": *****,
            "projectId": *****,
            "billingType": "Time",
            "fieldValues": [ ... ]
            "syncNeeded": true,
            "links": {
            }
        }

As billing items are created they are initially set to syncNeeded: true. When creating a billing integration, get a filtered list of only unsynced items using the query parameter ?unsynced=true with Get Org Billing Items or Get Project Billing Items.

Once those billing items have successfully been synced to the external accounting system, use the Sync Billing Items endpoint update the sync status for those items by using syncSuccessful: true in the request body for each item.

[
    {
        "note": "",
        "billingItemId": "{{billing-item-guid}}",
        "syncSuccessful": true,
        "systemId": "accounting-id-0000001234"
    }
    ...
]

Those items will be set to "syncNeeded": false upon success.

Filevine will track the date-time that each billing item was synced. If a billing item's dateModified is greater than syncDate, syncNeeded for that item will automatically return to true.

If a billing item does not sync successfully, perhaps because it did not meet certain criteria, you can use the /AccountingSync endpoint to report "syncSuccessful": false and also provide the user with an error message explaining why the sync failed. (In-app error message pending ongoing Beta.)

[
    {
        "note": "LEDES code required",
        "billingItemId": "{{billing-item-guid}}",
        "syncSuccessful": false,
        "systemId": "accounting-id-0000001234"
    }
]

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

More in Start here

Related pages