---
title: Read
slug: quickbooks/read
docTags: 
createdAt: 2024-03-08T07:17:36.930Z
---

The following is an example of Read Bill. The QuickBooks Bill ID (Id) is required to read the Bill.

:::CodeblockTabs
Request

```apex
//  Create a Map to store all the data of a Bill
            Map<String, Object> billMap = new Map<String, Object>();
            billMap.put('Id','629');
            //Required, if QuickBooks Multi-Org is enabled in Breadwinner. 
		billMap.put('qbOrgId','4620816365285051610');
			
//  Initializing the Request Data to be passed.
            Map<String, Object> reqObj = new Map<String, Object>();
            reqObj.put('version', '1.0');
            reqObj.put('action', 'readBill');
            reqObj.put('options',billMap);
            
//  Placing a request to Breadwinner Global API
            Map<String, Object> respMap = breadwinner_qbo.BreadwinnerQBAPI.call(reqObj);
            System.debug('respMap=>'+respMap);
```

Response

```json
{
   action=readBill,
   timestamp=1713343884606,
   validRequest=true,
   version=1.0,
   responseJSON={
      "statusCode":200,
      "status":"OK",
      "bill":[
         {
            "VendorRef":{
               "value":"296",
               "name":"Account"
            },
            "TxnDate":"2024-04-17",
            "TotalAmt":100000.00,
            "SyncToken":"0",
            "sparse":false,
            "MetaData":{
               "LastUpdatedTime":"2024-04-17T01:50:41-07:00",
               "CreateTime":"2024-04-17T01:50:41-07:00"
            },
            "Line":[
               {
                  "LineNum":1,
                  "ItemBasedExpenseLineDetail":{
                     "UnitPrice":100000,
                     "TaxCodeRef":{
                        "value":"NON"
                     },
                     "Qty":1,
                     "ItemRef":{
                        "value":"70",
                        "name":"GenWatt Diesel 1000kW"
                     },
                     "BillableStatus":"NotBillable"
                  },
                  "Id":"1",
                  "DetailType":"ItemBasedExpenseLineDetail",
                  "Amount":100000.00
               }
            ],
            "Id":"629",
            "DueDate":"2024-04-17",
            "CurrencyRef":{
               "value":"USD",
               "name":"United States Dollar"
            },
            "Balance":100000.00,
            "APAccountRef":{
               "value":"33",
               "name":"Accounts Payable (A/P)"
            }
         }
      ]
   }
}

```
:::

