Skip to main content
Glama

Simpler.Asia

invoice_payment_record

Records a money-in fact row against an invoice (by invoice_id or its invoice_number) in ONE call: money is integer CENTS via amount_cents, or a decimal STRING via amount — never multiply or divide yourself. A draft invoice auto-advances to 'sent'; a cancelled invoice refuses; an amount above the remaining balance refuses unless allow_overpayment is true. status 'paid' derives from the ledger this writes, so this is how an invoice becomes paid. A same invoice/amount/day repeat refuses as a likely duplicate unless resent with force:true. NEXT: invoice_read to read it back.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNo
forceNoConfirms a genuine second payment when the same invoice/amount/day already has one recorded (default false refuses it as a likely duplicate) — resend the SAME call with force:true.
amountNoMoney as a decimal STRING ("1500.00" = $1,500.00), parsed server-side. Use amount_cents for integer CENTS instead — never convert units yourself.
methodNo
currencyNo
invoice_idNo
occurred_atNo
amount_centsNo
invoice_numberNoAlias of invoice_id — the invoice's own number (tenant-unique), resolved server-side.
allow_overpaymentNoExplicit override (default false): record more than the remaining balance / pay an already-settled invoice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources