Skip to main content
POST
Record a payment

Authorizations

Authorization
string
header
required

An organization API key, created in Settings → Integrations → API keys. Keys start with mk_live_. Marro stores only a hash of a key, so it is shown once, when it is created: copy it then. Revoking a key ends its access at once. To replace a key without downtime, create the new one, switch your server to it, then revoke the old one. Changes made with a key appear on the lead’s timeline as made by the person who created the key, via the API. Scopes: objects.records.read (Read custom objects), objects.records.write (Create and update custom-object records), objects.records.delete (Delete custom-object records), leads.read (Read leads), leads.write (Create and update leads), leads.capture (Capture leads), crm.records.read (Read customers and opportunities), crm.records.write (Create and update customers and opportunities), reports.read (Read reports), money.read (Read products, quotes, invoices and payments), money.write (Create quotes and invoices and record payments), agent.tools (AI agent tools (MCP)).

Scopes

money.write

Path Parameters

invoiceId
integer
required

Invoice ID.

Required range: x >= 1

Body

application/json
amount
number
required

In the main unit (rupees), at most what is still due.

method
enum<string>
required
Available options:
cash,
upi,
bank,
card,
cheque,
other
paidOn
string

Defaults to today. Not in the future.

Pattern: ^\d{4}-\d{2}-\d{2}$
reference
string
Maximum string length: 80

Response

The payment, and the invoice after it.

paymentId
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
invoice
object | null
required