Skip to main content
POST
https://autopay.shakesco.com
/
has_paid
const response = await fetch("https://autopay.shakesco.com/has_paid", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    delegate_address: "0xB808ff0E0F4fC24D0cECeED6014f04ecE5bfca36",
    auto_address: "0x309E7d835ccE6E74BC72A2E523fa7f79FFC0d413",
    network: "137",
  }),
});

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

if (has_paid === "true") {
  // Grant service access
}
{
  "id": 1,
  "delegate_address": "0xB808ff0E0F4fC24D0cECeED6014f04ecE5bfca36",
  "has_paid": "true"
}
Check payment status before granting service access. This is your primary verification method.
Always check payment status before delivering service. This prevents unauthorized access.

Request Body

delegate_address
string
required
User’s Shakesco or Business card address
auto_address
string
required
Your Business Auto account address
network
string
required
  • 1 = Ethereum - 137 = Polygon

Response

id
integer
Request ID
delegate_address
string
Checked address
has_paid
string
  • true = Payment received - false = No payment
const response = await fetch("https://autopay.shakesco.com/has_paid", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    delegate_address: "0xB808ff0E0F4fC24D0cECeED6014f04ecE5bfca36",
    auto_address: "0x309E7d835ccE6E74BC72A2E523fa7f79FFC0d413",
    network: "137",
  }),
});

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

if (has_paid === "true") {
  // Grant service access
}
{
  "id": 1,
  "delegate_address": "0xB808ff0E0F4fC24D0cECeED6014f04ecE5bfca36",
  "has_paid": "true"
}
For split payments, only check the group leader’s address. Other participants will return false.