> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay-881012b3.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Check CRED Eligibility

> Check if the user is eligible for CRED Pay using the Check CRED Eligibility API.

<div style={{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.35rem 0.9rem",border:"1px solid rgba(128,128,128,0.28)",borderRadius:"0.5rem",padding:"0.45rem 0.75rem",margin:"0 0 1.25rem",fontSize:"0.875rem"}}>
  <span style={{fontWeight:600}}>Available in</span>
  <span>🇮🇳 India</span>
</div>

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.
</Warning>

Following is the sample code for request and response.

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

      // Contact is CRED Eligible 

    })
    .catch((error) => {
      // Contact is  CRED Ineligible 
    });
  ```

  ```javascript Response theme={null}
  {
    "success": true,
    "data": {
        "state": "ELIGIBLE",
        "tracking_id": <random_tracking_id>,
        "offer": {
            "description": <offer_description>
        }
    },
    "status_code": 200
  }
  ```
</CodeGroup>
