Sample apps and sample code

Intuit provides several sample apps on IntuitDeveloper that demonstrate how to build an app using the PHP SDK.

Sample apps

The following sample apps are available on IntuitDeveloper for the PHP SDK:

AppDescription
PHP OAuth 2.0 sample implementationProvides a working example of OAuth 2.0 management.
PHP OAuth 1.0 sample implementationProvides a working example of OAuth 1.0 management.
PHP sample app (third-party contributed) Demonstrates OpenId, OAuth Management, and Data Exchange calls.

Facade code samples

For examples of how to use the facade classes to create and update entities, see the _Samples directory in the PHP SDK repository. For detailed information on these resources, see the QuickBooks Accounting API Reference.

CRUD code samples

The following table lists sample code available in the CRUD PHP sample app 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.php, AccountDelete.php, AccountFindAll.php, AccountFindById.php, AccountQuery.php, and AccountUpdate.php.
AttachableSample code for manipulating the Attachable entity, including AttachableCreate.php, AttachableDelete.php, AttachableFindAll.php, AttachableFindById.php, AttachableQuery.php, AttachableUpdate.php, and AttachableUpload.php.
BillSample code for manipulating the Bill entity, including BillCreate.php, BillDelete.php, BillFindAll.php, BillFindById.php, BillQuery.php, and BillUpdate.php.
BillPaymentSample code for manipulating the BillPayment entity, including BillPaymentCreate.php, BillPaymentDelete.php, BillPaymentFindAll.php, BillPaymentFindById.php, BillPaymentQuery.php, and BillPaymentUpdate.php.
ClassSample code for the Class entity, including ClassCreate.php, ClassDelete.php, ClassFindAll.php, ClassFindById.php, ClassQuery.php, and ClassUpdate.php.
CreditMemoSample code for manipulating the CreditMemo entity, including CreditMemoCreate.php, CreditMemoDelete.php, CreditFindAll.php, CreditFindById.php, CreditMemoQuery.php, and CreditMemoUpdate.php.
CustomerSample code for manipulating the Customer entity, including CustomerCreate.php, CustomerDelete.php, CustomerFindAll.php, CustomerFindById.php, CustomerQuery.php, and CustomerUpdate.php.
DepartmentSample code for manipulating the Department entity, including DepartmentCreate.php, DepartmentDelete.php, DepartmentFindAll.php, DepartmentFindById.php, DepartmentQuery.php, and DepartmentUpdate.php.
DepositSample code for manipulating the Deposit entity, including DepositCreate.php, DepositDelete.php, DepositFindAll.php, DepositFindById.php, DepositQuery.php, and DepositUpdate.php.
EmployeeSample code for manipulating the Employee entity, including EmployeeCreate.php, EmployeeDelete.php, EmployeeFindAll.php, EmployeeFindById.php, EmployeeQuery.php, and EmployeeUpdate.php.
EstimateSample code for manipulating the Estimate entity, including EstimateCreate.php, EstimateDelete.php, EstimateFindAll.php, EstimateFindById.php, EstimateQuery.php, and EstimateUpdate.php.
InvoiceSample code for manipulating the Invoice entity, including InvoiceCreate.php, InvoiceDelete.php, InvoiceFindAll.php, InvoiceFindById.php, InvoiceQuery.php, InvoiceUpdate.php, and InvoiceVoid.php.
ItemSample code for manipulating the Item entity, including ItemCreate.php, ItemDelete.php, ItemFindAll.php, ItemFindById.php, ItemQuery.php, and ItemUpdate.php.
JournalEntrySample code for manipulating the JournalEntry entity, including JournalEntryCreate.php, JournalEntryDelete.php, JournalEntryFindAll.php, JournalEntryFindById.php, JournalEntryQuery.php, and JournalEntryUpdate.php.
PaymentSample code for manipulating the Payment entity, including PaymentCreate.php, PaymentDelete.php, PaymentQuery.php, PaymentRead.php, and PaymentUpdate.php.
PaymentMethodSample code for manipulating the PaymentMethod entity, including PaymentMethodCreate.php, PaymentMethodDelete.php, PaymentMethodFindAll.php, PaymentMethodFindById.php, PaymentMethodQuery.php, and PaymentMethodUpdate.php.
PurchaseSample code for manipulating the Purchase entity, including PurchaseCreate.php, PurchaseDelete.php, PurchaseQuery.php, PurchaseRead.php, and PurchaseUpdate.php.
PurchaseOrderSample code for manipulating the PurchaseOrder entity, including PurchaseOrderCreate.php, PurchaseOrderDelete.php, PurchaseOrderFindAll.php, PurchaseOrderFindById.php, PurchaseOrderQuery.php, and PurchaseOrderUpdate.php.
RefundReceiptSample code for manipulating the RefundReceipt entity, including RefundReceiptCreate.php, RefundReceiptDelete.php, RefundReceiptFindAll.php, RefundReceiptFindById.php, RefundReceiptQuery.php, and RefundReceiptUpdate.php.
SalesReceiptSample code for manipulating the SalesReceipt entity, including SalesReceiptCreate.php, SalesReceiptDelete.php, SalesReceiptFindAll.php, SalesReceiptFindById.php, SalesReceiptQuery.php, and SalesReceiptUpdate.php.
TaxServiceSample code for creating a TaxService entity, shown in TaxServiceCreate.php.
TermSample code for manipulating the Term entity, including TermCreate.php, TermDelete.php, TermFindAll.php, TermFindById.php, TermQuery.php, and TermUpdate.php.
TimeActivitySample code for manipulating the TimeActivity entity, including TimeActivityCreate.php, TimeActivityDelete.php, TimeActivityFindAll.php, TimeActivityFindById.php, TimeActivityQuery.php, and TimeActivityUpdate.php.
TransferSample code for manipulating the Transfer entity, including TransferCreate.php, TransferDelete.php, TransferFindAll.php, TransferFindById.php, TransferQuery.php, and TransferUpdate.php.
VendorSample code for manipulating the Vendor entity, including VendorCreate.php, VendorDelete.php, VendorFindAll.php, VendorFindById.php, VendorQuery.php, and VendorUpdate.php.
VendorCreditSample code for manipulating the VendorCredit entity, including VendorCreditCreate.php, VendorCreditDelete.php, VendorCreditFindAll.php, VendorCreditFindById.php, VendorCreditQuery.php, and VendorCreditUpdate.php.

 

 

 Got Questions? Get Answers in our developer forums.