PlatformIntegrations
Financials

Example Flows

Four worked examples on a $2,500 deposit, with each request and the ledger after it.

These examples follow one lease with a $2,500 security through a no-deposit move-in, a move-out with charges, a move-out without charges, and an installment plan. Each step shows the request, if you send one, and the ledger that GET /leases/{leaseId}/financials returns after it.

  • All amounts are in cents: $2,500 is 250000.
  • The IDs are placeholders. Retrieve your own payment type IDs with GET /payment-types, because they differ between sandbox and production.
  • Each ledger snapshot shows only the properties that matter, and leaves out unchanged items where the step says so.
PlaceholderValue
Lease IDc25f5555-a13d-4c85-b927-bb4e730ad78f
Deposit payment type ID22b70429-33b5-4e69-9930-0207d584e18a
RentAdvance payment type ID3b134e4a-0b93-4a8c-a60e-c2fba6f208c7
Charge payment type ID26c473e5-23cd-42fd-a54d-2b742b7a448c

Each step lists the lease.financials.* webhooks it triggers. Obligo sends no lease.financials.* webhooks for changes any API app makes, including the release after an app's own charge, so the steps your app performs list none. After those steps, retrieve the ledger with GET /leases/{leaseId}/financials.

Example 1: No-deposit move-in

The renter chooses No deposit and pays a $1,000 rent advance at checkout.

Step 1: Create the lease with its security

Send the security requirement as a negative Deposit item in the financials array of POST /leases:

curl https://api.sandbox.myobligo.com/leases \
  -u "$CLIENT_ID:$CLIENT_SECRET" \
  -H "Obligo-Version: 1.2" \
  -H "Content-Type: application/json" \
  -d '{
    "propertyId": "5b1f0c5f-833f-4e77-894f-47d0611ce418",
    "unit": "4B",
    "startsAt": "2026-12-01",
    "endsAt": "2027-11-30",
    "rent": 250000,
    "household": [
      { "renterId": "f7f9af5e-0a2d-419d-a8f7-c4e547be2b64", "role": "LeaseHolder", "primary": true }
    ],
    "financials": [
      {
        "typeId": "22b70429-33b5-4e69-9930-0207d584e18a",
        "amount": -250000,
        "relatedEntity": { "type": "HouseholdRenter" }
      }
    ]
  }'

The response is 201 with the lease id. Obligo commits the Deposit item and requests a $2,500 billing authorization. The item waits in pending until the renter is approved:

{
  "pending": [
    { "id": "cd6aaf79-86f1-432c-bcda-8a7f72cec621", "amount": -250000, "status": "Committed" }
  ],
  "balance": [],
  "securities": [],
  "summary": {
    "securities": { "pending": 250000, "available": 0, "charged": 0, "released": 0 }
  }
}

Webhooks: none, because your app made this change.

Step 2: Request a rent advance

Create and commit a negative RentAdvance item with POST /leases/{leaseId}/financials:

curl https://api.sandbox.myobligo.com/leases/c25f5555-a13d-4c85-b927-bb4e730ad78f/financials \
  -u "$CLIENT_ID:$CLIENT_SECRET" \
  -H "Obligo-Version: 1.2" \
  -H "Content-Type: application/json" \
  -d '{
    "typeId": "3b134e4a-0b93-4a8c-a60e-c2fba6f208c7",
    "amount": -100000,
    "relatedEntity": { "type": "HouseholdRenter" },
    "description": "Rent advance for December",
    "commit": true
  }'

The response is 201 with the item id. Obligo adds $1,000 to the renter's move-in payment request:

{
  "pending": [
    { "id": "cd6aaf79-86f1-432c-bcda-8a7f72cec621", "amount": -250000, "status": "Committed" }
  ],
  "balance": [
    {
      "id": "c62e2815-bed1-4820-8d02-a489b8c800f8",
      "typeId": "3b134e4a-0b93-4a8c-a60e-c2fba6f208c7",
      "amount": -100000,
      "status": "Committed",
      "relatedEntity": { "type": "HouseholdRenter" }
    }
  ],
  "securities": [],
  "summary": {
    "securities": { "pending": 250000, "available": 0, "charged": 0, "released": 0 }
  }
}

