ERPNext HRMS icon

ERPNext HRMS

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

Expense Claim → Cancel

AI-generated

Summary

Cancel a submitted Expense Claim document in ERPNext HRMS by specifying its document name and the API version to use.

Inputs

  • API Version (required) — Select the Frappe REST API version to use for the cancel request, either 'v1' (/api/resource) or 'v2' (/api/v2/document). Default is 'v1'.
  • Document Name (required) — The unique identifier (name) of the Expense Claim document to cancel.

Output shape

a single record with a success message or relevant cancellation result

Returns the message from the ERPNext API response confirming cancellation, or the raw response if no message is provided.

Links

Discussion