Submit payment entry

Submits a draft payment entry so it posts to the General Ledger.

MCP tool erpnext_write → submit_payment_entry

write Confirm

Moves a draft Payment Entry to submitted. Submitting creates the General Ledger entries: debit to Bank or Cash, credit to the customer receivable. The allocated invoices then show Partly Paid or Paid. To reverse it, cancel the entry in ERPNext. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: submit_payment_entry
NameTypeDescription
payment_entry string required string Payment Entry ID from list_payment_entries or create_payment_entry.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "erpnext_write",
    "arguments": {
      "operation": "submit_payment_entry",
      "arguments": {
        "payment_entry": "payment entry"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "payment_entry": "ACC-PAY-2026-00021",
    "status": "Submitted",
    "docstatus": 1,
    "paid_amount": 1650,
    "allocated_to": [
      {
        "invoice": "ACC-SINV-2026-00042",
        "allocated_amount": 1650,
        "invoice_status": "Paid"
      }
    ]
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.