Webhooks: none, because your app made this change.

Step 3: The renter checks out

You send no request. The renter qualifies, chooses No deposit, adds a payment method, accepts the terms, and pays the $1,000 rent advance. The renter also pays the Obligo service fee, which isn't on your ledger. Obligo then approves the billing authorization.

  • The rent advance moves to InProgress while the payment processes, then to Settled. Some payments skip InProgress and settle as soon as processing starts.
  • The Deposit item leaves pending and becomes a security item with the same id.
{
  "pending": [],
  "balance": [
    {
      "id": "c62e2815-bed1-4820-8d02-a489b8c800f8",
      "amount": -100000,
      "status": "Settled",
      "settledAt": "2026-11-21T16:05:44.000Z",
      "relatedEntity": { "type": "HouseholdRenter" }
    }
  ],
  "securities": [
    { "id": "cd6aaf79-86f1-432c-bcda-8a7f72cec621", "type": "BillingAuthorization", "amount": 250000, "charged": false }
  ],
  "summary": {
    "securities": { "pending": 0, "available": 250000, "charged": 0, "released": 0 }
  }
}

Webhooks: lease.financials.balanceItemInProgress (unless the payment skips InProgress) and lease.financials.balanceItemSettled for the rent advance, and lease.financials.securityItemCommitted for the security item. You also receive lease.availableProducts.statusChanged, with the BillingAuthorization product Active.

You received no deposit money. Your cover is the $2,500 billing authorization.

Step 4: Obligo pays you the rent advance

You send no request. Once the payment request is cleared for payout, Obligo creates a positive Beneficiary item of the same type. It arrives as Committed, moves to InProgress when the payout is sent, and moves to Settled when it lands. securities and summary don't change.

{
  "balance": [
    {
      "id": "c62e2815-bed1-4820-8d02-a489b8c800f8",
      "amount": -100000,
      "status": "Settled",
      "relatedEntity": { "type": "HouseholdRenter" }
    },
    {
      "id": "d75625b0-1a2d-4450-bd73-25a5b9863686",
      "amount": 100000,
      "status": "Settled",
      "relatedEntity": { "type": "Beneficiary" }
    }
  ]
}

Webhooks: lease.financials.balanceItemCommitted, lease.financials.balanceItemInProgress and lease.financials.balanceItemSettled for the payout item.

The rent advance nets to -100000 + 100000 = 0: everything the renter paid reached you.

Example 2: Move-out with $500 of charges

This example starts where Example 1 ends, with available at 250000. The renter chose No deposit, so Obligo holds no cash for them.

Step 1: Set the move-out date

Send moveOutAt with PUT /leases/{leaseId}:

curl -X PUT https://api.sandbox.myobligo.com/leases/c25f5555-a13d-4c85-b927-bb4e730ad78f \
  -u "$CLIENT_ID:$CLIENT_SECRET" \
  -H "Obligo-Version: 1.2" \
  -H "Content-Type: application/json" \
  -d '{
    "moveOutAt": "2027-11-30"
  }'

The response is 204. The ledger doesn't change.

Step 2: Upload the evidence

Upload the invoice with POST /files:

curl https://api.sandbox.myobligo.com/files \
  -u "$CLIENT_ID:$CLIENT_SECRET" \
  -H "Obligo-Version: 1.2" \
  -F "file=@carpet-invoice.pdf" \
  -F "title=Carpet replacement invoice"

The response is 201 with the file id, here 2eeeafda-9355-4724-8bdb-539a202f6295. The ledger doesn't change.

Step 3: Create the charge as a draft

Create the Charge item without commit: true, so it stays a draft:

curl https://api.sandbox.myobligo.com/leases/c25f5555-a13d-4c85-b927-bb4e730ad78f/financials \
  -u "$CLIENT_ID:$CLIENT_SECRET" \
  -H "Obligo-Version: 1.2" \
  -H "Content-Type: application/json" \
  -d '{
    "typeId": "26c473e5-23cd-42fd-a54d-2b742b7a448c",
    "amount": -50000,
    "relatedEntity": { "type": "HouseholdRenter" },
    "description": "Carpet replacement in the living room",
    "attachmentIds": ["2eeeafda-9355-4724-8bdb-539a202f6295"]
  }'

