> For the complete documentation index, see [llms.txt](https://apps.docs.rootflo.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apps.docs.rootflo.ai/ai-gold-auditor-app/get-audited-loans.md).

# Get Audited Loans

**Endpoint**:

**GET** `https://<base_url>/floware/v1/datasources/<data_source_id>/resources/rf_gold_data_object`

#### **Query Params**

| Parameter  | Value                                                                                                                                 | Description                                                                     |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| `$expand`  | `rf_gold_item_details`                                                                                                                | Expands the related `rf_gold_item_details` object for each loan record.         |
| `$join`    | `id,gold_data_id`                                                                                                                     | Joins the main loan record with the related gold item detail record.            |
| `$select`  | `b.type,b.item_risk_identified_count,b.item_risk_identified`                                                                          | Returns only the selected fields from the joined item detail record.            |
| `$orderby` | `loan_date desc`                                                                                                                      | Sorts results by `loan_date` in descending order.                               |
| `offset`   | `0`                                                                                                                                   | Starts the result set from the first record.                                    |
| `limit`    | `100`                                                                                                                                 | Limits the response to 100 records.                                             |
| `$filter`  | `(a.image_risk_flag eq 'high' $or a.image_risk_flag eq 'medium') $and a.loan_date gte '2021-06-18' $and a.loan_date lte '2026-06-17'` | Filters results to high- or medium-risk loans within the given loan date range. |

{% hint style="info" %}
**If you want fetch loans by loan\_id just use $filter. The filter value would be**&#x20;

**$filter = (a.loan\_id eq 'GL123456')**
{% endhint %}

#### **Headers**

* `Content-Type` : application/json
* `X-Rootflo-Signature` : HMAC signature
* `X-Rootflo-Key` : HMAC Key

{% content-ref url="/pages/dd2YKnoHkmgvYrEIYsIj" %}
[Authentication](/authentication.md)
{% endcontent-ref %}

#### Response

```json
{
    "meta": {
        "status": "success",
        "code": 1,
        "error": null
    },
    "data": {
        "records": [
            {
                "id": "02e1a15e-448e-402a-a18c-c9ab42e44658",
                "item_id": "3da8ba29-a689-48ce-8428-580d162f0502",
                "loan_id": "GL8787755",
                "customer_id": "CF3A0CEF",
                "agent_id": null,
                "manager_name": null,
                "loan_date": "2026-06-09T17:12:52.047000+00:00",
                "timestamp": null,
                "category": null,
                "sub_category": null,
                "zone": "WEST-I",
                "region": null,
                "city": null,
                "branch": "1466      ",
                "gold_loan_category": null,
                "loan_amount": 450000.0,
                "loan_tenure": null,
                "gross_weight": null,
                "stone_weight": null,
                "net_weight": null,
                "gold_purity": null,
                "image_url": "gs://rf-iifl-iifl-application-bucket/3da8ba29-a689-48ce-8428-580d162f0502",
                "unusual_patterns_detected": null,
                "unusual_patterns_details": null,
                "identical_items_detected": null,
                "identical_items_detected_count": null,
                "image_risk_flag": "medium",
                "clarity_score": 0,
                "overlap_score": 0,
                "items": [
                    {
                        "item_count": 50,
                        "item_description": "Jewel with BIS",
                        "item_gross_weight": 99,
                        "item_id": "602",
                        "item_net_weight": 99,
                        "item_purity": null,
                        "item_stone_weight": 0,
                        "item_type": "Ring"
                    }
                ],
                "spurious_classification": {
                    "confidence_score": null,
                    "prediction": null,
                    "status": "success"
                },
                "metadata_1": {
                    "branch_pincode": "425002",
                    "customer_risk_profile": "Low"
                },
                "metadata_2": null,
                "metadata_3": null,
                "metadata_4": null,
                "metadata_5": null,
                "filter_1": null,
                "filter_2": null,
                "filter_3": null,
                "filter_4": null,
                "filter_5": null,
                "image_summary": "-",
                "ai_item_type_average_non_gold_ratios": {},
                "branch_item_type_average_non_gold_ratios": {
                    "bangle": null,
                    "bracelet": null,
                    "chain": null,
                    "earring": null,
                    "locket": null,
                    "necklace": null,
                    "others": null,
                    "pendant": null,
                    "rajputana": null,
                    "ring": 0,
                    "stud": null
                },
                "ai_minus_branch_item_type_average_non_gold_ratios": {
                    "bangle": null,
                    "bracelet": null,
                    "chain": null,
                    "earring": null,
                    "locket": null,
                    "necklace": null,
                    "others": null,
                    "pendant": null,
                    "rajputana": null,
                    "ring": null,
                    "stud": null
                },
                "rf_insights_status": "success",
                "created_at": "2026-06-10T07:41:39.504630+00:00",
                "is_spurious": 0,
                "is_excess_funding": 0,
                "is_business_rule_alert": 1,
                "is_fraud_design_alert": 0,
                "excess_funding_probability": null,
                "spurious_tabular_probability": null,
                "rf_gold_item_details": [
                    {
                        "type": null,
                        "item_risk_identified_count": null,
                        "item_risk_identified": null
                    }
                ]
            },
            {
                "id": "3e64edfd-2218-4bcd-addb-25250dd4cf97",
                "item_id": "87c59499-8a83-4fa1-a4a4-7e569bcd9119",
                "loan_id": "GL49375349_P5TO",
                "customer_id": null,
                "agent_id": null,
                "manager_name": null,
                "loan_date": "2026-04-21T00:00:00+00:00",
                "timestamp": null,
                "category": null,
                "sub_category": null,
                "zone": "SOUTH-III",
                "region": null,
                "city": null,
                "branch": "2440",
                "gold_loan_category": null,
                "loan_amount": null,
                "loan_tenure": null,
                "gross_weight": null,
                "stone_weight": null,
                "net_weight": null,
                "gold_purity": null,
                "image_url": "gs://rf-iifl-iifl-application-bucket/87c59499-8a83-4fa1-a4a4-7e569bcd9119",
                "unusual_patterns_detected": null,
                "unusual_patterns_details": null,
                "identical_items_detected": null,
                "identical_items_detected_count": null,
                "image_risk_flag": "high",
                "clarity_score": 68,
                "overlap_score": 1,
                "items": [
                    {
                        "item_count": 1,
                        "item_description": "Jewel (With Solder) ",
                        "item_gross_weight": 19.9,
                        "item_id": "804",
                        "item_net_weight": 18,
                        "item_purity": null,
                        "item_stone_weight": 0.2,
                        "item_type": "Necklace"
                    },
                    {
                        "item_count": 1,
                        "item_description": "Jewel (With Solder) ",
                        "item_gross_weight": 7.83,
                        "item_id": "803",
                        "item_net_weight": 7.08,
                        "item_purity": null,
                        "item_stone_weight": 0,
                        "item_type": "Chain"
                    }
                ],
                "spurious_classification": {
                    "confidence_score": 0.8514404296875,
                    "prediction": "genuine",
                    "status": "success"
                },
                "metadata_1": {
                    "branch_pincode": "2440",
                    "customer_risk_profile": "Medium"
                },
                "metadata_2": null,
                "metadata_3": null,
                "metadata_4": null,
                "metadata_5": null,
                "filter_1": null,
                "filter_2": null,
                "filter_3": null,
                "filter_4": null,
                "filter_5": null,
                "image_summary": "-",
                "ai_item_type_average_non_gold_ratios": {
                    "bangle": null,
                    "bracelet": null,
                    "chain": 0,
                    "earring": null,
                    "locket": null,
                    "necklace": null,
                    "others": null,
                    "pendant": null,
                    "rajputana": null,
                    "ring": null,
                    "stud": null
                },
                "branch_item_type_average_non_gold_ratios": {
                    "bangle": null,
                    "bracelet": null,
                    "chain": 0,
                    "earring": null,
                    "locket": null,
                    "necklace": 0.0099,
                    "others": null,
                    "pendant": null,
                    "rajputana": null,
                    "ring": null,
                    "stud": null
                },
                "ai_minus_branch_item_type_average_non_gold_ratios": {
                    "bangle": null,
                    "bracelet": null,
                    "chain": 0,
                    "earring": null,
                    "locket": null,
                    "necklace": null,
                    "others": null,
                    "pendant": null,
                    "rajputana": null,
                    "ring": null,
                    "stud": null
                },
                "rf_insights_status": "success",
                "created_at": "2026-04-21T15:37:40.229617+00:00",
                "is_spurious": 1,
                "is_excess_funding": 0,
                "is_business_rule_alert": 0,
                "is_fraud_design_alert": 0,
                "excess_funding_probability": 0.30868130922317505,
                "spurious_tabular_probability": 0.9778704559851745,
                "rf_gold_item_details": [
                    {
                        "type": "chain",
                        "item_risk_identified_count": null,
                        "item_risk_identified": []
                    }
                ]
            }
        ]
    }
}    
    
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://apps.docs.rootflo.ai/ai-gold-auditor-app/get-audited-loans.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
