Quick Pay

Create payment links instantly without authentication

Quick Pay is a single endpoint that lets you create a payment link without requiring an API key. It is designed for rapid prototyping, one-off invoices, tip jars, and donation pages where the overhead of creating an organization and managing API keys is unnecessary.

Info

Quick Pay is rate limited to 5 requests per minute per IP address. For higher throughput or access to analytics, webhooks, and custom forms, create an organization and use an API key.

Endpoint

text
POST /api/v1/quick-pay

No Authorization header is required.

Request Body

ParameterTypeRequiredDefaultDescription
recipient_addressstringYes--Ethereum address that will receive the payment
amountstringNo--Token amount in the smallest unit (e.g. "1000000" for 1 USDC)
token_addressstringNoUSDC on BaseERC-20 token contract address
chain_idnumberNo8453 (Base)Target chain ID
namestringNo--Human-readable name for the link
descriptionstringNo--Description shown to the payer
expires_innumberNo86400 (24 h)Seconds until the link expires. Maximum is 86400.

Response

A successful request returns a full PaymentLink object:

json
{ "id": "pl_abc123", "url": "https://anyspend.com/pay/pl_abc123", "recipient_address": "0x1234...abcd", "amount": "1000000", "token_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "chain_id": 8453, "name": "Coffee tip", "description": null, "status": "active", "expires_at": "2025-06-02T12:00:00Z", "created_at": "2025-06-01T12:00:00Z", "org_id": "anonymous" }

Share the url with anyone -- they can pay from any wallet on any supported chain and the funds will be routed to the recipient via AnySpend.

Examples

curl -X POST https://platform-api.anyspend.com/api/v1/quick-pay \
  -H "Content-Type: application/json" \
  -d '{
    "recipient_address": "0x1234567890abcdef1234567890abcdef12345678",
    "amount": "5000000",
    "name": "Buy me a coffee",
    "description": "Thanks for the help!"
  }'

Use Cases

Tip Jars

Embed a Quick Pay link on your blog or social media profile to accept tips without any setup.

Donation Pages

Non-profits and open-source projects can generate links on-the-fly for one-time donations.

Quick Invoicing

Freelancers can send a payment link over email or chat for a single invoice.

Prototyping

Test your integration flow before committing to a full API key setup.

Limitations

Warning

Quick Pay links are intentionally limited. If you need any of the features below, create an organization and use authenticated endpoints.

FeatureQuick PayAuthenticated API
Analytics & visitor trackingNoYes
Webhook notificationsNoYes
Custom checkout formsNoYes
Shipping options & discount codesNoYes
Custom expiry (> 24 h)NoYes
Link editing after creationNoYes
Organization brandingNoYes
Rate limit5 req/min/IP100 req/min/key

Error Responses

StatusCodeDescription
400invalid_requestMissing recipient_address or invalid parameter
422invalid_addressrecipient_address is not a valid Ethereum address
429rate_limit_exceededMore than 5 requests in the current minute window
json
{ "error": { "code": "rate_limit_exceeded", "message": "Rate limit exceeded. Try again in 45 seconds.", "retry_after": 45 } }
Ask a question... ⌘I