Sage Business Cloud Accounting MCP Server for Cloudflare Workers
Test Sage tools directly in your browser. Select a tool and provide inputs to see the results.
Create a free account to test Sage tools interactively. No credit card required.
sage_list_ledger_accountsList ledger accounts (chart of accounts) with pagination and filtering. Args: - search: Search query - visibleIn: Filter by visibility (expenses, banking, journals, sales, purchases) - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format Returns: Paginated list of ledger accounts with balances.
sage_get_ledger_accountGet a ledger account by ID. Args: - id: Ledger account ID - format: Response format Returns: The ledger account with all details including balance.
sage_create_ledger_accountCreate a new ledger account. Args: - name: Account name (required) - ledgerAccountTypeId: Account type ID (required) - nominalCode: Nominal/account code - ledgerAccountGroupId: Account group ID - taxRateId: Default tax rate ID - visibleInExpenses: Show in expenses - visibleInBanking: Show in banking - visibleInJournals: Show in journals - visibleInSales: Show in sales - visibleInPurchases: Show in purchases Returns: The created ledger account.
sage_update_ledger_accountUpdate an existing ledger account. Args: - id: Ledger account ID to update (required) - name: New account name - nominalCode: New nominal code - taxRateId: New default tax rate ID - visibleInExpenses: Show in expenses - visibleInBanking: Show in banking - visibleInJournals: Show in journals - visibleInSales: Show in sales - visibleInPurchases: Show in purchases Returns: The updated ledger account.
sage_delete_ledger_accountDelete a ledger account. Args: - id: Ledger account ID to delete Returns: Confirmation of deletion.
sage_delete_sales_quick_entryDelete a sales quick entry. Args: - id: Sales quick entry ID to delete Returns: Confirmation of deletion.
sage_list_tax_ratesList tax rates with pagination. Args: - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format Returns: Paginated list of tax rates.
sage_get_tax_rateGet a tax rate by ID. Args: - id: Tax rate ID - format: Response format Returns: The tax rate with all details.
sage_create_tax_rateCreate a new tax rate. Args: - name: Tax rate name (required) - percentage: Tax percentage (required) - agency: Tax agency name - isVisible: Whether rate is visible - forSales: Available for sales - forPurchases: Available for purchases Returns: The created tax rate.
sage_update_tax_rateUpdate an existing tax rate. Args: - id: Tax rate ID to update (required) - name: New tax rate name - percentage: New tax percentage - agency: New tax agency name - isVisible: New visibility status Returns: The updated tax rate.
sage_delete_tax_rateDelete a tax rate. Args: - id: Tax rate ID to delete Returns: Confirmation of deletion.
sage_list_journalsList journals with pagination. Args: - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format Returns: Paginated list of journals.
sage_get_journalGet a journal by ID. Args: - id: Journal ID - format: Response format Returns: The journal with all details including journal lines.
sage_create_journalCreate a new journal entry. Args: - date: Journal date in YYYY-MM-DD format (required) - journalLines: Array of journal lines with debit/credit amounts (required) - reference: Journal reference - description: Journal description Returns: The created journal.
sage_delete_journalDelete a journal. Args: - id: Journal ID to delete Returns: Confirmation of deletion.
sage_list_ledger_entriesList ledger entries (transactions) with pagination and filtering. Args: - ledgerAccountId: Filter by ledger account ID - fromDate: Filter from date (YYYY-MM-DD) - toDate: Filter to date (YYYY-MM-DD) - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format Returns: Paginated list of ledger entries.
sage_list_contact_opening_balancesList contact opening balances. Args: - contactId: Filter by contact ID - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format Returns: Paginated list of contact opening balances.
sage_create_contact_opening_balanceCreate a contact opening balance. Args: - contactId: Contact ID (required) - transactionTypeId: Transaction type ID (required) - date: Date in YYYY-MM-DD format (required) - debitAmount: Debit amount - creditAmount: Credit amount - reference: Reference Returns: The created contact opening balance.
sage_get_businessGet the current business information. Returns: The business details including name, address, contact information.
sage_list_countriesList all available countries. Returns: List of countries with id, code, and name.
sage_list_bank_opening_balancesList bank opening balances. Args: - bankAccountId: Filter by bank account ID - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format Returns: Paginated list of bank opening balances.
sage_create_bank_opening_balanceCreate a bank opening balance. Args: - bankAccountId: Bank account ID (required) - transactionTypeId: Transaction type ID (required) - date: Date in YYYY-MM-DD format (required) - debitAmount: Debit amount - creditAmount: Credit amount - reference: Reference Returns: The created bank opening balance.
sage_list_ledger_account_opening_balancesList ledger account opening balances. Args: - ledgerAccountId: Filter by ledger account ID - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format Returns: Paginated list of ledger account opening balances.
sage_create_ledger_account_opening_balanceCreate a ledger account opening balance. Args: - ledgerAccountId: Ledger account ID (required) - date: Date in YYYY-MM-DD format (required) - debitAmount: Debit amount - creditAmount: Credit amount - reference: Reference Returns: The created ledger account opening balance.
sage_list_bank_accountsList bank accounts with pagination. Args: - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format ('json' or 'markdown') Returns: Paginated list of bank accounts with balance information.
sage_get_bank_accountGet a bank account by ID. Args: - id: Bank account ID - format: Response format Returns: The bank account with all details including balance.
sage_create_bank_accountCreate a new bank account. Args: - accountName: Account name (required) - bankAccountTypeId: Bank account type ID (required) - accountNumber: Account number - sortCode: Sort code / routing number - bic: BIC/SWIFT code - iban: IBAN - nominalCode: Nominal code - ledgerAccountId: Ledger account ID - defaultPaymentMethodId: Default payment method ID - currencyId: Currency ID Returns: The created bank account.
sage_update_bank_accountUpdate an existing bank account. Args: - id: Bank account ID to update (required) - accountName: New account name - accountNumber: New account number - sortCode: New sort code - bic: New BIC/SWIFT code - iban: New IBAN Returns: The updated bank account.
sage_delete_bank_accountDelete a bank account. Args: - id: Bank account ID to delete Returns: Confirmation of deletion.
sage_list_bank_depositsList bank deposits with pagination and filtering. Args: - bankAccountId: Filter by bank account ID - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format Returns: Paginated list of bank deposits.
sage_get_bank_depositGet a bank deposit by ID. Args: - id: Bank deposit ID - format: Response format Returns: The bank deposit with all details.
sage_create_bank_depositCreate a new bank deposit. Args: - bankAccountId: Bank account ID (required) - date: Deposit date in YYYY-MM-DD format (required) - reference: Deposit reference - cashAmount: Cash amount - chequeAmount: Cheque amount Returns: The created bank deposit.
sage_delete_bank_depositDelete a bank deposit. Args: - id: Bank deposit ID to delete Returns: Confirmation of deletion.
sage_list_bank_transfersList bank transfers with pagination. Args: - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format Returns: Paginated list of bank transfers.
sage_get_bank_transferGet a bank transfer by ID. Args: - id: Bank transfer ID - format: Response format Returns: The bank transfer with all details.
sage_create_bank_transferCreate a new bank transfer between accounts. Args: - fromBankAccountId: Source bank account ID (required) - toBankAccountId: Destination bank account ID (required) - date: Transfer date in YYYY-MM-DD format (required) - amount: Transfer amount (required) - reference: Transfer reference - description: Transfer description Returns: The created bank transfer.
sage_delete_bank_transferDelete a bank transfer. Args: - id: Bank transfer ID to delete Returns: Confirmation of deletion.
sage_list_contactsList contacts (customers and vendors) from Sage with pagination and search. Returns a paginated list of contacts. Use the page number from the response to fetch the next page. Args: - search: Search query to filter contacts by name - page: Page number (default: 1) - itemsPerPage: Number of items per page (1-100, default: 20) - format: Response format ('json' or 'markdown') Returns: Paginated list of contacts with id, name, email, phone, reference.
sage_get_contactGet a single contact by ID. Args: - id: The contact ID - format: Response format ('json' or 'markdown') Returns: The contact record with all available fields.
sage_create_contactCreate a new contact (customer or vendor) in Sage. Args: - name: Contact name (required) - email: Email address - telephone: Phone number - mobile: Mobile phone number - website: Website URL - reference: Reference code - taxNumber: Tax/VAT number - notes: Additional notes - contactTypeIds: Array of contact type IDs (e.g., ['CUSTOMER', 'VENDOR']) - creditLimit: Credit limit amount - creditDays: Credit days Returns: The created contact record.
sage_update_productUpdate an existing product. Args: - id: Product ID to update (required) - description: New product description - itemCode: New product/SKU code - notes: New notes - purchasePrice: New purchase price - costPrice: New cost price - active: New active status Returns: The updated product.
sage_update_contactUpdate an existing contact. Args: - id: Contact ID to update (required) - name: New contact name - email: New email address - telephone: New phone number - mobile: New mobile phone number - website: New website URL - reference: New reference code - taxNumber: New tax/VAT number - notes: New notes - creditLimit: New credit limit - creditDays: New credit days Returns: The updated contact record.
sage_delete_contactDelete a contact from Sage. Args: - id: Contact ID to delete Returns: Confirmation of deletion.
sage_list_contact_typesList all available contact types (e.g., CUSTOMER, VENDOR). Returns: List of contact types with id and name.
sage_list_contact_paymentsList contact payments (customer receipts and vendor payments) with pagination and filtering. Args: - contactId: Filter by contact ID - bankAccountId: Filter by bank account ID - transactionTypeId: Filter by transaction type (CUSTOMER_RECEIPT, VENDOR_PAYMENT) - search: Search query - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format Returns: Paginated list of contact payments.
sage_get_contact_paymentGet a contact payment by ID. Args: - id: Contact payment ID - format: Response format Returns: The contact payment with all details.
sage_create_contact_paymentCreate a new contact payment (customer receipt or vendor payment). Args: - transactionTypeId: Transaction type ID (CUSTOMER_RECEIPT or VENDOR_PAYMENT) (required) - contactId: Contact ID (required) - bankAccountId: Bank account ID (required) - date: Payment date in YYYY-MM-DD format (required) - totalAmount: Total payment amount (required) - reference: Payment reference - paymentMethodId: Payment method ID - allocatedArtefacts: Array of invoices/credit notes to allocate payment to Returns: The created contact payment.
sage_delete_contact_paymentDelete a contact payment. Args: - id: Contact payment ID to delete Returns: Confirmation of deletion.
sage_list_other_paymentsList other payments (ad-hoc payments and receipts) with pagination and filtering. Args: - bankAccountId: Filter by bank account ID - transactionTypeId: Filter by transaction type (OTHER_PAYMENT, OTHER_RECEIPT) - search: Search query - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format Returns: Paginated list of other payments.
sage_get_other_paymentGet an other payment by ID. Args: - id: Other payment ID - format: Response format Returns: The other payment with all details.
sage_delete_productDelete a product. Args: - id: Product ID to delete Returns: Confirmation of deletion.
sage_create_other_paymentCreate a new other payment (ad-hoc expense or income). Args: - transactionTypeId: Transaction type ID (OTHER_PAYMENT or OTHER_RECEIPT) (required) - bankAccountId: Bank account ID (required) - date: Payment date in YYYY-MM-DD format (required) - paymentLines: Array of payment line items (required) - contactId: Optional contact ID - reference: Payment reference - paymentMethodId: Payment method ID Returns: The created other payment.
sage_delete_other_paymentDelete an other payment. Args: - id: Other payment ID to delete Returns: Confirmation of deletion.
sage_list_contact_allocationsList contact allocations (payment allocations to invoices/credit notes). Args: - contactId: Filter by contact ID - transactionTypeId: Filter by transaction type - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format Returns: Paginated list of contact allocations.
sage_get_contact_allocationGet a contact allocation by ID. Args: - id: Contact allocation ID - format: Response format Returns: The contact allocation with all details.
sage_list_transaction_typesList all available transaction types. Returns: List of transaction types (e.g., CUSTOMER_RECEIPT, VENDOR_PAYMENT, SALES_INVOICE, etc.).
sage_create_contact_allocationCreate a new contact allocation to match payments with invoices/credit notes. Args: - contactId: Contact ID (required) - transactionTypeId: Transaction type ID (required) - date: Allocation date in YYYY-MM-DD format (required) - allocatedArtefacts: Array of items to allocate (required) - reference: Allocation reference Returns: The created contact allocation.
sage_delete_contact_allocationDelete a contact allocation. Args: - id: Contact allocation ID to delete Returns: Confirmation of deletion.
sage_list_productsList products with pagination and search. Args: - search: Search query - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format Returns: Paginated list of products.
sage_get_productGet a product by ID. Args: - id: Product ID - format: Response format Returns: The product with all details.
sage_create_productCreate a new product. Args: - description: Product description (required) - itemCode: Product/SKU code - notes: Additional notes - salesLedgerAccountId: Sales ledger account ID - purchaseLedgerAccountId: Purchase ledger account ID - salesTaxRateId: Sales tax rate ID - purchaseTaxRateId: Purchase tax rate ID - purchasePrice: Purchase/cost price - costPrice: Cost price - active: Whether product is active Returns: The created product.
sage_list_servicesList services with pagination and search. Args: - search: Search query - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format Returns: Paginated list of services.
sage_get_serviceGet a service by ID. Args: - id: Service ID - format: Response format Returns: The service with all details.
sage_create_serviceCreate a new service. Args: - description: Service description (required) - itemCode: Service code - notes: Additional notes - salesLedgerAccountId: Sales ledger account ID - purchaseLedgerAccountId: Purchase ledger account ID - salesTaxRateId: Sales tax rate ID - purchaseTaxRateId: Purchase tax rate ID - purchasePrice: Purchase/cost price - costPrice: Cost price - active: Whether service is active Returns: The created service.
sage_update_serviceUpdate an existing service. Args: - id: Service ID to update (required) - description: New service description - itemCode: New service code - notes: New notes - purchasePrice: New purchase price - costPrice: New cost price - active: New active status Returns: The updated service.
sage_delete_serviceDelete a service. Args: - id: Service ID to delete Returns: Confirmation of deletion.
sage_list_stock_itemsList stock items with pagination and search. Args: - search: Search query - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format Returns: Paginated list of stock items with quantity information.
sage_get_stock_itemGet a stock item by ID. Args: - id: Stock item ID - format: Response format Returns: The stock item with all details including quantity in stock.
sage_create_purchase_invoiceCreate a new purchase invoice (bill from vendor). Args: - contactId: Vendor contact ID (required) - date: Invoice date in YYYY-MM-DD format (required) - dueDate: Due date in YYYY-MM-DD format - reference: Your reference - vendorReference: Vendor's invoice reference - invoiceLines: Array of invoice line items (required) - notes: Invoice notes - currencyId: Currency ID - exchangeRate: Exchange rate Returns: The created purchase invoice.
sage_delete_purchase_invoiceDelete a purchase invoice. Args: - id: Purchase invoice ID to delete Returns: Confirmation of deletion.
sage_create_stock_itemCreate a new stock item. Args: - description: Stock item description (required) - itemCode: Item/SKU code - notes: Additional notes - salesLedgerAccountId: Sales ledger account ID - purchaseLedgerAccountId: Purchase ledger account ID - salesTaxRateId: Sales tax rate ID - purchaseTaxRateId: Purchase tax rate ID - purchasePrice: Purchase price - costPrice: Cost price - reorderLevel: Reorder level - reorderQuantity: Reorder quantity - location: Stock location - barcode: Barcode - weight: Item weight - active: Whether item is active Returns: The created stock item.
sage_update_stock_itemUpdate an existing stock item. Args: - id: Stock item ID to update (required) - description: New description - itemCode: New item code - purchasePrice: New purchase price - costPrice: New cost price - reorderLevel: New reorder level - reorderQuantity: New reorder quantity - location: New location - barcode: New barcode - active: New active status Returns: The updated stock item.
sage_delete_stock_itemDelete a stock item. Args: - id: Stock item ID to delete Returns: Confirmation of deletion.
sage_list_stock_movementsList stock movements with pagination and filtering. Args: - stockItemId: Filter by stock item ID - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format Returns: Paginated list of stock movements.
sage_get_stock_movementGet a stock movement by ID. Args: - id: Stock movement ID - format: Response format Returns: The stock movement with all details.
sage_create_stock_movementCreate a new stock movement (adjustment). Args: - stockItemId: Stock item ID (required) - date: Movement date in YYYY-MM-DD format (required) - quantity: Quantity to adjust (positive for increase, negative for decrease) (required) - movementTypeId: Movement type ID (required) - costPrice: Cost price per unit - reference: Movement reference - details: Additional details Returns: The created stock movement.
sage_list_purchase_invoicesList purchase invoices (bills) with pagination and filtering. Args: - contactId: Filter by vendor contact ID - status: Filter by status (DRAFT, SENT, PAID, PART_PAID, VOID) - search: Search query - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format ('json' or 'markdown') Returns: Paginated list of purchase invoices.
sage_get_purchase_invoiceGet a purchase invoice by ID. Args: - id: Purchase invoice ID - format: Response format Returns: The purchase invoice with all details including line items.
sage_list_purchase_credit_notesList purchase credit notes with pagination and filtering. Args: - contactId: Filter by vendor contact ID - status: Filter by status - search: Search query - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format Returns: Paginated list of purchase credit notes.
sage_get_purchase_credit_noteGet a purchase credit note by ID. Args: - id: Purchase credit note ID - format: Response format Returns: The purchase credit note with all details.
sage_create_purchase_credit_noteCreate a new purchase credit note. Args: - contactId: Vendor contact ID (required) - date: Credit note date in YYYY-MM-DD format (required) - reference: Your reference - vendorReference: Vendor's credit note reference - creditNoteLines: Array of credit note line items (required) - notes: Credit note notes - originalInvoiceId: Original purchase invoice ID if crediting an invoice Returns: The created purchase credit note.
sage_delete_purchase_credit_noteDelete a purchase credit note. Args: - id: Purchase credit note ID to delete Returns: Confirmation of deletion.
sage_list_purchase_quick_entriesList purchase quick entries with pagination and filtering. Args: - contactId: Filter by vendor contact ID - search: Search query - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format Returns: Paginated list of purchase quick entries.
sage_get_purchase_quick_entryGet a purchase quick entry by ID. Args: - id: Purchase quick entry ID - format: Response format Returns: The purchase quick entry with all details.
sage_create_purchase_quick_entryCreate a new purchase quick entry for fast bill/credit note creation. Args: - contactId: Vendor contact ID (required) - date: Entry date in YYYY-MM-DD format (required) - quickEntryTypeId: Quick entry type ID (required) - ledgerAccountId: Ledger account ID (required) - netAmount: Net amount (required) - taxRateId: Tax rate ID - reference: Reference - details: Additional details - dueDate: Due date in YYYY-MM-DD format Returns: The created purchase quick entry.
sage_delete_purchase_quick_entryDelete a purchase quick entry. Args: - id: Purchase quick entry ID to delete Returns: Confirmation of deletion.
sage_list_sales_invoicesList sales invoices with pagination and filtering. Args: - contactId: Filter by contact ID - status: Filter by status (DRAFT, SENT, PAID, PART_PAID, VOID) - search: Search query - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format ('json' or 'markdown') Returns: Paginated list of sales invoices.
sage_get_sales_invoiceGet a sales invoice by ID. Args: - id: Sales invoice ID - format: Response format Returns: The sales invoice with all details including line items.
sage_create_sales_invoiceCreate a new sales invoice. Args: - contactId: Customer contact ID (required) - date: Invoice date in YYYY-MM-DD format (required) - dueDate: Due date in YYYY-MM-DD format - reference: Invoice reference - invoiceLines: Array of invoice line items (required) - notes: Invoice notes - termsAndConditions: Terms and conditions - currencyId: Currency ID - exchangeRate: Exchange rate Returns: The created sales invoice.
sage_delete_sales_invoiceDelete a sales invoice. Args: - id: Sales invoice ID to delete Returns: Confirmation of deletion.
sage_list_sales_quotesList sales quotes with pagination and filtering. Args: - contactId: Filter by contact ID - status: Filter by status (DRAFT, SENT, ACCEPTED, DECLINED, EXPIRED) - search: Search query - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format Returns: Paginated list of sales quotes.
sage_get_sales_quoteGet a sales quote by ID. Args: - id: Sales quote ID - format: Response format Returns: The sales quote with all details.
sage_create_sales_quoteCreate a new sales quote. Args: - contactId: Customer contact ID (required) - date: Quote date in YYYY-MM-DD format (required) - expiryDate: Expiry date in YYYY-MM-DD format - reference: Quote reference - quoteLines: Array of quote line items (required) - notes: Quote notes - termsAndConditions: Terms and conditions Returns: The created sales quote.
sage_delete_sales_quoteDelete a sales quote. Args: - id: Sales quote ID to delete Returns: Confirmation of deletion.
sage_list_sales_estimatesList sales estimates with pagination and filtering. Args: - contactId: Filter by contact ID - status: Filter by status - search: Search query - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format Returns: Paginated list of sales estimates.
sage_get_sales_estimateGet a sales estimate by ID. Args: - id: Sales estimate ID - format: Response format Returns: The sales estimate with all details.
sage_create_sales_estimateCreate a new sales estimate. Args: - contactId: Customer contact ID (required) - date: Estimate date in YYYY-MM-DD format (required) - expiryDate: Expiry date in YYYY-MM-DD format - reference: Estimate reference - estimateLines: Array of estimate line items (required) - notes: Estimate notes - termsAndConditions: Terms and conditions Returns: The created sales estimate.
sage_delete_sales_estimateDelete a sales estimate. Args: - id: Sales estimate ID to delete Returns: Confirmation of deletion.
sage_list_sales_credit_notesList sales credit notes with pagination and filtering. Args: - contactId: Filter by contact ID - status: Filter by status - search: Search query - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format Returns: Paginated list of sales credit notes.
sage_get_sales_credit_noteGet a sales credit note by ID. Args: - id: Sales credit note ID - format: Response format Returns: The sales credit note with all details.
sage_create_sales_credit_noteCreate a new sales credit note. Args: - contactId: Customer contact ID (required) - date: Credit note date in YYYY-MM-DD format (required) - reference: Credit note reference - creditNoteLines: Array of credit note line items (required) - notes: Credit note notes - originalInvoiceId: Original invoice ID if crediting an invoice Returns: The created sales credit note.
sage_delete_sales_credit_noteDelete a sales credit note. Args: - id: Sales credit note ID to delete Returns: Confirmation of deletion.
sage_list_sales_quick_entriesList sales quick entries with pagination and filtering. Args: - contactId: Filter by contact ID - search: Search query - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format Returns: Paginated list of sales quick entries.
sage_get_sales_quick_entryGet a sales quick entry by ID. Args: - id: Sales quick entry ID - format: Response format Returns: The sales quick entry with all details.
sage_create_sales_quick_entryCreate a new sales quick entry for fast invoice/credit note creation. Args: - contactId: Customer contact ID (required) - date: Entry date in YYYY-MM-DD format (required) - quickEntryTypeId: Quick entry type ID (required) - ledgerAccountId: Ledger account ID (required) - netAmount: Net amount (required) - taxRateId: Tax rate ID - reference: Reference - details: Additional details - dueDate: Due date in YYYY-MM-DD format Returns: The created sales quick entry.
sage_list_attachmentsList attachments with filtering. Args: - attachmentContextId: Filter by attachment context ID (e.g., invoice ID) - attachmentContextTypeId: Filter by context type (e.g., SALES_INVOICE, PURCHASE_INVOICE) - page: Page number (default: 1) - itemsPerPage: Items per page (1-100, default: 20) - format: Response format Returns: Paginated list of attachments.
sage_get_attachmentGet an attachment by ID. Args: - id: Attachment ID - format: Response format Returns: The attachment metadata.
sage_create_attachmentCreate a new attachment for a transaction. Args: - attachmentContextId: Context ID (e.g., invoice ID) (required) - attachmentContextTypeId: Context type ID (required) - file: Base64 encoded file content (required) - fileName: File name (required) - mimeType: MIME type (required) - description: File description Returns: The created attachment.
sage_delete_attachmentDelete an attachment. Args: - id: Attachment ID to delete Returns: Confirmation of deletion.
sage_list_attachment_context_typesList all available attachment context types. Returns: List of attachment context types (e.g., SALES_INVOICE, PURCHASE_INVOICE, CONTACT, etc.).
sage_list_ledger_accounts{
"page": true,
"format": "example_format",
"search": "example_search",
"visibleIn": "example_visibleIn",
"itemsPerPage": true
}sage_get_ledger_account{
"id": "example_id",
"format": "example_format"
}sage_create_ledger_account{
"name": "example_name",
"taxRateId": "example_taxRateId",
"nominalCode": true,
"visibleInSales": true,
"visibleInBanking": true,
"visibleInExpenses": true,
"visibleInJournals": true,
"visibleInPurchases": true,
"ledgerAccountTypeId": "example_ledgerAccountTypeId",
"ledgerAccountGroupId": "example_ledgerAccountGroupId"
}