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
Custom DocType → Cancel
AI-generatedSummary
Cancel a submitted Custom DocType document in ERPNext HRMS to reverse its submission state.
Inputs
- API Version — Specify the Frappe REST API version to use (v1 or v2). Defaults to v1.
- Custom DocType (required) — The name of the custom document type to target, e.g., 'Job Applicant'.
- Document Name (required) — The unique identifier of the document to cancel (usually the document ID).
Output shape
a single JSON object containing the API response message or details of the cancelled document
The output returns confirmation or message from the ERPNext API indicating the cancellation result. Errors are thrown if the document cannot be cancelled or if required inputs are missing.