Sample apps and sample code

Intuit provides several sample apps on IntuitDeveloper that demonstrate how to build an app using the Java SDK, and several code samples that show how to implement specific features.

Sample apps

The following sample apps are available for the Java SDK:

AppDescription
OAuth 2.0 sample implementationProvides a working example of OAuth 2.0 management.
OAuth 1.0 sample implementationProvides a working example of OAuth 1.0 management.
Webhooks sample appDemonstrates how to integrate your app using webhooks.
Spring sample app (third-party contributed)Demonstrates how to use several of the QuickBooks Online entities.

CRUD code samples

The following table lists sample code on IntuitDeveloper that shows how to define basic CRUD operations for entities available in the QuickBooks API:

EntityDescription
AccountSample code for manipulating the Account entity, including AccountCreate.java, AccountDelete.java, AccountQuery.java, AccountRead.java, and AccountUpdate.java.
AttachableSample code for manipulating the Attachable entity, including AttachableCreate.java, AttachableDelete.java, AttachableQuery.java, AttachableRead.java, AttachableUpdate.java, and AttachableUpload.java.
BillSample code for manipulating the Bill entity, including BillCreate.java, BillDelete.java, BillQuery.java, BillRead.java, and BillUpdate.java.
BillPaymentSample code for manipulating the BillPayment entity, including BillPaymentCreate.java, BillPaymentDelete.java, BillPaymentQuery.java, BillPaymentRead.java, BillPaymentUpdate.java, and BillPaymentUpload.java.
classentitySample code for the Class entity, including ClassCreate.java, ClassDelete.java, ClassQuery.java, ClassRead.java, and ClassUpdate.java.
CreditMemoSample code for manipulating the CreditMemo entity, including CreditMemoCreate.java, CreditMemoDelete.java, CreditMemoQuery.java, CreditMemoRead.java, and CreditMemoUpdate.java.
CustomerSample code for manipulating the Customer entity, including CustomerCreate.java, CustomerDelete.java, CustomerQuery.java, CustomerRead.java, and CustomerUpdate.java.
DepartmentSample code for manipulating the Department entity, including DepartmentCreate.java, DepartmentDelete.java, DepartmentQuery.java, DepartmentRead.java, and DepartmentUpdate.java.
DepositSample code for manipulating the Deposit entity, including DepositCreate.java, DepositDelete.java, DepositQuery.java, DepositRead.java, and DepositUpdate.java.
EmployeeSample code for manipulating the Employee entity, including EmployeeCreate.java, EmployeeDelete.java, EmployeeQuery.java, EmployeeRead.java, and EmployeeUpdate.java.
EstimateSample code for manipulating the Estimate entity, including EstimateCreate.java, EstimateDelete.java, EstimateQuery.java, EstimateRead.java, and EstimateUpdate.java.
InvoiceSample code for manipulating the Invoice entity, including InvoiceCreate.java, InvoiceDelete.java, InvoiceQuery.java, InvoiceRead.java, and InvoiceUpdate.java.
ItemSample code for manipulating the Item entity, including ItemCreate.java, ItemDelete.java, ItemQuery.java, ItemRead.java, and ItemUpdate.java.
JournalEntrySample code for manipulating the JournalEntry entity, including JournalEntryCreate.java, JournalEntryDelete.java, JournalEntryQuery.java, JournalEntryRead.java, and JournalEntryUpdate.java.
PaymentSample code for manipulating the Payment entity, including PaymentCreate.java, PaymentDelete.java, PaymentQuery.java, PaymentRead.java, and PaymentUpdate.java.
PaymentMethodSample code for manipulating the PaymentMethod entity, including PaymentMethodCreate.java, PaymentMethodDelete.java, PaymentMethodQuery.java, PaymentMethodRead.java, and PaymentMethodUpdate.java.
PurchaseSample code for manipulating the Purchase entity, including PurchaseCreate.java, PurchaseDelete.java, PurchaseQuery.java, PurchaseRead.java, and PurchaseUpdate.java.
PurchaseOrderSample code for manipulating the PurchaseOrder entity, including PurchaseOrderCreate.java, PurchaseOrderDelete.java, PurchaseOrderQuery.java, PurchaseOrderRead.java, and PurchaseOrderUpdate.java.
RefundReceiptSample code for manipulating the RefundReceipt entity, including RefundReceiptCreate.java, RefundReceiptDelete.java, RefundReceiptQuery.java, RefundReceiptRead.java, and RefundReceiptUpdate.java.
SalesReceiptSample code for manipulating the SalesReceipt entity, including SalesReceiptCreate.java, SalesReceiptDelete.java, SalesReceiptQuery.java, SalesReceiptRead.java, and SalesReceiptUpdate.java.
TaxServiceSample code for creating a TaxService entity, shown in TaxServiceCreate.java.
TermSample code for manipulating the Term entity, including TermCreate.java, TermDelete.java, TermQuery.java, TermRead.java, and TermUpdate.java.
TimeActivitySample code for manipulating the TimeActivity entity, including TimeActivityCreate.java, TimeActivityDelete.java, TimeActivityQuery.java, TimeActivityRead.java, and TimeActivityUpdate.java.
TransferSample code for manipulating the Transfer entity, including TransferCreate.java, TransferDelete.java, TransferQuery.java, TransferRead.java, and TransferUpdate.java.
VendorSample code for manipulating the Vendor entity, including VendorCreate.java, VendorDelete.java, VendorQuery.java, VendorRead.java, and VendorUpdate.java.
VendorCreditSample code for manipulating the VendorCredit entity, including VendorCreditCreate.java, VendorCreditDelete.java, VendorCreditQuery.java, VendorCreditRead.java, and VendorCreditUpdate.java.

 

 

 

 

 Got Questions? Get Answers in our developer forums.