monoclose

Developer docs

Private access

The monoclose API.

Your client's own system can send monoclose its files and its sales, refunds, fees and payouts, so the month-end checks run against what that system actually says. Reading close status and journals, and webhooks, are planned and listed at the end.

Quickstart

monoclose is in private access, so a key comes from a firm that has been given access: an administrator or manager makes it in the app, for one client, and it is shown once. Then check it works:

check a key

export MONOCLOSE_KEY="mci_..."
curl "https://api.monoclose.com/v1/ingest/whoami" \
  -H "Authorization: Bearer $MONOCLOSE_KEY"

Authentication

Send the key as a bearer token. A key looks like mci_<32 hex>_<secret>. It belongs to one client, carries the datasets it may send (files, transactions), and expires (up to two years; a year by default). Only a hash of the secret is stored, so a lost key cannot be shown again: revoke it and make another.

A key acts as the person who made it, and stops working the moment they stop being an active member of the firm. Revoking a key cuts it off at once; what it already sent stays, because it is the record of what was reconciled.

Check a key

GET/v1/ingest/whoami

Says what the key is for and what it can send to: the client, the key's label and scopes, when it expires, the account codes that accept transactions, and the months that are open.

200 OK

{
  "entity_id": "0b0c3e0e-6f0e-4d0e-8f3a-2f5b8d3c7a11",
  "entity_name": "Northwind Retail",
  "key_label": "Shop checkout export",
  "scopes": ["files", "transactions"],
  "expires_at": "2027-10-09T08:00:00Z",
  "clearing_accounts": ["1250"],
  "open_months": [
    { "id": "…", "label": "October 2026", "starts_on": "2026-10-01", "ends_on": "2026-10-31" }
  ]
}

Send a file

POST/v1/ingest/files

A listing, statement or register from the client's system. It is stored as evidence exactly as an uploaded file is: inspected, scanned for malware and fingerprinted. The body is the file's bytes, sent as application/octet-stream, up to 4 MB. PDFs, spreadsheets (.xlsx, CSV) and images are accepted; what a file is comes from its bytes, never from its name.

Query parameters: kind (required), name (required, shown beside the file), and optionally account_code, period_id and counterparty. A key cannot send a trial balance, general ledger or chart of accounts: those define the client, so a person uploads them.

kind is one of

bank_statement
processor_report
supplier_statement
customer_confirmation
aged_listing
vat_return
payroll_register
sars_statement
asset_register
stock_count_sheet
schedule
loan_statement
intercompany_confirmation
share_register
other

example

curl -X POST "https://api.monoclose.com/v1/ingest/files?kind=processor_report&name=october-settlements.csv&account_code=1250" \
  -H "Authorization: Bearer $MONOCLOSE_KEY" \
  -H "Content-Type: application/octet-stream" \
  --data-binary @october-settlements.csv

Answers 201 with the evidence record when the file is new, and 200 with the existing record when the same file was already sent for the same account, kind and month, so a retry is safe.

Send transactions

POST/v1/ingest/transactions

The client's own record of sales, refunds, chargebacks, fees, payouts and adjustments for one payment-processor clearing account, over a window of dates. It replaces whatever was sent for that window before, so sending the same thing again changes nothing and a correction is just a new send. The clearing account is checked against it on the working paper.

example

curl -X POST "https://api.monoclose.com/v1/ingest/transactions" \
  -H "Authorization: Bearer $MONOCLOSE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "account_code": "1250",
    "window_start": "2026-10-01",
    "window_end": "2026-10-31",
    "currency": "ZAR",
    "rows": [
      { "id": "ord_1042", "date": "2026-10-03", "kind": "sale",
        "amount": "1150.00", "fee": "34.50", "settlement_ref": "payout_77" },
      { "id": "ref_0099", "date": "2026-10-05", "kind": "refund", "amount": "230.00" },
      { "id": "payout_77", "date": "2026-10-06", "kind": "payout", "amount": "1115.50" }
    ]
  }'

200 OK

{
  "account_code": "1250",
  "window_start": "2026-10-01",
  "window_end": "2026-10-31",
  "stored": 3,
  "replaced": 0
}
  • Amounts are text, like "100.00", never a decimal number: JSON numbers pass through floating point before we see them. Amounts are positive; the kind says which way the money went.
  • kind is one of sale, refund, chargeback, fee, payout, adjustment. Only a sale carries a fee (never more than the sale); send other fees as their own rows of kind fee.
  • id is your own identifier (letters, digits and . _ : / -, up to 100 characters) and must be unique within a send. Every row must be dated inside the window.
  • A window is at most 92 days and a send at most 5,000 rows: send longer periods in parts. Currency is ZAR.
  • account_code must be one of the key's clearing_accounts from whoami.

Limits and errors

Each key may make 120 requests a minute. Errors are plain JSON with a detail that says what went wrong in words.

401The key is missing, wrong, expired, revoked or unknown. All of these get the same answer on purpose.
403The key may not send that (its scopes do not include it), or the file is a trial balance, general ledger or chart: a person uploads those.
413The file is larger than 4 MB.
415A file was not sent as application/octet-stream.
422Something in the request is not valid. The answer says what, in words.
429Too many requests from this key. Wait for the number of seconds in Retry-After.

Planned

These are not available yet. They are listed so you can see where the API is going.

Coming soon

Close status

Pull live close-readiness, period status, and materiality flags for any client entity.

Coming soon

Reconciliations & journals

Read reconciliation results and posted journal entries, complete with source workpapers and provenance.

Coming soon

Webhooks

Subscribe to period.closed, journal.posted, and reconciliation.completed events as they happen.

Integrations

  • Xero

    Live ERP connector — chart of accounts, transactions, and balances sync automatically.

  • Sage

    Sage Business Cloud — the same real-time connector coverage as Xero.

  • Microsoft SharePoint

    Microsoft 365 — working papers kept as Excel workbooks in a SharePoint site your admin grants. Access is to that one site only, never the whole tenant.

  • Cin7

    Cin7

    Cin7 Core inventory — stock on hand and average cost read into the month's stock listing, tested at the lower of cost and net realisable value. Read-only, and shown as at the day it is read.

  • Yoco

    Yoco

    Card payment and POS settlement reconciliation.

    Coming soon
  • Peach Payments

    Peach Payments

    Payment gateway settlement reconciliation.

    Coming soon
  • Stitch

    Stitch

    Bank-to-bank payment and payout reconciliation.

    Coming soon