Skip to main content
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
}
'
{
  "object": "<string>",
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "short_code": "abc12345",
  "url": "https://platform.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
recipient_address
string
required

Ethereum address to receive payment

amount
string

Amount in token base units

token_address
string

Token contract address (default: USDC on Base)

chain_id
integer

Chain ID (default: 8453 Base)

name
string
description
string
expires_in
integer

TTL in milliseconds (default: 24h)

Response

Payment link created

object
string
Allowed value: "payment_link"
id
string
Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

short_code
string
Example:

"abc12345"

url
string
Example:

"https://platform.anyspend.com/pay/abc12345"

name
string
Example:

"Summer Sale"

description
string | null
amount
string | null

Amount in token base units (e.g., 10 USDC = 10000000)

Example:

"10000000"

token_address
string
Example:

"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"

chain_id
integer
Example:

8453

recipient_address
string
Example:

"0x..."

is_active
boolean
created_at
integer

Unix timestamp in milliseconds