ERPNext HRMS icon

ERPNext HRMS

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

Custom DocType → Cancel

AI-generated

Summary

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.

Links

Discussion