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

# Check eligibility for Click to Pay for Mastercard

> Use this endpoint to check if a provided BIN prefix is eligible for Click to Pay for Mastercard.

GET/digitalwallets/clicktopay/mastercard/checkeligibility

Use this endpoint to check if a provided BIN prefix is eligible for Click to Pay for Mastercard.

For more information about this ecommerce checkout solution, see [Click to Pay](https://www.marqeta.com/docs/developer-guides/digital-wallets-and-tokenization.md#_click_to_pay).

## Header parameter

| Fields | Description |
| - | - |
| req-sys-id string  Required | Identifier generated by the card program. These identifiers are used for troubleshooting requests between the card program and Marqeta. **Allowable Values:**  36 char max |

## URL query parameters

| Fields | Description |
| - | - |
| bin\_prefix string  Required | Prefix of the bank identification number. **Allowable Values:**  A six- to nine-digit number **NOTE:** It is preferable to use eight- or nine-digit BIN prefixes in production environments. Contact your Marqeta representative for the appropriate value to use. |
| include\_asset boolean  Optional | Returns a list of image assets for the Click to Pay logo if set to `true`. **Allowable Values:**  `true`, `false` |

## Response body

| Fields | Description |
| - | - |
| is\_eligible boolean  Conditionally returned | Indicates whether the `bin_prefix` is eligible for Click to Pay. - `true`: The `bin_prefix` is eligible for Click to Pay. - `false`: The `bin_prefix` is not eligible for Click to Pay. **Allowable Values:**  `true`, `false` |
| image\_assets array of objects  Conditionally returned | List of image assets for the Click to Pay logo if `include_asset` is set to `true` in the request. **Allowable Values:**  A valid array of `image_asset` objects |
| image\_assets\[].**type** string  Conditionally returned | Type of media. Specified as Multipurpose Internet Mail Extension (MIME). Supported media types include: - application/pdf - image/png - image/svg+xml - text/plain - text/html **Allowable Values:**  32 char max |
| image\_assets\[].**data** string  Conditionally returned | Media data content. **Allowable Values:**  Base64-encoded media data |
| image\_assets\[].**height** string  Conditionally returned | Height of non-SVG image asset. Specified in pixels. **Allowable Values:**  6 char max |
| image\_assets\[].**width** string  Conditionally returned | Width of non-SVG image asset. Specified in pixels. **Allowable Values:**  6 char max |

## Sample response body

```json JSON expandable lines wrap theme={null}
{
  "is_eligible": true,
  "image_assets": [
    {
      "media_content": {
        "type": "image/png",
        "data": "iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAYAAABS3GwHAAAAAXNSR0IArs4c6... (truncated for readability)",
        "height": "192px",
        "width": "192px"
      }
    },
    {
      "media_content": {
        "type": "image/svg+xml",
        "data": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3... (truncated for readability)",
        "height": "192px",
        "width": "192px"
      }
    }
  ]
}
```


## Related topics

- [Click to Pay for Mastercard Overview](https://www.marqeta.com/docs/core-api/digital-wallets-management/click-to-pay-mastercard.md)
- [Digital Wallets Management Overview](https://www.marqeta.com/docs/core-api/digital-wallets-management.md)
- [Enroll a card to Click to Pay for Mastercard](https://www.marqeta.com/docs/core-api/digital-wallets-management/click-to-pay-mastercard/enroll-card-click-pay-mastercard.md)
- [Retrieve Click to Pay for Mastercard enrollment status](https://www.marqeta.com/docs/core-api/digital-wallets-management/click-to-pay-mastercard/retrieve-click-pay-mastercard-enrollment-status.md)
- [Digital Wallets and Tokenization](https://www.marqeta.com/docs/developer-guides/digital-wallets-and-tokenization.md)
