Skip to main content
POST
https://autopay.shakesco.com
/
can_request
const response = await fetch("https://autopay.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");
}
{
  "id": 1,
  "status": "true"
}
Check if a payer has enabled payment requests in their Shakesco app before sending a request.

Request Body

delegate_address
string
required
Address to check (Shakesco or Business card)
network
string
required
  • 1 = Ethereum - 137 = Polygon

Response

id
integer
Request ID
status
string
  • true = Can be requested - false = Must enable requests in app
const response = await fetch("https://autopay.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");
}
{
  "id": 1,
  "status": "true"
}
If status is false, ask the user to enable requests in their Shakesco app settings.