Skip to content

Security deposits and trust accounting

A security deposit is not revenue — it is the tenant’s money that you hold. Vespy tracks it in a trust subledger so the balance you hold per tenant can always be proved against the bank statement.

bank account ──> deposit ──> disposition (deduction | refund)
└────────────> reconciliation

Deposits must be held separately from operating funds, so create the account once:

Terminal window
curl -X POST https://api.getvespy.com/api/trust/bank-accounts \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Client Trust — Security Deposits",
"accountType": "security_deposit",
"institutionName": "First Republic",
"accountMask": "4417"
}'

accountType is operating, security_deposit, trust, or other. Store only the last few digits in accountMask — Vespy never holds full account numbers. Set ownerId if the account belongs to a single owner rather than the whole book.

Terminal window
curl -X POST https://api.getvespy.com/api/trust/deposits \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"leaseId": "'"$LEASE_ID"'",
"tenantId": "'"$TENANT_ID"'",
"bankAccountId": "'"$BANK_ACCOUNT_ID"'",
"amountCents": 185000,
"receivedAt": "2026-08-25T00:00:00Z"
}'

This is a liability, not income. It never appears as revenue, and it stays on the subledger under the tenant’s name until it is disposed of.

A disposition is either a deduction (you keep some) or a refund (you return some). Record each one against the deposit:

Terminal window
curl -X POST "https://api.getvespy.com/api/trust/deposits/$DEPOSIT_ID/dispositions" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"type": "deduction",
"amountCents": 42500,
"reason": "Carpet replacement and repainting beyond normal wear",
"lineItems": [
{ "description": "Carpet replacement — living room", "amountCents": 32000 },
{ "description": "Repaint bedroom wall", "amountCents": 10500 }
]
}'

Fill in lineItems. Most jurisdictions require an itemized statement, and this is what GET /api/trust/deposits/{id}/deduction-statement renders into the PDF you send the tenant. Attach supporting evidence by uploading it as a document and passing documentId.

When the deposit has a lease and tenant, the deduction pays the tenant’s charges through a payment with method security_deposit. Give a line item a chargeId to pay an open charge on the lease, or a categoryId to create a new charge in that income category; with neither, a new charge is created in the default deposit income category. The response’s disposition.paymentId is that payment.

Then refund the remainder:

Terminal window
curl -X POST "https://api.getvespy.com/api/trust/deposits/$DEPOSIT_ID/dispositions" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"type": "refund",
"amountCents": 142500,
"reason": "Balance returned at move-out",
"paymentMethod": "check",
"reference": "2201",
"paidOn": "2026-10-03"
}'

A refund posts on paidOn when given.

To hold a deposit the tenant paid as a charge, pass the paid charge as fundingChargeId when recording it. That moves the money into the deposit account without recording the liability again. GET /api/trust/unheld-deposit-charges lists paid deposit charges not yet held.

Reconciliation matches the ledger’s cash movements against a bank statement. Start one:

Terminal window
curl -X POST https://api.getvespy.com/api/trust/reconciliations \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"bankAccountId": "'"$BANK_ACCOUNT_ID"'",
"periodStart": "2026-09-01",
"periodEnd": "2026-09-30",
"statementEndingBalanceCents": 4820000
}'

This opens a draft. GET /api/trust/reconciliations/{id}/worksheet lists the account’s movements up to periodEnd that no other reconciliation has cleared. Mark the ones on the statement with PUT /api/trust/reconciliations/{id}/cleared-items ({"ledgerEntryIds": [...]}), then POST /api/trust/reconciliations/{id}/finalize once varianceCents (statement minus cleared balance) is zero. Finalizing needs notes when bookBalanceCents and subledgerTotalCents differ. Every balance is computed as of periodEnd.

Statements are reconciled in order, with one draft per account. DELETE discards a draft; admins can POST .../reopen the latest finalized one. GET /api/trust/subledger-balances gives the per-owner breakdown, and GET /api/trust/ledger lists the cash movements with a running balance.

Money paid out to owners, and money they put in, is the other side of trust accounting. Each property names the bank account its money runs through with PUT /api/trust/property-accounts/{propertyId} (bankAccountId, depositBankAccountId, ownerReserveCents); rent, bills and owner draws post there.

GET /api/trust/owner-distributable-balances shows what each owner can be paid: their cash on the property’s account less the owner reserve and unpaid bills. Create a distribution (or a "kind": "contribution"):

Terminal window
curl -X POST https://api.getvespy.com/api/trust/owner-payables \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"ownerId":"'"$OWNER_ID"'","propertyId":"'"$PROPERTY_ID"'","amountCents":152000,"description":"September distribution"}'

Pay it with POST /api/trust/owner-payables/{id}/pay and a body such as {"paymentMethod":"check","reference":"1042","paidOn":"2026-10-01"}. That posts it to the property’s account. A distribution larger than what is available returns 409 with code owner_funds_insufficient; an admin can pay it anyway with an overrideReason. Payments to vendors from a trust account are refused the same way if they would overdraw the owner. POST /api/trust/owner-payables/{id}/void cancels a pending payable, or reverses a paid one.

Record money moved between your own accounts with POST /api/trust/transfers.