Billing for MosdosBeta

Billing for Mosdos API (v1)

Billing for Mosdos keeps the accounts of mosdos and shuls: clients (parents or members), their children (sub-accounts), weekly charges, payments, statements, follow-ups and balance texts. This API lets the organisation's own assistant (an AI agent or a script) read and, with a "Read and edit" key, change that customer's own data, with the same rules as a person signed in to the app.

Basics

Rules for assistants

  1. Only this customer's data. Use only IDs this API gave you.
  2. Before any change or send, tell the user exactly what you will do and wait for a clear yes.
  3. Never assume a payment. Record a payment only when the user says it came in.
  4. Texts and emails: preview first, show the user the preview, send only after a yes, with that preview's confirm_token.
  5. Never share the key.

How the billing works (so the numbers make sense)

Endpoints

About the key

Clients (parents / members)

Children (sub-accounts)

Money

Follow-ups

Settings (safe part)

Balance texts

Statements by email

Change log

Errors

Example

curl -s https://billingformosdos.com/api/v1/organisations -H "Authorization: Bearer $KEY"
curl -s "https://billingformosdos.com/api/v1/orgs/ORG_ID/clients?q=cohen" -H "Authorization: Bearer $KEY"
curl -s -X POST https://billingformosdos.com/api/v1/orgs/ORG_ID/payments -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" -H "Idempotency-Key: pay-123" -d '{"client_id":"CLIENT_ID","amount_pence":5000,"date":"2026-10-25","method":"Bank transfer"}'