query_warehouse
Retrieve a merchant's dispute history, including total cases, resolution breakdown, and individual case records.
Instructions
Retrieve the dispute history for a merchant from the data warehouse.
Args: merchant_id: The merchant identifier (e.g. "MER-001").
Returns: A dict containing: merchant_id – the queried ID merchant_name – registered name (or None) total_cases – total number of dispute cases on record resolutions – breakdown: {merchant_won, merchant_lost, settled, pending} cases – list of individual case records (date, amount, type, res)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| merchant_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||