npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

quickbookslib-ts

v0.1.14

Published

nodejs client for Intuit's [QuickBooks API]

Downloads

5

Readme

node-quickbooks

nodejs client for Intuit's [QuickBooks API]

Installation

npm i quickbookslib-ts

Documentation

import Quickbooks from 'quickbookslib-ts';

const ConnetQB = new QuickBooks({
  accessToken,
  realmId,
  refreshToken,
});

async function createAttachable() {
  try {
    const data = await ConnetQB.createAttachable({ Note: 'My File' });
    return console.log(JSON.stringify(data));
  } catch (err: any) {
    console.log(err);
  }
}
createAttachable();

async function getBillPayment() {
  try {
    const data = await ConnetQB.getBillPayment(42);
    return console.log(JSON.stringify(data));
  } catch (err: any) {
    console.log(err);
  }
}
getBillPayment();

async function updateCustomer() {
  try {
    const data = await ConnetQB.updateCustomer({
      Id: '42',
      SyncToken: '1',
      sparse: true,
      PrimaryEmailAddr: { Address: '[email protected]' },
    });

    return console.log(JSON.stringify(data));
  } catch (err: any) {
    console.log(err);
  }
}
updateCustomer();

async function deleteAttachable() {
  try {
    const data = await ConnetQB.deleteAttachable(42);

    return console.log(JSON.stringify(data));
  } catch (err: any) {
    console.log(err);
  }
}
deleteAttachable();

async function findAccounts() {
  try {
    const data = await ConnetQB.findAccounts({
      AccountType: 'Expense',
      desc: 'MetaData.LastUpdatedTime',
      limit: 5,
      offset: 5,
    });

    return console.log(JSON.stringify(data));
  } catch (err: any) {
    console.log(err);
  }
}
findAccounts();

async function reportBalanceSheet() {
  try {
    const data = await ConnetQB.reportBalanceSheet({ department: '1,4,7' });

    return console.log(JSON.stringify(data));
  } catch (err: any) {
    console.log(err);
  }
}
reportBalanceSheet();

Query

Filters

All query functions take an optional first argument object which will be converted to a where clause by means of the keys and values of the object used as column names and parameter values of the where clause. For example, in order to issue a query with a simple where clause such as, select * from attachable where Note = 'My sample note field', the following code would be needed:

const data = await ConnetQB.findAttachables({
  Note: 'My sample note field',
});
console.log(JSON.stringify(data));

Alternatively, the object can be an array of objects, each specifying a field, value and operator (optional) keys. This allows you to build a more complex query using operators such as =, IN, <, >, <=, >=, or LIKE.

const data = await ConnetQB.findTimeActivities([
  { field: 'TxnDate', value: '2014-12-01', operator: '>' },
  { field: 'TxnDate', value: '2014-12-03', operator: '<' },
  { field: 'limit', value: 5 },
]);
console.log(JSON.stringify(data));
Sorting

Basic ordering is achieved via the optional first argument object as well. Include asc or desc keys in the object whose values are the columns you wish to sort on. For example:

const data = await ConnetQB.findAttachables({
  desc: 'MetaData.LastUpdatedTime'
})
const data = await ConnetQB.
Pagination

Pagination is achieved via the optional first argument object as well. Include limit and/or offset keys in the object whose values are the number of rows you wish to limit the result set to or from respectively. For example:

const data = await ConnetQB.findAttachables({
  limit: 10,
  offset: 10,
});
console.log(JSON.stringify(data));

The default (and max) limit is 1000 records returned in a single request. Adding a boolean fetchAll parameter will return all available records, transparently issuing as many requests as necessary to fetch them. So in the first example below, if your Quickbooks business contains 5,000 customers, 5 http requests will be issued behind the scenes and finally your callback will be invoked with an array of those 5,000 customers passed to it.

const test1 = await ConnetQB.findCustomers({
  fetchAll: true,
});
console.log(JSON.stringify(test1));