The response is 201 with the item id. A draft doesn't change the summary, and you can still update or delete it:

{
  "pending": [
    { "id": "e608bc66-cf02-4753-b731-fd8521f4d7fd", "amount": -50000, "status": "Draft" }
  ],
  "summary": {
    "securities": { "pending": 0, "available": 250000, "charged": 0, "released": 0 }
  }
}

Step 4: Commit the charge

Commit the draft with POST /leases/{leaseId}/commit-financials:

curl https://api.sandbox.myobligo.com/leases/c25f5555-a13d-4c85-b927-bb4e730ad78f/commit-financials \
  -u "$CLIENT_ID:$CLIENT_SECRET" \
  -H "Obligo-Version: 1.2" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": ["e608bc66-cf02-4753-b731-fd8521f4d7fd"]
  }'

The response is 204. The $500 is within available, so Obligo charges the billing authorization. The charge moves to balance as Settled, and a new security item records it. The snapshot leaves out the rent advance items from Example 1:

{
  "pending": [],
  "balance": [
    {
      "id": "e608bc66-cf02-4753-b731-fd8521f4d7fd",
      "amount": -50000,
      "status": "Settled",
      "relatedEntity": { "type": "HouseholdRenter" }
    }
  ],
  "securities": [
    { "id": "cd6aaf79-86f1-432c-bcda-8a7f72cec621", "type": "BillingAuthorization", "amount": 250000, "charged": false },
    { "id": "bea5e13d-c3ff-4ec3-9740-d42afa6de875", "type": "BillingAuthorization", "amount": -50000, "charged": true }
  ],
  "summary": {
    "securities": { "pending": 0, "available": 200000, "charged": 50000, "released": 0 }
  }
}

Webhooks: none, because your app made this change.

If the charges in a commit add up to more than available, the commit fails and nothing is charged:

{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "Not enough balance to charge",
  "errorCode": "CommitFailed",
  "requestId": "2a873c06-ec24-4749-b923-7c8da4bf07b4"
}

Delete or lower a draft, then commit again.

Step 5: Obligo closes the lease and releases the rest

You send no request. The charge closes the lease. Obligo commits any Charge drafts left in pending (none here), then releases the remaining $2,000:

{
  "securities": [
    { "id": "cd6aaf79-86f1-432c-bcda-8a7f72cec621", "type": "BillingAuthorization", "amount": 250000, "charged": false },
    { "id": "bea5e13d-c3ff-4ec3-9740-d42afa6de875", "type": "BillingAuthorization", "amount": -50000, "charged": true },
    { "id": "5b883fc3-93b6-41ad-a269-4ba798b620d4", "type": "BillingAuthorization", "amount": -200000, "charged": false }
  ],
  "summary": {
    "securities": { "pending": 0, "available": 0, "charged": 50000, "released": 200000 }
  }
}

The first security item doesn't change, and you can't submit more charges.

Webhooks: none, because this step follows from your app's commit.

Step 6: Obligo pays you the $500

You send no request. Obligo reviews the charges before it pays you. When the payout starts, Obligo creates a positive Beneficiary Charge item as InProgress. It moves to Settled when the payout lands, or to Failed. The snapshot leaves out the rent advance items:

{
  "balance": [
    {
      "id": "e608bc66-cf02-4753-b731-fd8521f4d7fd",
      "typeId": "26c473e5-23cd-42fd-a54d-2b742b7a448c",
      "amount": -50000,
      "status": "Settled",
      "relatedEntity": { "type": "HouseholdRenter" }
    },
    {
      "id": "1f944536-df4c-40fe-941c-f63b43a1cdc2",
      "typeId": "26c473e5-23cd-42fd-a54d-2b742b7a448c",
      "amount": 50000,
      "status": "Settled",
      "description": "Move-out charge",
      "referenceCode": "Q4T7K2M9B",
      "relatedEntity": { "type": "Beneficiary" }
    }
  ]
}

