Skip to content
Notice This app is in Beta Testing We are still testing Record Sender, so features may change.
Sign in

Money — API reference

Pay, send and receive with the person's Malaleem wallet: what Malaleem lets Record Sender do now (each action's state, and the Malaleem endpoint that's missing when it doesn't), the recent money activity, and proposals to the Action Center. Nothing moves from here: the person confirms each payment in Record Sender, and Authpermit approves it as the owner's rule says (above the account's threshold today).

← All groups
GET /api/v1/money

What Money can do with Malaleem now

Each action's `state`: `available` (Malaleem serves it and the person's wallet is connected), `connect` (connect Malaleem first) or `not_offered` (Malaleem doesn't serve it to partner apps yet; `missing` names the Malaleem endpoint). `approval.rule` is `above_threshold` (Authpermit approves a payment above `approval.threshold`) or `always`.

Scope: actions:read · money.index

Responses 200 · 401 · 403 · 429

200 Success

actions * [MoneyAction]
fields

MoneyAction

capability * string the Action Center key, e.g. malaleem.transfers.execute
currencies * [string]
fields * [string]
group * "pay" | "receive" | "quick_pay" | "quick_receive"
key * "pay" | "rent" | "bills" | "pay_link" | "email_transfer" | "request" | "receive" | "tap_pay" | "scan_pay" | "sms_pay" | "sms_request" | "tap_receive" | "scan_receive"
kind * "payment" | "request" | "read"
missing * [string]
state * "available" | "connect" | "not_offered"
title * string
approval * object
fields
rule * "above_threshold" | "always"
threshold * number in the payment's currency units
connected * boolean a usable Malaleem connection of the person's in this account
currencies * [string]

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

GET /api/v1/money/activity

The recent money activity

Malaleem actions in the Action Center (any state, with their exact amount), the payments and invoices found in the person's mail, and Record Sender's own invoices — newest first.

Scope: station:read · money.activity

ParameterInTypeDescription
limitqueryinteger1–100, default 30
Responses 200 · 401 · 403 · 429

200 Success

items * [object]
fields
amount string | null amount and currency, as shown
at string | null
id * string
kind * "malaleem" | "payments" | "billing"
status string | null
title * string
who string | null

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/money/codes/read

Read a scanned or tapped code

What a QR code or NFC tag says, in Malaleem's own formats: Malaleem's signed pay-me code, its apps' pay-me code, a shop's counter code or an Accept QR (`malaleem://user/<id>`) — who it pays (their Malaleem account id) and the amount it asks (or none: the payer chooses). Read **unverified**: only Malaleem verifies a code, when it pays. A charge code, a checkout, a coupon, a pay link or anything that isn't Malaleem's is refused with its `reason`; nothing is guessed.

Scope: actions:read · Idempotency-Key · money.read_code

Request body application/json
code * string the code's text, at most 2048 bytes
Responses 200 · 401 · 402 · 403 · 409 · 422 · 429

200 Success

code * object
fields
amount string | null major units; null when the payer chooses
currency * string
expires_at string | null
format * "signed_request" | "request_json" | "merchant_static" | "user_uri" | "user_url"
payee_id * string the payee's Malaleem account id
verified * boolean always false: Malaleem verifies a code when it pays

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 invalid_code — `reason`: empty, too_long, not_malaleem, expired, charge_code, checkout, coupon, pay_link, currency

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

POST /api/v1/money/receive-code

Your pay-me code (Scan to receive)

Asks Malaleem for the person's pay-me code (its signed code, valid 15 minutes), for `amount` (optional — without one the payer chooses) in `currency`; show it as a QR code. 409 `not_offered` while Malaleem doesn't serve it to partner apps (`missing` names the endpoint), `not_connected` without a Malaleem connection.

Scope: actions:read · Idempotency-Key · money.receive_code

Request body application/json
amount string major units, optional
currency string default USD
Responses 200 · 401 · 402 · 403 · 409 · 422 · 429

200 Success

amount string | null
code * string the code to show as a QR code
currency * string
expires_at string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 not_offered · not_connected

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 invalid

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

POST /api/v1/money/{key}

Propose a money action

Proposes the action to the Action Center for the exact payee, amount and currency; nothing moves until the person confirms it in Record Sender (and, for a payment, approves it at Authpermit as `approval` says). Fields by action: pay — payee; rent — payee, period (YYYY-MM); bills — biller, account_number; email_transfer — email; pay_link — description, email (optional, to send it to); request — payee (who should pay); scan_pay / tap_pay — code (the Malaleem code as scanned or tapped: its payee, currency and any amount come from it; a different amount or currency is refused); sms_pay / sms_request — phone (with its country code; US dollars only). Every one: amount (major units, above zero), currency, note. `receive`, `tap_receive` and `scan_receive` are reads (see `POST /money/receive-code`).

Scope: actions:write · Idempotency-Key · money.create

ParameterInTypeDescription
key *path"pay" | "rent" | "bills" | "pay_link" | "email_transfer" | "request" | "receive" | "tap_pay" | "scan_pay" | "sms_pay" | "sms_request" | "tap_receive" | "scan_receive"
Request body application/json
account_number string
amount * string major units, e.g. 42.50
biller string
code string scan_pay / tap_pay: the Malaleem code as scanned or tapped
currency * string one of `currencies`
description string
email string (email)
idempotency_key string
note string
payee string an email address, a phone number or a Malaleem merchant code
period string YYYY-MM
phone string sms_pay / sms_request: a phone number with its country code
Responses 201 · 401 · 402 · 403 · 404 · 409 · 422 · 429

201 Success

action * Action
fields

Action

action * string the catalogue key, or plan
agent_id string | null
approvals [ActionApproval]
fields

ActionApproval

approval_url string | null
channel string | null
decided_at string | null
expires_at string | null
id string (uuid)
kind "confirmation" | "step_up"
number string | null show it: Authpermit's Authorizer asks for the same number
params_hash string
reason string | null
status "pending" | "approved" | "denied" | "expired" | "invalidated" | "used"
via string | null
attempts integer
capability string
category "read" | "reversible" | "external_commitment" | "financial_or_irreversible"
confirmed_at string | null
connection_id string | null
error string | null
expires_at string | null
finished_at string | null
id * string (uuid)
idempotency_key string | null
inserted_at string (date-time)
missing [string]
ownership object
fields
authority string | null
domain string | null the Authority Registry's domain (docs/data-exchange.md)
holding "none" | "reference" | "summary" | "cached" | "full" | nil
owner "person" | "organization"
platform string
result_removed boolean the platform's answer was removed when the connection ended
sync_class "native" | "sent"
params object | null the exact parameters (one action)
params_hash * string approvals are bound to it
plan array | null
platform string
proposed_by "person" | "agent" | "flow" | "api"
reason_text string | null
requires_confirmation boolean
result object | null
risk "read" | "low" | "medium" | "high" | "financial"
sister_transaction object | null
fields
amount string
currency string
purpose string
recipient string
reference string | null
source object | null
fields
id string
title string | null
type string
started_at string | null
status * "draft" | "planning" | "validating" | "awaiting_information" | "awaiting_authorization" | "awaiting_confirmation" | "ready" | "executing" | "verifying" | "retry_pending" | "completed" | "partially_completed" | "failed" | "compensating" | "compensated" | "rejected" | "cancelled" | "requires_attention"
status_reason string | null
step_up boolean needs Authpermit's approval
step_up_reason string | null over_threshold, high_risk_payment, or sister_required (the platform's own limit)
steps [ActionStep]
fields

ActionStep

action string
attempts integer
capability string
compensation string | null
compensation_status "compensated" | "failed" | "not_available" | nil
error string | null
finished_at string | null
idempotency_key string
platform string
position integer
provider_ref string | null
started_at string | null
status "pending" | "executing" | "completed" | "failed" | "skipped" | "compensating" | "compensated"
title string | null
summary string | null
title * string
updated_at string (date-time)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 No such money action

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

409 not_offered (Malaleem doesn't serve it yet — `missing` names the endpoint) · not_connected

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 invalid · invalid_code (a scanned code that isn't a Malaleem code to pay)

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)