const test2 = await ConnetQB.findCustomers([
  { field: 'fetchAll', value: true },
  { field: 'FamilyName', value: 'S%', operator: 'LIKE' },
]);
console.log(JSON.stringify(test2));
Counts

Row counts rather than full result sets can be obtained by passing the count key in the optional first argument object with a boolean true value. For example:

const data = await ConnetQB.findAttachables({
  count: true,
});
console.log(JSON.stringify(data));

Public Api

QuickBooks(consumerKey, consumerSecret, oauth_token, oauth_token_secret, realmId, debug, minorVer, oAuthVer, refresh_token)

Arguments

  • consumerKey - The application's consumer key
  • consumerSecret - The application's consumer secret
  • oauth_token - The user's generated token
  • oauth_token_secret - The user's generated secret. Set this to false for oAuth 2.
  • realmId - The company ID
  • useSandbox - boolean flag to indicate whether to use Sandbox (i.e. for testing)
  • debug - boolean flag to log http requests, headers, and response bodies to the console
  • minorVer - Minor version for Intuit's API. Use null if you do not want to specify a version, to use the latest
  • oAuthVer - Use string '2.0' for oAuth 2
  • refresh_token - The user's generated refresh token. This is the code query parameter in the oAuth 2.0 callback

Create

Read

Update

Delete

Query

Reports

SalesReceipt and Invoice PDFs

Purchase Order Email

Miscellaneous

createAccount(object)

Creates the Account in QuickBooks

Arguments

  • object - The unsaved account, to be persisted in QuickBooks

createAttachable(object)

Creates the Attachable in QuickBooks

Arguments

  • object - The unsaved attachable, to be persisted in QuickBooks

createBill(object)

Creates the Bill in QuickBooks

Arguments

  • object - The unsaved bill, to be persisted in QuickBooks

createBillPayment(object)

Creates the BillPayment in QuickBooks

Arguments

  • object - The unsaved billPayment, to be persisted in QuickBooks

createClass(object)

Creates the Class in QuickBooks

Arguments

  • object - The unsaved class, to be persisted in QuickBooks

createCreditMemo(object)

Creates the CreditMemo in QuickBooks

Arguments

  • object - The unsaved creditMemo, to be persisted in QuickBooks

createCustomer(object)

Creates the Customer in QuickBooks

Arguments

  • object - The unsaved customer, to be persisted in QuickBooks

createDepartment(object)

Creates the Department in QuickBooks

Arguments

  • object - The unsaved department, to be persisted in QuickBooks

createDeposit(object)

Creates the Deposit in QuickBooks

Arguments

  • object - The unsaved deposit, to be persisted in QuickBooks

createEmployee(object)

Creates the Employee in QuickBooks

Arguments

  • object - The unsaved employee, to be persisted in QuickBooks

createEstimate(object)

Creates the Estimate in QuickBooks

Arguments

  • object - The unsaved estimate, to be persisted in QuickBooks

createInvoice(object)

Creates the Invoice in QuickBooks

Arguments

  • object - The unsaved invoice, to be persisted in QuickBooks

createItem(object)

Creates the Item in QuickBooks

Arguments

  • object - The unsaved item, to be persisted in QuickBooks

createJournalCode(object)

Creates the JournalCode in QuickBooks

Arguments

  • object - The unsaved journalCode, to be persisted in QuickBooks

createJournalEntry(object)

Creates the JournalEntry in QuickBooks

Arguments

  • object - The unsaved journalEntry, to be persisted in QuickBooks

createPayment(object)

Creates the Payment in QuickBooks

Arguments

  • object - The unsaved payment, to be persisted in QuickBooks

createPaymentMethod(object)

Creates the PaymentMethod in QuickBooks

Arguments

  • object - The unsaved paymentMethod, to be persisted in QuickBooks

createPurchase(object)

Creates the Purchase in QuickBooks

Arguments

  • object - The unsaved purchase, to be persisted in QuickBooks

