---
page_source: https://juspay.io/in/docs/hyper-checkout/android/resources/clickstream-event--api
page_title: Clickstream Event - API
---


# Clickstream Event - API



**Event type :** api_status, eligible_options

**When:** 

1. **api _status :** This is emitted whenever SDK receives API response.
2. **eligible_options :** This is generated whenever eligibility response is received.

## Sample Code Snippets:
### api_status:

#### link wallet - 200 Code Snippet:

```link wallet - 200
{
    "label": "api_status",
    "value": {
        "api_latency": 1284,
        "error_message": null,
        "status_code": 200,
        "type": "linkWallet"
    }
}
```

#### create wallet - 200 Code Snippet:

```create wallet - 200
{
    "label": "api_status",
    "value": {
        "api_latency": 1095,
        "error_message": null,
        "status_code": 200,
        "type": "createWallet"
    }
}
```

#### create wallet - non 200 Code Snippet:

```create wallet - non 200
{
    "label": "api_status",
    "value": {
        "type": "createWallet",
        "error_message": "Signature expired / invalid signature",
        "status_code": 401,
        "api_latency": 219
    }
}
```

#### eligibility - 200 Code Snippet:

```eligibility - 200
{
    "label": "api_status",
    "value": {
        "type": "eligibility",
        "error_message": null,
        "status_code": 200,
        "api_latency": 3537
    }
}
```

#### eligibility - non 200 Code Snippet:

```eligibility - non 200
{
    "label": "api_status",
    "value": {
        "type": "eligibility",
        "error_message": "Signature expired / invalid signature",
        "status_code": 401,
        "api_latency": 219
    }
}
```

#### list offer - non 200 Code Snippet:

```list offer - non 200
{
    "label": "api_status",
    "value": {
        "type": "listOffer",
        "error_message": "Signature expired / invalid signature",
        "status_code": 401,
        "api_latency": 135
    }
}
```

#### list offer 200 Code Snippet:

```list offer 200
{
    "label": "api_status",
    "value": {
        "api_latency": 1027,
        "error_message": null,
        "status_code": 200,
        "type": "listOffer"
    }
}
```

#### outage - 200 Code Snippet:

```outage - 200
{
    "label": "api_status",
    "value": {
        "api_latency": 1568,
        "error_message": null,
        "status_code": 200,
        "type": "outage"
    }
}
```

#### saved payment method - 200 Code Snippet:

```saved payment method - 200
{
    "label": "api_status",
    "value": {
        "type": "paymentSource",
        "error_message": null,
        "status_code": 200,
        "api_latency": 996
    }
}
```

#### saved payment method - non 200 Code Snippet:

```saved payment method - non 200
{
    "label": "api_status",
    "value": {
        "type": "paymentSource",
        "error_message": "Signature expired / invalid signature",
        "status_code": 401,
        "api_latency": 82
    }
}
```

#### payment method - 200 Code Snippet:

```payment method - 200
{
    "label": "api_status",
    "value": {
        "api_latency": 1485,
        "error_message": null,
        "status_code": 200,
        "type": "paymentMethod"
    }
}
```

#### refresh wallet balances - 200 Code Snippet:

```refresh wallet balances - 200
{
    "label": "api_status",
    "value": {
        "type": "refreshWalletBalances",
        "error_message": null,
        "status_code": 200,
        "api_latency": 273
    }
}
```

### eligible_options:

#### eligible options:
```json
{
    "label": "eligible_options",
    "value": {
        "eligible_options": [{
                "payment_method": "HDFC_CLEMI",
                "payment_method_type": "CONSUMERFINANCE"
            },
            {
                "payment_method": "TWID",
                "payment_method_type": "REWARD"
            },
            {
                "payment_method": "BHARATX",
                "payment_method_type": "CONSUMER_FINANCE"
            },
            {
                "payment_method": "BHARATXPAYLATER",
                "payment_method_type": "CONSUMER_FINANCE"
            }
        ]
    }
}
```

