Skip to main content
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
Input
Output

addTag

desk.addTag Add a tag to a document, optionally with a color, for organization and filtering Risk: write
Input
Output

searchGlobal

desk.searchGlobal Search a DocType by text across its searchable fields, with optional custom search method, filters, and result limit Risk: read
Input Output

Doctypes

getMeta

doctypes.getMeta Read the complete metadata of a DocType: field definitions, types, permissions, and configuration Risk: read
Input Output

list

doctypes.list List the DocTypes available on the instance with optional filtering and pagination Risk: read
Input Output

Documents

cancel

documents.cancel Cancel a submitted document by doctype and name through the frappe.client RPC Risk: destructive · Irreversible
Input
Output

create

documents.create Create a document of any DocType from its field values; the response carries the created document Risk: write
Input Output

delete

documents.delete Delete a document of a DocType by its name Risk: destructive · Irreversible
Input Output

get

documents.get Read one document of a DocType by its name Risk: read
Input Output

getClient

documents.getClient Read a single document through the frappe.client RPC by doctype and name Risk: read
Input Output

getCount

documents.getCount Count the documents of a DocType matching optional filters Risk: read
Input Output

getList

documents.getList Query documents through the frappe.client RPC with filtering, field selection, and pagination Risk: read
Input Output

getValue

documents.getValue Read specific field values from documents matching filters without loading the whole document Risk: read
Input Output

getWithMeta

documents.getWithMeta Read a document with its desk metadata: attachments, comments, activity logs, and related information Risk: read
Input Output

insert

documents.insert Insert a document through the frappe.client RPC, passing the full document object including its doctype field Risk: write
Input
Output

insertMany

documents.insertMany Insert multiple documents in one call for efficiency; each item carries its doctype and field values Risk: write
Input
Output

list

documents.list List documents of a DocType with field selection, filters, ordering, and pagination Risk: read
Input Output

renameDoc

documents.renameDoc Rename a document by changing its primary identifier, optionally merging into an existing name Risk: write
Input
Output

saveDocs

documents.saveDocs Save, submit, cancel, or update a document by sending its docstatus and fields through the frappe.client RPC Risk: destructive · Irreversible
Input
Output

saveDocument

documents.saveDocument Save an existing document through the frappe.client RPC, passing the complete document object with its changes Risk: write
Input
Output
documents.searchLink Search documents of a DocType for Link-field autocomplete suggestions by name or text Risk: read
Input Output

setValue

documents.setValue Set one field value on a document without loading or rewriting the whole document Risk: write
Input
Output

submit

documents.submit Submit a submittable document, moving it from draft to submitted through the frappe.client RPC Risk: destructive · Irreversible
Input
Output

update

documents.update Update a document by name; the body carries the fields to change Risk: write
Input 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
Input Output

getItemDetails

erp.getItemDetails Get the pricing, tax, and stock details ERPNext computes for an item in a selling or buying context Risk: read
Input Output

getPartyDetails

erp.getPartyDetails Get the address, contact, currency, and payment-term details ERPNext attaches to a customer or supplier Risk: read
Input Output

getPaymentEntry

erp.getPaymentEntry Get a prefilled payment entry draft for an outstanding sales invoice, purchase invoice, or order Risk: read
Input Output

getStockBalance

erp.getStockBalance Get the available stock balance of an item in a warehouse as of an optional posting date Risk: read
Input Output

makeDeliveryNote

erp.makeDeliveryNote Map a sales order into a draft delivery note, preserving the linked item rows Risk: write
Input
Output

makePurchaseOrder

erp.makePurchaseOrder Map a sales order or material request into draft purchase orders grouped by supplier Risk: write
Input
Output

makeSalesInvoice

erp.makeSalesInvoice Map a sales order into a draft sales invoice, preserving the linked item rows Risk: write
Input
Output

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
Input Output

Files

downloadFile

files.downloadFile Download a stored file by its URL path; the plugin returns the bytes base64-encoded Risk: read
Input Output

downloadPdf

files.downloadPdf Download a document as PDF through a print format; the plugin returns the bytes base64-encoded Risk: read
Input Output

People

listEmployees

people.listEmployees List the employees recorded on the instance Risk: read
Input Output

listProjects

people.listProjects List the projects recorded on the instance Risk: read
Input 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
Input Output

getAllRoles

system.getAllRoles List the roles defined on the instance Risk: read
Input Output

getFiscalYear

system.getFiscalYear List the fiscal years configured on the instance for accounting periods Risk: read
Input Output

getFrameworkVersion

system.getFrameworkVersion Get the Frappe framework version and all installed app versions; requires a desk user Risk: read
Input: empty object Output

getLoggedUser

system.getLoggedUser Get the user account the token authenticates as Risk: read
Input: empty object Output

getTimezones

system.getTimezones List all timezone identifiers available for user configuration and scheduling Risk: read
Input: empty object Output

getUserRoles

system.getUserRoles List role assignments (the Has Role child records) with optional user and role filters Risk: read
Input Output

ping

system.ping Check that the site answers authenticated API requests Risk: read
Input: empty object Output

Timesheets

create

timesheets.create Create a timesheet with time log entries for an employee or project Risk: write
Input Output

list

timesheets.list List the timesheets recorded on the instance Risk: read
Input Output

Webhooks

create

webhooks.create Create a webhook subscription that fires on a DocType event such as create, update, or submit Risk: write
Input Output

list

webhooks.list List the configured webhook subscriptions on the instance Risk: read
Input 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
Input
Output

getTransitions

workflow.getTransitions List the workflow transitions available for a document, optionally scoped to a role Risk: read
Input Output