The Financial Model
How a lease's ledger works and how money flows between renters, property management companies, and Obligo.
Every lease has one ledger: what the renter was asked to pay, what Obligo collected and paid out, and the security Obligo holds for move-out charges. Retrieve it with GET /leases/{leaseId}/financials, and update it by creating and committing financial items.
The ledger
The ledger has three lists and a summary. All amounts are integers in cents.
| Property | What it holds |
|---|---|
pending | Items that aren't applied yet: drafts, and committed Deposit items that wait for the renter's billing authorization to be approved. |
balance | Money that is owed, collected, paid out or refunded: move-in payment requests and payments, payouts to you, refunds, move-out charges and their payouts, and traditional cash deposits. |
securities | The security Obligo holds for the lease, as one item per approval, increase, decrease, charge or release. |
summary.securities | Security totals: pending, available, charged and released. |
Request
curl https://api.sandbox.myobligo.com/leases/c25f5555-a13d-4c85-b927-bb4e730ad78f/financials \
-u "$CLIENT_ID:$CLIENT_SECRET" \
-H "Obligo-Version: 1.2"Response
This lease has an approved $2,500 security and a $1,000 rent advance that the renter paid and Obligo paid out. The example shows only each item's main properties.
{
"pending": [],
"balance": [
{
"id": "c62e2815-bed1-4820-8d02-a489b8c800f8",
"typeId": "3b134e4a-0b93-4a8c-a60e-c2fba6f208c7",
"amount": -100000,
"status": "Settled",
"relatedEntity": { "type": "HouseholdRenter", "id": null }
},
{
"id": "d75625b0-1a2d-4450-bd73-25a5b9863686",
"typeId": "3b134e4a-0b93-4a8c-a60e-c2fba6f208c7",
"amount": 100000,
"status": "Settled",
"relatedEntity": { "type": "Beneficiary", "id": null }
}
],
"securities": [
{
"id": "cd6aaf79-86f1-432c-bcda-8a7f72cec621",
"type": "BillingAuthorization",
"amount": 250000,
"charged": false
}
],
"summary": {
"securities": {
"pending": 0,
"available": 250000,
"charged": 0,
"released": 0
}
}
}Financial items
A financial item is one line on the ledger. Three properties decide what it does:
typeId(string, required) — The UUID of the item's payment type.amount(integer, required) — The signed amount in cents.relatedEntity.type(enum, required) — The side of the money the item is on:HouseholdRenter(the renter) orBeneficiary(you, as the payee). SendrelatedEntityon every item: there's no default.
What the sign means
relatedEntity.type | Negative amount | Positive amount |
|---|---|---|
HouseholdRenter | The renter owes it: a move-in payment request, a higher security requirement (Deposit), or a move-out charge (Charge). | Lowers what the renter owes, or refunds them. On a Deposit item, lowers or releases the security. |
Beneficiary | Rejected. | Money approved for payout to you. |
A negative amount is never a credit to the renter. Obligo rejects an amount of 0 at commit.
Payment types
Two payment types are reserved:
Deposit— The security requirement.Charge— A move-out charge.
Obligo treats every other type your account can use, such as a rent advance or a broker's fee, as a move-in payment. Payment type IDs differ between sandbox and production, so retrieve them with GET /payment-types instead of hard-coding them.
curl https://api.sandbox.myobligo.com/payment-types \
-u "$CLIENT_ID:$CLIENT_SECRET" \
-H "Obligo-Version: 1.2"The response lists every type your account can use. This example shows three:
{
"items": [
{ "id": "26c473e5-23cd-42fd-a54d-2b742b7a448c", "type": "Charge" },
{ "id": "22b70429-33b5-4e69-9930-0207d584e18a", "type": "Deposit" },
{ "id": "3b134e4a-0b93-4a8c-a60e-c2fba6f208c7", "type": "RentAdvance" }
]
}Create, then commit
Creating an item only records a Draft in pending. Committing it makes Obligo act. To do both in one request, send commit: true when you create the item.
| You commit | Obligo |
|---|---|
A Deposit item | Raises the security (negative) or lowers it (positive). After approval, the renter must accept the change. A positive item equal to available releases the security and closes the lease. |
| A negative move-in payment item | Adds the amount to the renter's move-in payment request. |
| A positive move-in payment item | Lowers the request, or refunds the renter if they already paid. |
A positive Beneficiary item | Approves that amount for payout to you. |
A negative Charge item | Charges the billing authorization, then closes the lease. |
Obligo also creates items itself: the security item when the renter is approved, the Beneficiary items that pay you, and the release item when the lease closes. See Financial Items for every property and rule.
Balance and security
| Balance | Security | |
|---|---|---|
| Records | Money that is owed, collected, paid out or refunded. | Obligo's billing authorization for move-out charges. |
| Item status | Committed, InProgress, Settled or Failed. | None. Each item has charged instead. |
| Your total | The sum of the amounts per payment type. The API returns no balance total. | summary.securities.available. |
| A move-out charge | A Charge item, Settled at commit. | A negative item with charged: true. |
Until the renter is approved, a requested security sits in pending and counts in summary.securities.pending. A traditional cash deposit is money, so it sits in balance as a Deposit item.
See The Balance and The Security.
How money moves
- Move-in payments. The renter pays Obligo, and Obligo pays you. Once the renter's payment request is cleared for payout, Obligo creates a positive
Beneficiaryitem of the same type and pays it to your bank account. - The security. With a billing authorization, no deposit money reaches you. Instead, Obligo holds a billing authorization for the full deposit to cover your move-out charges. Depending on their option, the renter pays the Obligo service fee, part or all of the deposit in cash, or both. These payments are between the renter and Obligo and aren't on your ledger.
- Move-out charges. Obligo charges the billing authorization, pays you the charged amount, and collects it from the renter. Obligo reviews the charges before it pays you. The payout doesn't wait for the renter. If the renter never pays, you keep the payout. Cash that Obligo holds for the renter covers the charge first, and Obligo collects only the rest from the renter's card or bank.
- Refunds. When the lease closes, any cash the renter paid Obligo that charges didn't use goes back to the renter's refund method.
- Traditional cash deposits. The renter pays the deposit through Obligo, and Obligo pays it out to you like a move-in payment.
Obligo sends each payout to one of your bank accounts, chosen for its payment type by funds routing.
Webhooks
Apps on API version 1.x receive these lease.financials.* events. Each event's data is the item, in your API version's shape.
| Event | Sent when |
|---|---|
lease.financials.balanceItemCommitted | A balance item is created as, or moves to, Committed. |
lease.financials.balanceItemInProgress | A balance item is created as, or moves to, InProgress. |
lease.financials.balanceItemSettled | A balance item is created as, or moves to, Settled. |
lease.financials.balanceItemFailed | A balance item is created as, or moves to, Failed. |
lease.financials.securityItemCommitted | Obligo creates a security item: an approval, an increase, a decrease, a charge or a release. |
lease.financials.pendingItem.paymentStatusInProgress | A pending item's paymentStatus changes to InProgress. |
lease.financials.pendingItem.paymentStatusFailed | A pending item's paymentStatus changes to Failed. |
lease.financials.securityItem.paymentStatusInProgress | A security item's paymentStatus changes to InProgress. |
lease.financials.securityItem.paymentStatusFailed | A security item's paymentStatus changes to Failed. |
lease.financials.securityItem.paymentStatusSettled | A security item's paymentStatus changes to Settled. |
For the Full deposit held by Obligo option, paymentStatus tracks the renter's payment of the deposit cash. See Financial Items.
Note: Obligo sends no
lease.financials.*webhooks for changes any API app makes, including the release after an app's own charge. After your own changes, retrieve the ledger withGET /leases/{leaseId}/financials.
See Webhooks to register an endpoint.