Submit sales invoice

Submits a draft sales invoice so it posts to the ledger.

MCP tool erpnext_write → submit_sales_invoice

write Confirm

Moves a draft Sales Invoice to submitted (docstatus 1). The invoice then affects the books and shows Unpaid until paid, or Overdue after its due date. A submitted invoice cannot be edited; to change it, cancel it with cancel_sales_invoice and create a new draft. The call returns ERPNext's error if a required field is empty. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: submit_sales_invoice
NameTypeDescription
invoice string required string Sales Invoice ID from list_sales_invoices or create_sales_invoice.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "erpnext_write",
    "arguments": {
      "operation": "submit_sales_invoice",
      "arguments": {
        "invoice": "ACC-SINV-2026-00042"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "invoice": "ACC-SINV-2026-00042",
    "status": "Unpaid",
    "docstatus": 1,
    "grand_total": 1650,
    "outstanding_amount": 1650,
    "due_date": "2026-11-13"
  },
  "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.