Accounting
Get Sync Settings
Returns the accounting sync settings for the configured integration, including per-type sync enable/disable controls and sync start dates.
Update Sync Settings
Updates the accounting sync settings. Unsubmitted types are preserved (partial updates supported).
Get Transaction Types
Returns all available accounting transaction types with their human-readable labels. Use these values as the keys of `sync_controls_by_type` when updating sync settings.
Get Connection Status
Reports whether the accounting connection is currently able to sync, and what is blocking it when it is not.
Verify and Reactivate Connection
Verifies the stored authorization with one live call to the accounting provider and reactivates the connection only if that call succeeds.
Get Accounting Integration
Returns the currently configured accounting integration instance (QBO or Xero).
Get Bill Sync Settings
Get how expense bills sync to a Xero or QuickBooks connection: the expense bill mode, the start date, whether landed cost bills sync, the period lock date and the list of connections.
Update Bill Sync Settings
Save a connection's expense bill mode and start date, and optionally switch landed cost bill sync on or off.
Preview Bill Sync Change
Preview what a proposed expense bill mode and start date would do to existing expense bills, for the whole connection or for one supplier. Writes nothing.
List Bill Sync Supplier Rules
List the supplier rules on a connection. A rule overrides the connection's expense bill mode for one supplier. Returns an empty list when the tenant has no Xero or QuickBooks connection.
Create Bill Sync Supplier Rule
Create or replace one supplier's rule on a connection. A supplier has at most one rule per connection, so posting again for the same supplier replaces it.
Delete Bill Sync Supplier Rule
Delete a supplier rule. The supplier follows the connection's expense bill mode again. Nothing already sent or linked changes.
List Waiting Bill Duplicates
List expense bills held back from sending because the provider seems to have them already. Each one waits for a person to link it to the provider's bill or mark it not a duplicate. Returns an empty list when the tenant has no Xero or QuickBooks connection.
Link Waiting Bill Duplicate
Link a waiting bill to the provider bill it was matched with, instead of sending it. Nothing is sent to the provider. The bill is marked as already booked there.
Mark Waiting Bill Not a Duplicate
Mark a waiting bill as not a duplicate of the provider bill it was matched with. The ruling is recorded on the bill's history and the bill is queued to be sent. A later match against a different provider bill would still hold it back.