Website logo
Product Overview
NetSuite
Payments
QuickBooks
Xero
Navigate through spaces
⌘K
Guided Wizard
Guided Wizard Settings
Bill Configuration
Custom Guided Wizard
Button URL Structure
Button URL Generator
Support
Global API
API Overview
Request
Response
Code Examples
Technical Resources
Breadwinner Setup
Requirements
ERD / Object Structure
Getting Help
Version History
Docs powered by Archbee
Global API
...
Request
Invoice

Read

1min

The following is an example of read Invoice. The QuickBooks Invoice Id (Id) is required to read the Invoice.

Request
Response
//  Create a Map to store all the data of a Invoice
Map<String, Object> invoiceMap = new Map<String, Object>();
invoiceMap.put('Id','13');

//  Initializing the Request Data to be passed.
    Map<String, Object> reqObj = new Map<String, Object>();
    reqObj.put('version', '1.0');
    reqObj.put('action', 'readInvoice');
    reqObj.put('options',invoiceMap);
    //Required, if QuickBooks Multi-Org is enabled in Breadwinner. 
    reqObj.put('qbOrgId', '!aa00TM');

//  Placing a request to Breadwinner Global API
Map<String, Object> respMap = breadwinner_qbo.BreadwinnerQBAPI.call(reqObj);
System.debug(respMap);





Updated 02 Jun 2023
Did this page help you?
PREVIOUS
Invoice
NEXT
Create
Docs powered by Archbee
Docs powered by Archbee