More endpoints

    Daily revenue journals

    Post one balanced journal per day from a point of sale or booking system.

    Post daily revenue

    Scope: journals:write. Debits and credits must balance, every account must belong to the company, and accounts must be open on the posting date.

    HelloLedger stores one journal per key, company, and date. Sending the same date again replaces that key's earlier posting instead of creating a duplicate.

    For other entries (adjustments, accruals, transfers) use Journal entries, which you can edit, post, and void by journal_id.

    PUT
    curl -X PUT "https://api.helloledger.ai/v1/companies/{company_id}/journals/daily-revenue" \
      -H "Authorization: Bearer $HL_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
      "date": "2026-07-16",
      "memo": "Daily revenue — YOUR BUSINESS NAME",
      "notes": "Posted by partner POS",
      "lines": [
        {
          "account_id": "64f100000000000000000001",
          "debit": 1250,
          "credit": 0,
          "description": "Cash receipts"
        },
        {
          "account_id": "64f100000000000000000002",
          "debit": 0,
          "credit": 1250,
          "description": "Room revenue"
        }
      ]
    }'
    Response
    { "status": "success", "action": "created", "journal_id": 12345, "date": "2026-07-16" }