Submit payment entry

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

POST https://cotlet.dev/api/v1/erpnext/payment-entry/submit

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.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/erpnext/payment-entry/submit \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"payment_entry":"payment entry"}'
Python
result = client.call("erpnext", "submit_payment_entry", {"payment_entry":"payment entry"})
Node.js
const result = await cotlet.call('erpnext', 'submit_payment_entry', {"payment_entry":"payment entry"});
CLI
cotlet call erpnext submit_payment_entry --data '{"payment_entry":"payment entry"}'

Example response

JSON

{
  "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"
    }
  ]
}

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.