DaffodilAPI
Sandbox

Post interest or a fee to a Fund

Posts an interest or fee Ledger entry to a Fund at once and sends ledger_entry.posted. A fee larger than the Fund’s balance is refused with 409 insufficient_funds. Sandbox only: exists on sandbox.api.getdaffodil.com and answers 404 not_found everywhere else.

POST
/v1/sandbox/funds/{id}/ledger_entries
AuthorizationBearer <token>

Your secret API key: dfl_live_… in production, dfl_test_… in the Sandbox.

In: header

Path Parameters

idstring
Match^fund_[0-9A-Za-z]{22}$

Header Parameters

idempotency-keystring

Required on every write. A unique value you generate per intended write, such as a UUID. A retry with the same key and the same body returns the original response; the same key with a different body returns 422 idempotency_key_reused. Keys are kept for 24 hours, per Account and environment.

Length1 <= length <= 255
typestring

interest credits the Fund, as month-end interest would. fee debits it, as an account fee would.

Value in"interest" | "fee"
amountinteger

How much, as a positive number; a fee is posted as a debit. Integer cents, greater than zero.

Range0 < value
currency?Currency

Response Body

curl -X POST "https://sandbox.api.getdaffodil.com/v1/sandbox/funds/fund_2JqSDJkaCfO4pnMMD5na5G/ledger_entries" \  -H "idempotency-key: 8e03978e-40d5-43e8-bc93-6894a57f9324" \  -H "Content-Type: application/json" \  -d '{    "type": "interest",    "amount": 1234,    "currency": "USD"  }'
{
  "id": "le_1Ji3bmQbexJ4j64cam7eFp",
  "fund_id": "fund_2JqSDJkaCfO4pnMMD5na5G",
  "type": "contribution",
  "amount": 25000,
  "currency": "USD",
  "balance_after": 1250000,
  "posted_at": "2026-11-11T21:42:00Z",
  "effective_at": "2026-11-11T21:40:00Z",
  "source": {
    "type": "contribution",
    "id": "contrib_4jV68U95QzmwbX04gqFKu5"
  }
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}