ERPNext HRMS icon

ERPNext HRMS

Work with ERPNext/Frappe HRMS v15-v16 documents and methods

Leave Application → Cancel

AI-generated

Summary

Cancel a submitted Leave Application document in ERPNext HRMS using the specified API version.

Inputs

  • API Version — Choose the Frappe REST API version to use for document and method requests; options are 'v1' (stable) or 'v2' (Frappe v16). Default is 'v1'.
  • Document Name (required) — The unique identifier of the Leave Application document to cancel.

Output shape

a single string message confirming the cancellation outcome

Returns a textual confirmation message or the raw response from the ERPNext API after performing the cancellation. Errors are thrown if cancellation fails.

Links

Discussion