createPurchaseOrder(object)

Creates the PurchaseOrder in QuickBooks

Arguments

  • object - The unsaved purchaseOrder, to be persisted in QuickBooks

createRefundReceipt(object)

Creates the RefundReceipt in QuickBooks

Arguments

  • object - The unsaved refundReceipt, to be persisted in QuickBooks

createSalesReceipt(object)

Creates the SalesReceipt in QuickBooks

Arguments

  • object - The unsaved salesReceipt, to be persisted in QuickBooks

createTaxAgency(object)

Creates the TaxAgency in QuickBooks

Arguments

  • object - The unsaved taxAgency, to be persisted in QuickBooks

createTaxService(object)

Creates the TaxService in QuickBooks

Arguments

  • object - The unsaved taxService, to be persisted in QuickBooks

createTerm(object)

Creates the Term in QuickBooks

Arguments

  • object - The unsaved term, to be persisted in QuickBooks

createTimeActivity(object)

Creates the TimeActivity in QuickBooks

Arguments

  • object - The unsaved timeActivity, to be persisted in QuickBooks

createTransfer(object)

Creates the Transfer in QuickBooks

Arguments

  • object - The unsaved transfer, to be persisted in QuickBooks

createVendor(object)

Creates the Vendor in QuickBooks

Arguments

  • object - The unsaved vendor, to be persisted in QuickBooks

createVendorCredit(object)

Creates the VendorCredit in QuickBooks

Arguments

  • object - The unsaved vendorCredit, to be persisted in QuickBooks

getAccount(id)

Retrieves the Account from QuickBooks

Arguments

  • id - The Id of persistent Account

getAttachable(id)

Retrieves the Attachable from QuickBooks

Arguments

  • id - The Id of persistent Attachable

getBill(id)

Retrieves the Bill from QuickBooks

Arguments

  • id - The Id of persistent Bill

getBillPayment(id)

Retrieves the BillPayment from QuickBooks

Arguments

  • id - The Id of persistent BillPayment

getClass(id)

Retrieves the Class from QuickBooks

Arguments

  • id - The Id of persistent Class

getCompanyInfo(id)

Retrieves the CompanyInfo from QuickBooks

Arguments

  • id - The Id of persistent CompanyInfo

getCreditMemo(id)

Retrieves the CreditMemo from QuickBooks

Arguments

  • id - The Id of persistent CreditMemo

getCustomer(id)

Retrieves the Customer from QuickBooks

Arguments

  • id - The Id of persistent Customer

getDepartment(id)

Retrieves the Department from QuickBooks

Arguments

  • id - The Id of persistent Department

getDeposit(id)

Retrieves the Deposit from QuickBooks

Arguments

  • id - The Id of persistent Deposit

getEmployee(id)

Retrieves the Employee from QuickBooks

Arguments

  • id - The Id of persistent Employee

getEstimate(id)

Retrieves the Estimate from QuickBooks

Arguments

  • id - The Id of persistent Estimate

getExchangeRate(options)

Retrieves an ExchangeRate from QuickBooks

Arguments

  • options - An object with options including the required sourcecurrencycode parameter and optional asofdate parameter.

getInvoice(id)

Retrieves the Invoice from QuickBooks

Arguments

  • id - The Id of persistent Invoice

getItem(id)

Retrieves the Item from QuickBooks

Arguments

  • id - The Id of persistent Item

getJournalCode(id)

Retrieves the JournalCode from QuickBooks

Arguments

  • id - The Id of persistent JournalCode

getJournalEntry(id)

Retrieves the JournalEntry from QuickBooks

Arguments

  • id - The Id of persistent JournalEntry

getPayment(id)

Retrieves the Payment from QuickBooks

Arguments

  • id - The Id of persistent Payment

getPaymentMethod(id)

Retrieves the PaymentMethod from QuickBooks

Arguments

  • id - The Id of persistent PaymentMethod

getPreference)

Retrieves the Preferences from QuickBooks

