> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay-60c89f9a-mintlify-audit-missing-sections-1778528421.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Check CRED Eligibility

> You can use the API given below to determine if the user is eligible for CRED Pay transactions on Custom Checkout.

<Warning>
  **Watch Out!**

  You should provide the user's contact number with the country code to check the eligibility.

  Following is the sample code for request and response.

  ````js: Request theme={null}
  var razorpay = new Razorpay({
    key: '',
  });
  razorpay.checkCREDEligibility("+918888888888")
    .then((response) => {

      // Contact is CRED Eligible 

    })
    .catch((error) => {
      // Contact is  CRED Ineligible 
    });
  ```js: Response
  {
    "success": true,
    "data": {
        "state": "ELIGIBLE",
        "tracking_id": ,
        "offer": {
            "description": 
        }
    },
    "status_code": 200
  }
  ````
</Warning>