Webhooks: lease.financials.balanceItemInProgress, then lease.financials.balanceItemSettled, for the payout item.

The Charge type nets to -50000 + 50000 = 0.

Step 7: Obligo collects from the renter

This step isn't on your ledger. The renter has no cash with Obligo, so Obligo collects the whole $500 from them. Your payout in step 6 doesn't wait for it. When collection fails, Obligo sends reminders and retries, including with other payment methods on file. If the renter never pays, you keep the payout.

Example 3: Move-out with no charges

This example also starts where Example 1 ends, with available at 250000.

Step 1: Set the move-out date

Send moveOutAt as in Example 2, step 1.

Step 2: Close the lease

Commit a positive Deposit item equal to available with POST /leases/{leaseId}/financials. The Obligo dashboard's "Close without charging" does this:

curl https://api.sandbox.myobligo.com/leases/c25f5555-a13d-4c85-b927-bb4e730ad78f/financials \
  -u "$CLIENT_ID:$CLIENT_SECRET" \
  -H "Obligo-Version: 1.2" \
  -H "Content-Type: application/json" \
  -d '{
    "typeId": "22b70429-33b5-4e69-9930-0207d584e18a",
    "amount": 250000,
    "relatedEntity": { "type": "HouseholdRenter" },
    "commit": true
  }'

The response is 201 with the item id. Obligo releases the whole security and closes the lease. The 250000 item doesn't stay in pending or appear in balance, so balance doesn't change:

{
  "pending": [],
  "securities": [
    { "id": "cd6aaf79-86f1-432c-bcda-8a7f72cec621", "type": "BillingAuthorization", "amount": 250000, "charged": false },
    { "id": "a04f6045-5d84-4c7b-b025-295e3b100cf4", "type": "BillingAuthorization", "amount": -250000, "charged": false }
  ],
  "summary": {
    "securities": { "pending": 0, "available": 0, "charged": 0, "released": 250000 }
  }
}

Webhooks: none, because your app made this change.

The renter chose No deposit, so Obligo has no cash to refund.

If no charges arrive by the deadline, Obligo releases the security automatically. The deadline is billingAuthorization.expiresAt, and the end state is the same. This applies only where the state has a refund window, and never to month-to-month leases. Obligo can adjust this for your account.

Example 4: Installment plan

The renter chooses Deposit in installments. The installments are between the renter and Obligo, so they aren't on your ledger.

Move-in

Your ledger matches Example 1, step by step: one Deposit item for -250000, then one security item for 250000 with charged: false. available is 250000 from approval, however many installments the renter has paid.

On the renter's side:

  • The renter pays a one-time Obligo service fee.
  • The renter pays the $2,500 to Obligo in installments: the first at checkout, the rest monthly. The number and size of the installments depend on the renter's plan.
  • Until the installments are paid, the billing authorization covers the unpaid part.

Move-out with $500 of charges

Your ledger is the same as in Example 2: the -50000 charge Settled, a -50000 security item with charged: true, the -200000 release, and the 50000 payout to you.

On the renter's side, Obligo:

  1. Stops the installments that aren't paid yet.
  2. Applies the installments the renter already paid to the $500 first.
  3. Collects whatever those installments don't cover from the renter's card or bank.
  4. Refunds whatever is left of those installments to the renter's refund method.

Your payout doesn't wait for any of this.

Move-out with no charges

Your ledger is the same as in Example 3. Obligo stops the installments that aren't paid yet, and refunds every installment the renter paid to their refund method.

The same holds for the other options that hold cash. With a Reduced deposit, the renter pays 25% or 50% of the deposit in cash at checkout. With a Full deposit held by Obligo, the renter pays the full deposit, and the security item's paymentStatus tracks that payment.

When paymentStatus changes to InProgress, Failed or Settled, Obligo sends lease.financials.securityItem.paymentStatusInProgress, lease.financials.securityItem.paymentStatusFailed or lease.financials.securityItem.paymentStatusSettled. While the Deposit item is still in pending, a change to InProgress or Failed sends lease.financials.pendingItem.paymentStatusInProgress or lease.financials.pendingItem.paymentStatusFailed.

See The Security, Lease Financials and Webhooks.