> ## Documentation Index
> Fetch the complete documentation index at: https://docs.credprotocol.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Mock Enhanced Report

> Get a mock enhanced credit report with off-chain data for testing

## Overview

Returns a mock enhanced credit report that simulates combining on-chain data with off-chain metrics. Use this to test your integration with the enhanced report endpoint.

<Warning>
  **SANDBOX**: This endpoint returns mock data for testing only. Do not use for production decisions.
</Warning>

## Path Parameters

<ParamField path="address" type="string" required>
  Any Ethereum address (e.g., `0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17`)
</ParamField>

## Request Body

<ParamField body="name" type="string" required>
  Source name for the additional data (e.g., "Coinbase Account")
</ParamField>

<ParamField body="total_asset_usd" type="number">
  Simulated off-chain asset value in USD
</ParamField>

<ParamField body="total_collateral_usd" type="number">
  Simulated off-chain collateral value in USD
</ParamField>

<ParamField body="count_transactions" type="integer">
  Simulated off-chain transaction count
</ParamField>

## Response

The response includes mock on-chain data plus the additional off-chain data merged into the summary.

<ResponseField name="report.summary" type="object">
  Combined summary metrics (mock on-chain + provided off-chain)
</ResponseField>

<ResponseField name="report.additional" type="object">
  The off-chain data source information you provided
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST "https://api.credprotocol.com/api/v2/sandbox/report/address/0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17" \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "name": "Coinbase Account",
      "total_asset_usd": 75000,
      "count_transactions": 450
    }'
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://api.credprotocol.com/api/v2/sandbox/report/address/0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17',
    {
      method: 'POST',
      headers: {
        'Authorization': 'Bearer YOUR_API_KEY',
        'Content-Type': 'application/json'
      },
      body: JSON.stringify({
        name: 'Coinbase Account',
        total_asset_usd: 75000,
        count_transactions: 450
      })
    }
  );

  const report = await response.json();
  console.log(`Combined assets: $${report.report.summary.total_asset_usd}`);
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      'https://api.credprotocol.com/api/v2/sandbox/report/address/0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17',
      headers={'Authorization': 'Bearer YOUR_API_KEY'},
      json={
          'name': 'Coinbase Account',
          'total_asset_usd': 75000,
          'count_transactions': 450
      }
  )

  report = response.json()
  print(f"Combined assets: ${report['report']['summary']['total_asset_usd']}")
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "report": {
      "address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17",
      "timestamp": "2024-01-15T10:30:00Z",
      "summary": {
        "total_asset_usd": 175000.00,
        "count_transactions": 1450
      },
      "additional": {
        "source": {
          "name": "Coinbase Account",
          "data": {
            "total_asset_usd": 75000,
            "count_transactions": 450
          }
        }
      },
      "chains": []
    }
  }
  ```

  ```json 400 theme={null}
  {
    "error": "Additional data must provide a 'name' field"
  }
  ```
</ResponseExample>

## Performance

* **Response Time**: Instant (no blockchain queries)
* **Quota**: Does not count against your API quota