Arguments

the authorised realm

getPurchase(id)

Retrieves the Purchase from QuickBooks

Arguments

  • id - The Id of persistent Purchase

getPurchaseOrder(id)

Retrieves the PurchaseOrder from QuickBooks

Arguments

  • id - The Id of persistent PurchaseOrder

getRefundReceipt(id)

Retrieves the RefundReceipt from QuickBooks

Arguments

  • id - The Id of persistent RefundReceipt

getReports(id)

Retrieves the Reports from QuickBooks

Arguments

  • id - The Id of persistent Reports

getSalesReceipt(id)

Retrieves the SalesReceipt from QuickBooks

Arguments

  • id - The Id of persistent SalesReceipt

getTaxAgency(id)

Retrieves the TaxAgency from QuickBooks

Arguments

  • id - The Id of persistent TaxAgency

getTaxCode(id)

Retrieves the TaxCode from QuickBooks

Arguments

  • id - The Id of persistent TaxCode

getTaxRate(id)

Retrieves the TaxRate from QuickBooks

Arguments

  • id - The Id of persistent TaxRate

getTerm(id)

Retrieves the Term from QuickBooks

Arguments

  • id - The Id of persistent Term

getTimeActivity(id)

Retrieves the TimeActivity from QuickBooks

Arguments

  • id - The Id of persistent TimeActivity

getTransfer(id)

Retrieves the Transfer from QuickBooks

Arguments

  • id - The Id of persistent Transfer

getVendor(id)

Retrieves the Vendor from QuickBooks

Arguments

  • id - The Id of persistent Vendor

getVendorCredit(id)

Retrieves the VendorCredit from QuickBooks

Arguments

  • id - The Id of persistent VendorCredit

updateAccount(object)

Updates QuickBooks version of Account

Arguments

  • object - The persistent Account, including Id and SyncToken fields

updateAttachable(object)

Updates QuickBooks version of Attachable

Arguments

  • object - The persistent Attachable, including Id and SyncToken fields

updateBill(object)

Updates QuickBooks version of Bill

Arguments

  • object - The persistent Bill, including Id and SyncToken fields

updateBillPayment(object)

Updates QuickBooks version of BillPayment

Arguments

  • object - The persistent BillPayment, including Id and SyncToken fields

updateClass(object)

Updates QuickBooks version of Class

Arguments

  • object - The persistent Class, including Id and SyncToken fields

updateCompanyInfo(object)

Updates QuickBooks version of CompanyInfo

Arguments

  • object - The persistent CompanyInfo, including Id and SyncToken fields

updateCreditMemo(object)

Updates QuickBooks version of CreditMemo

Arguments

  • object - The persistent CreditMemo, including Id and SyncToken fields

updateCustomer(object)

Updates QuickBooks version of Customer

Arguments

  • object - The persistent Customer, including Id and SyncToken fields

updateDepartment(object)

Updates QuickBooks version of Department

Arguments

  • object - The persistent Department, including Id and SyncToken fields

updateDeposit(object)

Updates QuickBooks version of Deposit

Arguments

  • object - The persistent Deposit, including Id and SyncToken fields

updateEmployee(object)

Updates QuickBooks version of Employee

Arguments

  • object - The persistent Employee, including Id and SyncToken fields

updateEstimate(object)

Updates QuickBooks version of Estimate

Arguments

  • object - The persistent Estimate, including Id and SyncToken fields

updateInvoice(object)

Updates QuickBooks version of Invoice

Arguments

  • object - The persistent Invoice, including Id and SyncToken fields. To void invoice set void:true in the object.

updateItem(object)

Updates QuickBooks version of Item

Arguments

  • object - The persistent Item, including Id and SyncToken fields

updateJournalCode(object)

Updates QuickBooks version of JournalCode

Arguments

  • object - The persistent JournalCode, including Id and SyncToken fields

updateJournalEntry(object)

Updates QuickBooks version of JournalEntry

