New to Corsair? See API access, authentication, and error handling.
Desk
addComment
desk.addComment
Add a comment to any document; the caller supplies the reference, content, and commenter identity. Users @mentioned in the content are notified by email
Risk: destructive
body full type
body full type
addTag
desk.addTag
Add a tag to a document, optionally with a color, for organization and filtering
Risk: write
body full type
body full type
searchGlobal
desk.searchGlobal
Search a DocType by text across its searchable fields, with optional custom search method, filters, and result limit
Risk: read
Output
Doctypes
getMeta
doctypes.getMeta
Read the complete metadata of a DocType: field definitions, types, permissions, and configuration
Risk: read
Output
list
doctypes.list
List the DocTypes available on the instance with optional filtering and pagination
Risk: read
Output
Documents
cancel
documents.cancel
Cancel a submitted document by doctype and name through the frappe.client RPC
Risk: destructive · Irreversible
body full type
body full type
create
documents.create
Create a document of any DocType from its field values; the response carries the created document
Risk: write
Output
delete
documents.delete
Delete a document of a DocType by its name
Risk: destructive · Irreversible
Output
get
documents.get
Read one document of a DocType by its name
Risk: read
Output
getClient
documents.getClient
Read a single document through the frappe.client RPC by doctype and name
Risk: read
Output
getCount
documents.getCount
Count the documents of a DocType matching optional filters
Risk: read
Output
getList
documents.getList
Query documents through the frappe.client RPC with filtering, field selection, and pagination
Risk: read
Output
getValue
documents.getValue
Read specific field values from documents matching filters without loading the whole document
Risk: read
Output
getWithMeta
documents.getWithMeta
Read a document with its desk metadata: attachments, comments, activity logs, and related information
Risk: read
Output
insert
documents.insert
Insert a document through the frappe.client RPC, passing the full document object including its doctype field
Risk: write
body full type
body full type
insertMany
documents.insertMany
Insert multiple documents in one call for efficiency; each item carries its doctype and field values
Risk: write
body full type
body full type
list
documents.list
List documents of a DocType with field selection, filters, ordering, and pagination
Risk: read
Output
renameDoc
documents.renameDoc
Rename a document by changing its primary identifier, optionally merging into an existing name
Risk: write
body full type
body full type
saveDocs
documents.saveDocs
Save, submit, cancel, or update a document by sending its docstatus and fields through the frappe.client RPC
Risk: destructive · Irreversible
body full type
body full type
saveDocument
documents.saveDocument
Save an existing document through the frappe.client RPC, passing the complete document object with its changes
Risk: write
body full type
body full type
searchLink
documents.searchLink
Search documents of a DocType for Link-field autocomplete suggestions by name or text
Risk: read
Output
message full type
message full type
setValue
documents.setValue
Set one field value on a document without loading or rewriting the whole document
Risk: write
body full type
body full type
submit
documents.submit
Submit a submittable document, moving it from draft to submitted through the frappe.client RPC
Risk: destructive · Irreversible
body full type
body full type
update
documents.update
Update a document by name; the body carries the fields to change
Risk: write
Output
Erp
getExchangeRate
erp.getExchangeRate
Get the exchange rate between two currencies on an optional date; Frappe requires the date when the currencies differ
Risk: read
Output
getItemDetails
erp.getItemDetails
Get the pricing, tax, and stock details ERPNext computes for an item in a selling or buying context
Risk: read
Output
getPartyDetails
erp.getPartyDetails
Get the address, contact, currency, and payment-term details ERPNext attaches to a customer or supplier
Risk: read
Output
getPaymentEntry
erp.getPaymentEntry
Get a prefilled payment entry draft for an outstanding sales invoice, purchase invoice, or order
Risk: read
Output
getStockBalance
erp.getStockBalance
Get the available stock balance of an item in a warehouse as of an optional posting date
Risk: read
Output
makeDeliveryNote
erp.makeDeliveryNote
Map a sales order into a draft delivery note, preserving the linked item rows
Risk: write
body full type
body full type
makePurchaseOrder
erp.makePurchaseOrder
Map a sales order or material request into draft purchase orders grouped by supplier
Risk: write
body full type
body full type
makeSalesInvoice
erp.makeSalesInvoice
Map a sales order into a draft sales invoice, preserving the linked item rows
Risk: write
body full type
body full type
makeStockEntry
erp.makeStockEntry
Create a stock entry for material transfers, receipts, or issues between warehouses; ERPNext saves and submits it unless do_not_save or do_not_submit is set
Risk: destructive · Irreversible
Output
Files
downloadFile
files.downloadFile
Download a stored file by its URL path; the plugin returns the bytes base64-encoded
Risk: read
Output
downloadPdf
files.downloadPdf
Download a document as PDF through a print format; the plugin returns the bytes base64-encoded
Risk: read
Output
People
listEmployees
people.listEmployees
List the employees recorded on the instance
Risk: read
Output
listProjects
people.listProjects
List the projects recorded on the instance
Risk: read
Output
System
getAllLanguages
system.getAllLanguages
List the languages available on the instance for translation and localization; pass limit_page_length 0 for all
Risk: read
Output
getAllRoles
system.getAllRoles
List the roles defined on the instance
Risk: read
Output
getFiscalYear
system.getFiscalYear
List the fiscal years configured on the instance for accounting periods
Risk: read
Output
getFrameworkVersion
system.getFrameworkVersion
Get the Frappe framework version and all installed app versions; requires a desk user
Risk: read
getLoggedUser
system.getLoggedUser
Get the user account the token authenticates as
Risk: read
getTimezones
system.getTimezones
List all timezone identifiers available for user configuration and scheduling
Risk: read
message full type
message full type
getUserRoles
system.getUserRoles
List role assignments (the Has Role child records) with optional user and role filters
Risk: read
Output
ping
system.ping
Check that the site answers authenticated API requests
Risk: read
Timesheets
create
timesheets.create
Create a timesheet with time log entries for an employee or project
Risk: write
Output
list
timesheets.list
List the timesheets recorded on the instance
Risk: read
Output
Webhooks
create
webhooks.create
Create a webhook subscription that fires on a DocType event such as create, update, or submit
Risk: write
Output
list
webhooks.list
List the configured webhook subscriptions on the instance
Risk: read
Output
Workflow
apply
workflow.apply
Apply a workflow action to a document, transitioning it through its configured workflow states; transitions can submit or cancel the document
Risk: destructive · Irreversible
body full type
body full type
getTransitions
workflow.getTransitions
List the workflow transitions available for a document, optionally scoped to a role
Risk: read
Output