AI for property management · Updated November 24, 2026

Post payments, receipts, and bills through the Darcy API

Quick answer

Darcy's API can record receipts, post charges, create and approve bills, and pay approved bills through the same functions the app uses, so the ledger rules hold. Every write that moves money requires an Idempotency-Key header. Darcy saves the key in the same database transaction as the write, so a retried request returns the first result instead of posting twice. Amounts are integer cents, test keys only read, and bank account numbers, payee bank accounts, ACH settings, and payment routing stay in the web app.

Darcy's API can record receipts, post charges, create and approve bills, and pay approved bills through the same functions the app uses, so the ledger rules hold. Every write that moves money requires an Idempotency-Key header. Darcy saves the key in the same database transaction as the write, so a retried request returns the first result instead of posting twice. Amounts are integer cents, test keys only read, and bank account numbers, payee bank accounts, ACH settings, and payment routing stay in the web app.

✓

$2 per unit, every feature included

✓

You approve every AI action

✓

Data moved and checked to the cent

Soft evening sky
Darcy Collections agent queue with a tenant’s score and aging

The Collections agent ranks who is behind and shows why. A person approves each proposal.

The risk with money in an API

A network call can fail after the server has done the work. For example, your lockbox script sends a $1,450.00 receipt. The receipt posts, but the connection drops before the response arrives. The script cannot tell whether the receipt posted. If it sends the request again without protection, the tenant's ledger shows $2,900.00 paid. Someone must then find and reverse the duplicate.

Darcy prevents this with a required idempotency key on every write that moves money. The IETF has a draft standard for this pattern, the Idempotency-Key HTTP header.

Money operations you can call

The API posts money records through the same functions the app uses. Every operation in this table requires an Idempotency-Key.

Job

Operation

Route

Permission

Record a check, money order, cash, or manual ACH payment

record_manual_receipt

POST /v1/receipts/record_manual

Admin access

Post a one-off charge to a lease

post_charge

POST /v1/charges/post

receivables.write

Create a bill

create_bill

POST /v1/bills/create

payables.write

Submit a bill

submit_bill

POST /v1/bills/{id}/submit

payables.write

Approve a bill

approve_bill

POST /v1/bills/{id}/approve

payables.approve

Pay approved bills

pay_bills

POST /v1/bills/pay

payables.pay or banking.write

Record a returned payment (NSF or chargeback)

reverse_receipt

POST /v1/receipts/{id}/reverse

payments.refund or receivables.write

Refund a receipt

refund_receipt

POST /v1/receipts/{id}/refund

payments.refund

Request a write-off

request_write_off

POST /v1/write_offs/request

receivables.write

Each one applies the app's rules. A manual receipt pays the oldest charges first unless you send allocations, and it waits in undeposited funds until a bank deposit is recorded. A bill with an approval rule posts only when the last approval step is in. For the whole API, see the Darcy REST API.

Example: record a check

The ids and the key are placeholders.

curl -X POST "https://api.usedarcy.com/v1/receipts/record_manual" \
  -H "Authorization: Bearer pmk_live_..." \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: lockbox-2026-11-03-item-0042" \
  -d '{"lease_id": "LEASE_ID", "amount_cents": 145000, "method": "check", "received_on": "2026-11-03", "reference": "Check 1187"}'
curl -X POST "https://api.usedarcy.com/v1/receipts/record_manual" \
  -H "Authorization: Bearer pmk_live_..." \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: lockbox-2026-11-03-item-0042" \
  -d '{"lease_id": "LEASE_ID", "amount_cents": 145000, "method": "check", "received_on": "2026-11-03", "reference": "Check 1187"}'
curl -X POST "https://api.usedarcy.com/v1/receipts/record_manual" \
  -H "Authorization: Bearer pmk_live_..." \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: lockbox-2026-11-03-item-0042" \
  -d '{"lease_id": "LEASE_ID", "amount_cents": 145000, "method": "check", "received_on": "2026-11-03", "reference": "Check 1187"}'

145000 cents is $1,450.00. Always send whole cents as integers, never decimal dollars. The response holds the receipt id.

To pay two approved bills from one vendor, send pay_bills a body like this, with its own Idempotency-Key:

{
  "vendor_id": "VENDOR_ID",
  "bank_account_id": "BANK_ACCOUNT_ID",
  "method": "ach",
  "allocations": [
    {"bill_id": "BILL_ID_1", "amount_cents": 82500},
    {"bill_id": "BILL_ID_2", "amount_cents": 31075}
  ]
}
{
  "vendor_id": "VENDOR_ID",
  "bank_account_id": "BANK_ACCOUNT_ID",
  "method": "ach",
  "allocations": [
    {"bill_id": "BILL_ID_1", "amount_cents": 82500},
    {"bill_id": "BILL_ID_2", "amount_cents": 31075}
  ]
}
{
  "vendor_id": "VENDOR_ID",
  "bank_account_id": "BANK_ACCOUNT_ID",
  "method": "ach",
  "allocations": [
    {"bill_id": "BILL_ID_1", "amount_cents": 82500},
    {"bill_id": "BILL_ID_2", "amount_cents": 31075}
  ]
}

The bank account must already exist in Darcy. The API can pay from it, but it cannot add or change a bank account.

Why a retry never posts twice

  1. Your code sends a money write with an Idempotency-Key of up to 255 characters.

  2. Darcy saves the key and the response in the same database transaction as the receipt. Both commit, or neither does.

  3. If the write fails, Darcy saves nothing, so you can fix the request and send it again.

  4. If the write succeeds and the response is lost, a retry with the same key and the same request returns the saved response, with the same receipt id. Nothing new posts.

  5. If the same key comes with a different request, Darcy answers 409, because the caller has a bug.