Arguments

  • object - The persistent JournalEntry, including Id and SyncToken fields

updatePayment(object)

Updates QuickBooks version of Payment

Arguments

  • object - The persistent Payment, including Id and SyncToken fields. To void payment set void:true in the object.

updatePaymentMethod(object)

Updates QuickBooks version of PaymentMethod

Arguments

  • object - The persistent PaymentMethod, including Id and SyncToken fields

updatePreferences(object)

Updates QuickBooks version of Preferences

Arguments

  • object - The persistent Preferences, including Id and SyncToken fields

updatePurchase(object)

Updates QuickBooks version of Purchase

Arguments

  • object - The persistent Purchase, including Id and SyncToken fields

updatePurchaseOrder(object)

Updates QuickBooks version of PurchaseOrder

Arguments

  • object - The persistent PurchaseOrder, including Id and SyncToken fields

updateRefundReceipt(object)

Updates QuickBooks version of RefundReceipt

Arguments

  • object - The persistent RefundReceipt, including Id and SyncToken fields

updateSalesReceipt(object)

Updates QuickBooks version of SalesReceipt

Arguments

  • object - The persistent SalesReceipt, including Id and SyncToken fields. To void sales receipt set void:true in the object.

updateTaxAgency(object)

Updates QuickBooks version of TaxAgency

Arguments

  • object - The persistent TaxAgency, including Id and SyncToken fields

updateTaxCode(object)

Updates QuickBooks version of TaxCode

Arguments

  • object - The persistent TaxCode, including Id and SyncToken fields

updateTaxRate(object)

Updates QuickBooks version of TaxRate

Arguments

  • object - The persistent TaxRate, including Id and SyncToken fields

updateTerm(object)

Updates QuickBooks version of Term

Arguments

  • object - The persistent Term, including Id and SyncToken fields

updateTimeActivity(object)

Updates QuickBooks version of TimeActivity

Arguments

  • object - The persistent TimeActivity, including Id and SyncToken fields

updateTransfer(object)

Updates QuickBooks version of Transfer

Arguments

  • object - The persistent Transfer, including Id and SyncToken fields

updateVendor(object)

Updates QuickBooks version of Vendor

Arguments

  • object - The persistent Vendor, including Id and SyncToken fields

updateVendorCredit(object)

Updates QuickBooks version of VendorCredit

Arguments

  • object - The persistent VendorCredit, including Id and SyncToken fields

updateExchangeRate(object)

Updates QuickBooks version of ExchangeRate

Arguments

  • object - The persistent ExchangeRate

deleteAttachable(idOrEntity)

Deletes the Attachable from QuickBooks

Arguments

  • idOrEntity - The persistent Attachable to be deleted, or the Id of the Attachable, in which case an extra GET request will be issued to first retrieve the Attachable

deleteBill(idOrEntity)

Deletes the Bill from QuickBooks

Arguments

  • idOrEntity - The persistent Bill to be deleted, or the Id of the Bill, in which case an extra GET request will be issued to first retrieve the Bill

deleteBillPayment(idOrEntity)

Deletes the BillPayment from QuickBooks

Arguments

  • idOrEntity - The persistent BillPayment to be deleted, or the Id of the BillPayment, in which case an extra GET request will be issued to first retrieve the BillPayment

deleteCreditMemo(idOrEntity)

Deletes the CreditMemo from QuickBooks

Arguments

  • idOrEntity - The persistent CreditMemo to be deleted, or the Id of the CreditMemo, in which case an extra GET request will be issued to first retrieve the CreditMemo

deleteDeposit(idOrEntity)

Deletes the Deposit from QuickBooks

Arguments

  • idOrEntity - The persistent Deposit to be deleted, or the Id of the Deposit, in which case an extra GET request will be issued to first retrieve the Deposit

deleteEstimate(idOrEntity)

Deletes the Estimate from QuickBooks

