Actions77
- Employee Actions
- Attendance Actions
- Employee Checkin Actions
- Expense Claim Actions
- Holiday List Actions
- Leave Allocation Actions
- Leave Application Actions
- Salary Slip Actions
- Shift Assignment Actions
- Custom DocType Actions
- Frappe Method Actions
Leave Application → Cancel
AI-generatedSummary
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.