Case

What Darcy does

First request with a key

Posts the record and saves the key with the response

Retry with the same key and body, within 24 hours

Returns the first response; nothing new posts

Same key with a different body

409 idempotency_conflict; nothing posts

Money write with no key

400 idempotency_key_required; nothing posts

Request refused by a business rule

422 invalid; nothing is saved, so a fixed request can use the key

Retry after 24 hours

Treated as a new request, because Darcy deletes keys after 24 hours

Build the key from your own source record, such as the lockbox batch and item number. Do not make a random key at send time. Then every retry of the same item carries the same key, even after your script restarts. Before you resend an item older than 24 hours, check list_receipts for that lease and received date.

What the API refuses

Request

Answer

Any write with a test key

403 test_key_read_only

A key without the operation's permission

403 missing_scope

A personal check or ACH on a lease that requires certified funds

422 invalid

A payment method that a lease payment restriction blocks

422 invalid

Paying a vendor with a missing or expired W-9 or certificate of insurance, with no compliance_override_reason

422 invalid

Paying a vendor or bank account set up as paid in an outside system

422 invalid

More than 600 requests per minute, or more than 4 in flight, for one key

429 rate_limited

Some things are never available through the API, only in the web app:

  • Where money goes: bank account numbers, payee bank accounts, ACH settings, processor onboarding, and payment routing. The API never returns full account numbers.

  • Access: API keys, OAuth connections, sign-in, invitations, roles, and permissions.

So a leaked key cannot change where money goes, and it cannot create a login that outlives the key.

The ledger rules also hold. Posted journal rows are never edited, and corrections are reversals. Trust cash cannot go negative. A closed month rejects every posting, and in a soft-closed month only users with the gl.close_period permission can post. For the background, see trust accounting.

Money writes over MCP

AI assistants reach the same operations through the Darcy MCP server. Its call_operation tool takes an idempotency_key, which a money operation requires, so a client that retries a timed-out call never posts twice. The tool carries the MCP destructiveHint annotation, so clients ask before they run it. The server tells the model to describe each change and wait for the person's yes, naming the amount or the recipients.

Some money operations also message people. post_charge tells the lease's tenants about the new charge, so it is marked as an operation that can message a resident. Over MCP, the person who connected the assistant approves each such call. AI never messages a tenant without a person's approval.

How other systems handle money writes

The table shows what each vendor publishes about financial access, as of October 2026.

Product

Financial access through the API or MCP

Darcy

Receipts, charges, bills, bill payments, refunds, and write-offs through the API and MCP, with an Idempotency-Key required

Buildium

Read and write Open API on the Premium plan, with one free sandbox account

AppFolio

API read only on Plus, read and write on Max

Rentvine

REST API on every plan; its MCP server keeps financials read-only

Property Meld

API v2 for maintenance records and invoices; the docs cover idempotency keys

Yardi Voyager

Partner program per interface; Supergood, a third party, reports that rent payments are excluded

Buildium's sandbox is a real advantage for testing. Darcy has no sandbox data, and its test keys only read. For lockbox files and invoices, Darcy also has in-app flows: lockbox reconciliation and vendor invoices.

What to measure

  • Duplicate receipts reversed per month. The target is zero.

  • 409 responses per month. Each one is a bug in the caller.

  • Deposit match: the share of API receipt batches whose total equals the bank deposit.

To see the API post a receipt in a test of your own workflow, book a demo.

Darcy

One system, one price, and AI agents that prepare the work

Darcy is a complete property management system. Its agents prepare collections, renewals, maintenance triage, and the month-end close, and a person approves each step.

  • $2 per unit per month, with every module and AI agent included.

  • Imports from AppFolio, Buildium, Yardi, and Rent Manager, reconciled to the cent.

  • No unit minimum, and a 14-day free trial with no credit card.

Pale sand texture
Darcy evidence view with each figure matched to the rent roll

Every number an agent shows is matched to the in-app report before you approve it.

Questions, answered

What happens if I retry a payment request?

If you send the same Idempotency-Key with the same request within 24 hours, Darcy returns the first response and posts nothing new. If you send the same key with a different request, Darcy answers 409. A money write without a key gets 400 and does not post.

Can an API key change a vendor's bank account?

No. Bank account numbers, payee bank accounts, ACH settings, processor onboarding, and payment routing are only in the web app. The API can pay approved bills from a bank account that already exists in Darcy.

Can I test money writes with a test key?

No. Test keys only read, and every write refuses them with 403 test_key_read_only. Darcy has no sandbox data, so a test key reads your live records.

Why does the API use cents?

Integer cents avoid rounding errors from decimal numbers. Send 145000 for $1,450.00. Every amount the API returns is also in integer cents.

Can Claude post a payment in Darcy?

Only with full access, a permission that allows the operation, and your yes. Claude must name the amount first, and the call needs an idempotency key. For reporting, connect with read-only access, and every write refuses the connection.

See Darcy run on a portfolio like yours

Tell us how many units you manage and which system you use today. We’ll show you which parts of your team’s week Darcy can take on.

Step 1

Tell us about your portfolio

Your unit count and the system you use today.

Step 2

See Darcy on data like yours

We walk through the jobs your team does every week.

Step 3

Load your data in setup mode

Nothing is charged, posted, or sent until you select Go live.