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");
}
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()
{
"id": 1,
"status": "true"
}
{
"id": 1,
"status": "false"
}
Auto-Payments API (Beta)
Check Request Capability
Verify if payer accepts payment requests
POST
/
can_request
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");
}
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()
{
"id": 1,
"status": "true"
}
{
"id": 1,
"status": "false"
}
For the complete documentation index, see llms.txt.
Check if a payer has enabled payment requests in their Shakesco app before sending a request.
Request Body
string
required
Address to check (Shakesco or Business card)
string
required
1= Ethereum -137= Polygon
Response
integer
Request ID
string
true= Can be requested -false= Must enable requests in app
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");
}
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()
{
"id": 1,
"status": "true"
}
{
"id": 1,
"status": "false"
}
If
status is false, ask the user to enable requests in their Shakesco app
settings.