Arguments

  • idOrEntity - The persistent Estimate to be deleted, or the Id of the Estimate, in which case an extra GET request will be issued to first retrieve the Estimate

deleteInvoice(idOrEntity)

Deletes the Invoice from QuickBooks

Arguments

  • idOrEntity - The persistent Invoice to be deleted, or the Id of the Invoice, in which case an extra GET request will be issued to first retrieve the Invoice

deleteJournalCode(idOrEntity)

Deletes the JournalCode from QuickBooks

Arguments

  • idOrEntity - The persistent JournalCode to be deleted, or the Id of the JournalCode, in which case an extra GET request will be issued to first retrieve the JournalCode

deleteJournalEntry(idOrEntity)

Deletes the JournalEntry from QuickBooks

Arguments

  • idOrEntity - The persistent JournalEntry to be deleted, or the Id of the JournalEntry, in which case an extra GET request will be issued to first retrieve the JournalEntry

deletePayment(idOrEntity)

Deletes the Payment from QuickBooks

Arguments

  • idOrEntity - The persistent Payment to be deleted, or the Id of the Payment, in which case an extra GET request will be issued to first retrieve the Payment

deletePurchase(idOrEntity)

Deletes the Purchase from QuickBooks

Arguments

  • idOrEntity - The persistent Purchase to be deleted, or the Id of the Purchase, in which case an extra GET request will be issued to first retrieve the Purchase

deletePurchaseOrder(idOrEntity)

Deletes the PurchaseOrder from QuickBooks

Arguments

  • idOrEntity - The persistent PurchaseOrder to be deleted, or the Id of the PurchaseOrder, in which case an extra GET request will be issued to first retrieve the PurchaseOrder

deleteRefundReceipt(idOrEntity)

Deletes the RefundReceipt from QuickBooks

Arguments

  • idOrEntity - The persistent RefundReceipt to be deleted, or the Id of the RefundReceipt, in which case an extra GET request will be issued to first retrieve the RefundReceipt

deleteSalesReceipt(idOrEntity)

Deletes the SalesReceipt from QuickBooks

Arguments

  • idOrEntity - The persistent SalesReceipt to be deleted, or the Id of the SalesReceipt, in which case an extra GET request will be issued to first retrieve the SalesReceipt

deleteTimeActivity(idOrEntity)

Deletes the TimeActivity from QuickBooks

Arguments

  • idOrEntity - The persistent TimeActivity to be deleted, or the Id of the TimeActivity, in which case an extra GET request will be issued to first retrieve the TimeActivity

deleteTransfer(idOrEntity)

Deletes the Transfer from QuickBooks

Arguments

  • idOrEntity - The persistent Transfer to be deleted, or the Id of the Transfer, in which case an extra GET request will be issued to first retrieve the Transfer

deleteVendorCredit(idOrEntity)

Deletes the VendorCredit from QuickBooks

Arguments

  • idOrEntity - The persistent VendorCredit to be deleted, or the Id of the VendorCredit, in which case an extra GET request will be issued to first retrieve the VendorCredit

findAccounts(criteria)

Finds all Accounts in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findAttachables(criteria)

Finds all Attachables in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findBills(criteria)

Finds all Bills in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findBillPayments(criteria)

Finds all BillPayments in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findBudgets(criteria)

Finds all Budgets in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findClasses(criteria)

Finds all Classs in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findCompanyInfos(criteria)

Finds all CompanyInfos in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findCreditMemos(criteria)

Finds all CreditMemos in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findCustomers(criteria)

Finds all Customers in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findDepartments(criteria)

Finds all Departments in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findDeposits(criteria)

Finds all Deposits in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findEmployees(criteria)

Finds all Employees in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findEstimates(criteria)

Finds all Estimates in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findInvoices(criteria)

Finds all Invoices in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findItems(criteria)

Finds all Items in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findJournalCodes(criteria)

Finds all JournalCodes in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findJournalEntries(criteria)

Finds all JournalEntrys in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findPayments(criteria)

