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

# Check Request Capability

> Verify if payer accepts payment requests

<span style={{display:"none"}}>For the complete documentation index, see [llms.txt](/llms.txt).</span>

Check if a payer has enabled payment requests in their Shakesco app before sending a request.

## Request Body

<ParamField body="delegate_address" type="string" required>
  Address to check (Shakesco or Business card)
</ParamField>

<ParamField body="network" type="string" required>
  * `1` = Ethereum - `137` = Polygon
</ParamField>

## Response

<ResponseField name="id" type="integer">
  Request ID
</ResponseField>

<ResponseField name="status" type="string">
  * `true` = Can be requested - `false` = Must enable requests in app
</ResponseField>

<RequestExample>
  ```javascript Node.js theme={null}
  const response = await fetch("https://payments.shakesco.com/can_request", {
    method: "POST",
    headers: {
      Authorization: `Bearer ${API_KEY}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      delegate_address: "0xB808ff0E0F4fC24D0cECeED6014f04ecE5bfca36",
      network: "137",
    }),
  });

  const { status } = await response.json();

  if (status === "false") {
    console.log("User must enable requests in Shakesco app");
  }
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      "https://payments.shakesco.com/can_request",
      headers={
          "Authorization": f"Bearer {API_KEY}",
          "Content-Type": "application/json"
      },
      json={
          "delegate_address": "0xB808ff0E0F4fC24D0cECeED6014f04ecE5bfca36",
          "network": "137"
      }
  )

  data = response.json()
  ```
</RequestExample>

<ResponseExample>
  ```json Can Request theme={null}
  {
    "id": 1,
    "status": "true"
  }
  ```

  ```json Cannot Request theme={null}
  {
    "id": 1,
    "status": "false"
  }
  ```
</ResponseExample>

<Note>
  If `status` is `false`, ask the user to enable requests in their Shakesco app
  settings.
</Note>
