---
title: Read
slug: quickbooks/hXoH-read
description: Learn how to retrieve vendor information from QuickBooks using vendor ID with this document. Get example code in Apex language that creates a request object, passes the vendor ID, and connects to the Breadwinner Global API. Access the response JSON to obt
docTags: 
createdAt: 2021-10-30T07:55:05.000Z
---

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

:::CodeblockTabs
Request

```apex
//  Create a Map to store all the data of a Vendor
Map<String, Object> vendorMap = new Map<String, Object>();
vendorMap.put('Id','67');

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

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

Response

```json
{
    action=readVendor,
    responseJSON={
      "vendors": [
        {
          "SyncToken": "1",
          "sparse": false,
          "PrintOnCheckName": "Lap Care Match",
          "Metadata": {
            "LastUpdatedTime": "2021-11-01T00:36:54-07:00",
            "CreateTime": "2021-11-01T00:31:59-07:00"
          },
          "Id": "67",
          "DisplayName": "Lap Care Match",
          "CurrencyRef": {
            "value": "USD",
            "name": "United States Dollar"
          },
          "Balance": "0",
          "Active": "true"
        }
      ],
      "statusCode": 200,
      "status": "OK"
    },
    timestamp=1635779470801,
    validRequest=true,
    version=1.0
}
```
:::

