invoices.recordPayment
Record a full or partial payment on an issued invoice with amountMinor in the invoice currency, paid date, method, reference, and an optional bank transaction. Optionally write off a small remaining balance such as wire fees. Updates the balance and paid status.
/api/v1/accounting/invoices.recordPaymentPermissions
Who can call it
Retries
MCP
accounting_invoices_record_paymentFields
reviewHashstringSHA-256 hash as 64 lowercase hex characters
invoiceIdstring (ID)RequiredThe ID of the related record.
expectedRevisionintegerRequiredThe record's current revision, from the last time you read it. If someone changed the record since, the request is refused with a conflict so you can reload and check before trying again.
at most 9007199254740991 · greater than 0
amountMinorstringRequiredAn amount in cents (the currency's smallest unit), written as a whole-number string such as "1250" for $12.50.
Matches ^\d{1,18}$
paidOnstringRequiredmethodenumbank_transferwireinteraccardchequecashpay_linkotherDefault "bank_transfer"
referencestringat most 300 characters
notestringA short note, kept with the record.
at most 1000 characters
transactionIdstring (ID)The ID of a bank or card transaction, from transactions.list.
writeOffRemainderbooleanDefault false
writeOffReasonstringat most 300 characters
idempotencyKeystringRequiredAny unique text you generate once per intended change, so a retried request only happens once. Send it as the Idempotency-Key header instead if you prefer; if you send both they must match.
8–200 characters
Example
curl https://app.getoatmilk.com/api/v1/accounting/invoices.recordPayment \
-H "Authorization: Bearer $OATMILK_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"invoiceId": "4d5e6f7a-8b9c-4d0e-8f1a-2b3c4d5e6f7a",
"expectedRevision": 3,
"amountMinor": "1250",
"paidOn": "2026-09-30"
}'{
"data": { … }
}Try it
Try it
Checks your input with this action’s real schema and answers like the API, with synthetic data. No key needed, and nothing changes.
curl https://app.getoatmilk.com/api/v1/accounting/invoices.recordPayment \
-H "Authorization: Bearer $OATMILK_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"invoiceId": "4d5e6f7a-8b9c-4d0e-8f1a-2b3c4d5e6f7a",
"expectedRevision": 3,
"amountMinor": "1250",
"paidOn": "2026-09-30"
}'More in Invoicing.