Global API

API Overview

3min

Global Class

BreadwinnerQBAPI is a global class that can be used to make requests to QuickBooks via Breadwinner. As it is a part of the managed package, you must prepend the namespace "breadwinner_qbo".

Methods

The method call (Map<String, Object> request) is a static global method within the BreadwinnerQBAPI class, which can be used to make an API request.

Format


Breadwinner accepts the request data in the form of Map<String, Object>, and even returns the response data as a Map<String, Object>, thus making the requests and responses dynamic.

For more information, please refer to the Example Requests and Responses section.

Note: This is a synchronous method, it will make HTTP callouts. So, to access BreadwinnerQBAPI.Call() method asynchronously, please annotate the method you are calling from with the Future(callout=true), or use Queueable Apex.

Example


Data in List Format

All data is sent and received via a list format, including single record responses. This applies to both the request and the response.

Updated 14 Mar 2023
Doc contributor
Doc contributor
Did this page help you?