Finds all Payments in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findPaymentMethods(criteria)

Finds all PaymentMethods in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findPreferenceses(criteria)

Finds all Preferencess in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findPurchases(criteria)

Finds all Purchases in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findPurchaseOrders(criteria)

Finds all PurchaseOrders in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findRefundReceipts(criteria)

Finds all RefundReceipts in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findSalesReceipts(criteria)

Finds all SalesReceipts in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findTaxAgencies(criteria)

Finds all TaxAgencys in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findTaxCodes(criteria)

Finds all TaxCodes in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findTaxRates(criteria)

Finds all TaxRates in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findTerms(criteria)

Finds all Terms in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findTimeActivities(criteria)

Finds all TimeActivitys in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findVendors(criteria)

Finds all Vendors in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findVendorCredits(criteria)

Finds all VendorCredits in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

findExchangeRates(criteria)

Finds all ExchangeRates in QuickBooks, optionally matching the specified criteria

Arguments

  • criteria - (Optional) String or single-valued map converted to a where clause of the form "where key = 'value'"

reportBalanceSheet(options)

Retrieves the BalanceSheet Report from QuickBooks

Arguments

  • options - (Optional) Map of key-value pairs passed as options to the Report

reportProfitAndLoss(options)

Retrieves the ProfitAndLoss Report from QuickBooks

Arguments

  • options - (Optional) Map of key-value pairs passed as options to the Report

reportProfitAndLossDetail(options)

Retrieves the ProfitAndLossDetail Report from QuickBooks

Arguments

  • options - (Optional) Map of key-value pairs passed as options to the Report

reportTrialBalance(options)

Retrieves the TrialBalance Report from QuickBooks

Arguments

  • options - (Optional) Map of key-value pairs passed as options to the Report

reportCashFlow(options)

Retrieves the CashFlow Report from QuickBooks

Arguments

  • options - (Optional) Map of key-value pairs passed as options to the Report

reportInventoryValuationSummary(options)

Retrieves the InventoryValuationSummary Report from QuickBooks

Arguments

  • options - (Optional) Map of key-value pairs passed as options to the Report

reportCustomerSales(options)

Retrieves the CustomerSales Report from QuickBooks

Arguments

  • options - (Optional) Map of key-value pairs passed as options to the Report

reportItemSales(options)

Retrieves the ItemSales Report from QuickBooks

Arguments

  • options - (Optional) Map of key-value pairs passed as options to the Report

reportCustomerIncome(options)

Retrieves the CustomerIncome Report from QuickBooks

Arguments

  • options - (Optional) Map of key-value pairs passed as options to the Report

reportCustomerBalance(options)

Retrieves the CustomerBalance Report from QuickBooks

Arguments

  • options - (Optional) Map of key-value pairs passed as options to the Report

reportCustomerBalanceDetail(options)

Retrieves the CustomerBalanceDetail Report from QuickBooks

Arguments

  • options - (Optional) Map of key-value pairs passed as options to the Report

reportAgedReceivables(options)

Retrieves the AgedReceivables Report from QuickBooks

Arguments

  • options - (Optional) Map of key-value pairs passed as options to the Report

reportAgedReceivableDetail(options)

Retrieves the AgedReceivableDetail Report from QuickBooks

Arguments

  • options - (Optional) Map of key-value pairs passed as options to the Report

reportVendorBalance(options)

Retrieves the VendorBalance Report from QuickBooks

Arguments

  • options - (Optional) Map of key-value pairs passed as options to the Report

reportVendorBalanceDetail(options)

Retrieves the VendorBalanceDetail Report from QuickBooks

Arguments

  • options - (Optional) Map of key-value pairs passed as options to the Report

reportAgedPayables(options)

Retrieves the AgedPayables Report from QuickBooks

Arguments

  • options - (Optional) Map of key-value pairs passed as options to the Report

reportAgedPayableDetail(options)

Retrieves the AgedPayableDetail Report from QuickBooks

