Create a quick payment link (no auth required)
curl --request POST \
--url https://platform-api.anyspend.com/api/v1/quick-pay \
--header 'Content-Type: application/json' \
--data '
{
"recipient_address": "<string>",
"amount": "<string>",
"token_address": "<string>",
"chain_id": 123,
"name": "<string>",
"description": "<string>",
"expires_in": 123
}
'import requests
url = "https://platform-api.anyspend.com/api/v1/quick-pay"
payload = {
"recipient_address": "<string>",
"amount": "<string>",
"token_address": "<string>",
"chain_id": 123,
"name": "<string>",
"description": "<string>",
"expires_in": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
recipient_address: '<string>',
amount: '<string>',
token_address: '<string>',
chain_id: 123,
name: '<string>',
description: '<string>',
expires_in: 123
})
};
fetch('https://platform-api.anyspend.com/api/v1/quick-pay', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://platform-api.anyspend.com/api/v1/quick-pay",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'recipient_address' => '<string>',
'amount' => '<string>',
'token_address' => '<string>',
'chain_id' => 123,
'name' => '<string>',
'description' => '<string>',
'expires_in' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platform-api.anyspend.com/api/v1/quick-pay"
payload := strings.NewReader("{\n \"recipient_address\": \"<string>\",\n \"amount\": \"<string>\",\n \"token_address\": \"<string>\",\n \"chain_id\": 123,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"expires_in\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://platform-api.anyspend.com/api/v1/quick-pay")
.header("Content-Type", "application/json")
.body("{\n \"recipient_address\": \"<string>\",\n \"amount\": \"<string>\",\n \"token_address\": \"<string>\",\n \"chain_id\": 123,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"expires_in\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform-api.anyspend.com/api/v1/quick-pay")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"recipient_address\": \"<string>\",\n \"amount\": \"<string>\",\n \"token_address\": \"<string>\",\n \"chain_id\": 123,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"expires_in\": 123\n}"
response = http.request(request)
puts response.read_body{
"object": "payment_link",
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"short_code": "abc12345",
"url": "https://anyspend.com/pay/abc12345",
"name": "Summer Sale",
"description": "<string>",
"amount": "10000000",
"token_address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"chain_id": 8453,
"recipient_address": "0x...",
"is_active": true,
"created_at": 123
}Quick Pay
Create a quick payment link (no auth required)
POST
/
quick-pay
Create a quick payment link (no auth required)
curl --request POST \
--url https://platform-api.anyspend.com/api/v1/quick-pay \
--header 'Content-Type: application/json' \
--data '
{
"recipient_address": "<string>",
"amount": "<string>",
"token_address": "<string>",
"chain_id": 123,
"name": "<string>",
"description": "<string>",
"expires_in": 123
}
'import requests
url = "https://platform-api.anyspend.com/api/v1/quick-pay"
payload = {
"recipient_address": "<string>",
"amount": "<string>",
"token_address": "<string>",
"chain_id": 123,
"name": "<string>",
"description": "<string>",
"expires_in": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
recipient_address: '<string>',
amount: '<string>',
token_address: '<string>',
chain_id: 123,
name: '<string>',
description: '<string>',
expires_in: 123
})
};
fetch('https://platform-api.anyspend.com/api/v1/quick-pay', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://platform-api.anyspend.com/api/v1/quick-pay",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'recipient_address' => '<string>',
'amount' => '<string>',
'token_address' => '<string>',
'chain_id' => 123,
'name' => '<string>',
'description' => '<string>',
'expires_in' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platform-api.anyspend.com/api/v1/quick-pay"
payload := strings.NewReader("{\n \"recipient_address\": \"<string>\",\n \"amount\": \"<string>\",\n \"token_address\": \"<string>\",\n \"chain_id\": 123,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"expires_in\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://platform-api.anyspend.com/api/v1/quick-pay")
.header("Content-Type", "application/json")
.body("{\n \"recipient_address\": \"<string>\",\n \"amount\": \"<string>\",\n \"token_address\": \"<string>\",\n \"chain_id\": 123,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"expires_in\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform-api.anyspend.com/api/v1/quick-pay")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"recipient_address\": \"<string>\",\n \"amount\": \"<string>\",\n \"token_address\": \"<string>\",\n \"chain_id\": 123,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"expires_in\": 123\n}"
response = http.request(request)
puts response.read_body{
"object": "payment_link",
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"short_code": "abc12345",
"url": "https://anyspend.com/pay/abc12345",
"name": "Summer Sale",
"description": "<string>",
"amount": "10000000",
"token_address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"chain_id": 8453,
"recipient_address": "0x...",
"is_active": true,
"created_at": 123
}Body
application/json
Response
Payment link created
Allowed value:
"payment_link"Example:
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Example:
"abc12345"
Example:
"https://anyspend.com/pay/abc12345"
Example:
"Summer Sale"
Amount in token base units (e.g., 10 USDC = 10000000)
Example:
"10000000"
Example:
"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
Example:
8453
Example:
"0x..."
Unix timestamp in milliseconds
HypeDuel