---
title: Read
slug: netsuite/ksKf-read
description: Learn about the various parameters and filters available for reading estimates in this document. Discover how to effectively utilize filters like dateCreated, internalId, lastModifiedDate, subsidiary, tranDate, and customer to refine your searches. Find e
docTags: 
createdAt: 2023-04-13T13:05:05.000Z
---

To read Estimates, please use the below parameters.

### Supported “where” Filters

| **Field Name**   | **Data Type** | **Description**                                                                                                                                                                                |
| ---------------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| dateCreated      | Long          | This will filter on an exact match (equal). Use the “additionalFilter” option for a range of dates.                                                                                            |
| internalId       | String        | Internal ID of the Estimate. Multiple values can be passed in a comma-separated string.                                                                                                        |
| lastModifiedDate | Long          | This will filter on an exact match (equal). Use the “additionalFilter” option for a range of dates.                                                                                            |
| subsidiary       | String        | Internal ID of Subsidiary (Primary). Do Not Use this in additonalFilter. Multiple IDs can be passed in a comma-separated string Ex: 1,2                                                        |
| additonalFilter  | String        | construct the additional filter with a combination of the above fields using ‘+and+’ separator and pass it as a single string. Make sure to wrap the whole string using EncodingUtil.urlEncode |
| tranDate         | Long          | Transaction date of the record. Use the “additionalFilter” option for a range of dates.                                                                                                        |
| customer         | String        | To filter the records based on the Customer. Multiple IDs can be passed in a comma-separated string Ex: 6,7                                                                                    |

### Example

:::CodeblockTabs
Request

```apex
Map<String, Object> filters = new Map<String, Object>();
filters.put('subsidiary', '1,2');
filters.put('additionalFilter', EncodingUtil.urlEncode('lastModifiedDate>1628091060+and+lastModifiedDate<1629127860', 'UTF-8')); 
// Encode additionalFilter after constructing it with +and+ for multi-filters

// field filters and additionalFilter for where param
Map<String, Object> filterMap = new Map<String, Object>();
filterMap.put('where', new Map<String, Object>{'keyValueMap'=>filters}); 

Map<String, Object> requestJSONMap = new Map<String, Object>();
requestJSONMap.put('customParameters', filterMap);

String reqJSON = JSON.serialize(requestJSONMap);

Map<String, Object> reqObj = new Map<String, Object>();
reqObj.put('version', '1.0');
reqObj.put('action', 'readEstimate');
reqObj.put('requestJSON', reqJSON);

//  Place a request to Breadwinner Global API
Map<String, Object> resp = breadwinner_ns.BreadwinnerNetSuiteAPI.call(reqObj);
System.debug(resp);
```

Response

```json
{
  action=readEstimate,
  timestamp=1657005088522,
  validRequest=true,
  version=1.0,
  responseJSON={
    "currentPageRecords": null,
    "totalRecords": 2,
    "totalPages": 1,
    "searchId": "WEBSERVICES_5333445_SB1_070520228522928141909953262_2b36551b",
    "pageIndex": 1,
    "errors": [
      
    ],
    "customParamters": {
      "where": {
        "value": null,
        "keyValueMap": {
          "internalId": "38409,18948"
        }
      }
    },
    "status": "200""estimates": [
      {
        "tranId": "10",
        "tranDate": 1577779200,
        "total": 325.17,
        "title": "Parent Company Techinacal Lead",
        "terms": null,
        "taxTotal": 49.6,
        "subTotal": 275.57,
        "subsidiary": {
          "type": null,
          "name": "Parent Company",
          "internalId": "1",
          "externalId": null
        },
        "status": "Processed",
        "shippingCost": null,
        "salesRep": null,
        "salesforceID": null,
        "probability": 100.0,
        "otherRefNum": null,
        "nullFieldList": null,
        "memo": "Test",
        "location": null,
        "lastModifiedDate": 1638271541,
        "itemList": {
          "replaceAll": null,
          "item": [
            {
              "unitsDisplay": null,
              "taxRate1": "18.0",
              "taxCode": {
                "type": null,
                "name": "VAT_IN:GST 18",
                "internalId": "36",
                "externalId": null
              },
              "tax1Amt": 7.2,
              "shipMethod": null,
              "shipGroup": null,
              "serialNumbers": null,
              "revRecStartDate": null,
              "revRecSchedule": null,
              "revRecEndDate": null,
              "rate": "40.00",
              "quantityRemaining": null,
              "quantityReceived": null,
              "quantityBilled": null,
              "quantity": 1.0,
              "price": {
                "type": null,
                "name": "Base Price",
                "internalId": "1",
                "externalId": null
              },
              "poNum": null,
              "orderLine": null,
              "onHand": null,
              "location": null,
              "line": 1,
              "jobName": null,
              "itemReceive": null,
              "itemName": null,
              "itemIsFulfilled": null,
              "item": {
                "type": null,
                "name": "Apple",
                "internalId": "444",
                "externalId": null
              },
              "grossAmt": 47.2,
              "expectedReceiptDate": null,
              "description": "Apple",
              "department": null,
              "customFieldList": {
                "customField": [
                  {
                    "valueLookup": null,
                    "value": "01t0l000004CX8iAAG",
                    "scriptId": "custcol_bwcl_opportunityproduct",
                    "internalId": "554",
                    "fieldType": null
                  },
                  {
                    "valueLookup": null,
                    "value": "false",
                    "scriptId": "custcol_checkbox",
                    "internalId": "443",
                    "fieldType": null
                  }
                ]
              },
              "createPo": null,
              "costEstimateType": null,
              "costEstimate": null,
              "classification": null,
              "amount": 40.0
            }
          ]
        },
        "internalId": "18948",
        "handlingCost": null,
        "externalId": null,
        "expectedCloseDate": 1578038400,
        "exchangeRate": 1.0,
        "entityStatus": {
          "type": null,
          "name": "Closed Won",
          "internalId": "13",
          "externalId": null
        },
        "entity": {
          "type": null,
          "name": "101 ABC Private Corporation : West ABC",
          "internalId": "2732",
          "externalId": null
        },
        "dueDate": 1580371200,
        "discountTotal": null,
        "discountRate": null,
        "discountItem": null,
        "department": null,
        "customForm": null,
        "customFieldList": {
          "customField": [
            {
              "valueLookup": null,
              "value": " - ",
              "scriptId": "custbody_breadwinner_pc_internal_id",
              "internalId": "588",
              "fieldType": null
            },
            {
              "valueLookup": null,
              "value": "false",
              "scriptId": "custbody_checkbox",
              "internalId": "272",
              "fieldType": null
            }
          ]
        },
        "currencyValue": null,
        "currencyRecord": {
          "type": null,
          "name": "INR",
          "internalId": "1",
          "externalId": null
        },
        "currencyName": "INR",
        "createdDate": 1577791628,
        "classification": null
      }
    ]   
  }, 
}
```
:::