Arguments

  • options - (Optional) Map of key-value pairs passed as options to the Report

reportVendorExpenses(options)

Retrieves the VendorExpenses Report from QuickBooks

Arguments

  • options - (Optional) Map of key-value pairs passed as options to the Report

reportTransactionList(options)

Retrieves the TransactionList Report from QuickBooks

Arguments

  • options - (Optional) Map of key-value pairs passed as options to the Report

reportGeneralLedgerDetail(options)

Retrieves the GeneralLedgerDetail Report from QuickBooks

Arguments

  • options - (Optional) Map of key-value pairs passed as options to the Report

reportDepartmentSales(options)

Retrieves the DepartmentSales Report from QuickBooks

Arguments

  • options - (Optional) Map of key-value pairs passed as options to the Report

reportClassSales(options)

Retrieves the ClassSales Report from QuickBooks

Arguments

  • options - (Optional) Map of key-value pairs passed as options to the Report

getInvoicePdf(id)

Retrieves the Invoice PDF from QuickBooks

Arguments

  • id - The Id of persistent Invoice

getCreditMemoPdf(id)

Retrieves the Credit Memo PDF from QuickBooks

Arguments

  • id - The Id of persistent Credit Memo PDF

getSalesReceiptPdf(id)

Retrieves the SalesReceipt PDF from QuickBooks

Arguments

  • id - The Id of persistent SalesReceipt PDF

sendInvoicePdf(id, sendTo)

Emails the Invoice PDF from QuickBooks to the address supplied in Invoice.BillEmail.EmailAddress or the specified 'sendTo' address

Arguments

  • Id - The Id of persistent Invoice
  • sendTo - (Optional) optional email address to send the PDF to. If not provided, address supplied in Invoice.BillEmail.EmailAddress will be used

sendCreditMemoPdf(id, sendTo)

Emails the Credit Memo PDF from QuickBooks to the address supplied in CreditMemo.BillEmail.EmailAddress or the specified 'sendTo' address

Arguments

  • Id - The Id of persistent Credit Memo
  • sendTo - (Optional) optional email address to send the PDF to. If not provided, address supplied in Credit Memo.BillEmail.EmailAddress will be used PDF

sendEstimatePdf(id, sendTo)

Emails the Estimate PDF from QuickBooks to the address supplied in Estimate.BillEmail.EmailAddress or the specified 'sendTo' address

Arguments

  • Id - The Id of persistent Estimate
  • sendTo - (Optional) optional email address to send the PDF to. If not provided, address supplied in Estimate.BillEmail.EmailAddress will be used

sendSalesReceiptPdf(id, sendTo)

Emails the SalesReceipt PDF from QuickBooks to the address supplied in SalesReceipt.BillEmail.EmailAddress or the specified 'sendTo' address

Arguments

  • Id - The Id of persistent SalesReceipt
  • sendTo - (Optional) optional email address to send the PDF to. If not provided, address supplied in SalesReceipt.BillEmail.EmailAddress will be used

sendPurchaseOrder(id, sendTo)

Emails the Purchase Order from QuickBooks to the address supplied in PurchaseOrder.POEmail.Address or the specified 'sendTo' address

Arguments

  • Id - The Id of persistent Purchase Order
  • sendTo - (Optional) optional email address to send the email to. If not provided, address supplied in PurchaseOrder.POEmail.Address will be used

batch(items)

Batch operation to enable an application to perform multiple operations in a single request. The following batch items are supported:

  • create

  • update

  • delete

  • query

  • The maximum number of batch items in a single request is 30.

Arguments

  • items - JavaScript array of batch items

changeDataCapture(entities, since)

The change data capture (CDC) operation returns a list of entities that have changed since a specified time.

Arguments

  • entities - Comma separated list or JavaScript array of entities to search for changes
  • since - JavaScript Date or string representation of the form '2012-07-20T22:25:51-07:00' to look back for changes until
  • callback - Callback function which is called with any error and list of changes