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
| Name | Type | Description |
|---|---|---|
| payment_entry string required | string | Payment Entry ID from list_payment_entries or create_payment_entry. |
Request
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"}' result = client.call("erpnext", "submit_payment_entry", {"payment_entry":"payment entry"}) const result = await cotlet.call('erpnext', 'submit_payment_entry', {"payment_entry":"payment entry"}); cotlet call erpnext submit_payment_entry --data '{"payment_entry":"payment entry"}' Example response
{
"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"
}
]
}