> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anyspend.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a quick payment link (no auth required)

` POST /quick-pay `

Create a quick payment link (no auth required)

## Servers

- ` https://platform-api.anyspend.com/api/v1 ` — Current server

## Request body (required)

Content type: ` application/json `

- ` value `: type ` object `

  - Required fields: ` recipient_address `

  - ` recipient_address `: type ` string ` — Ethereum address to receive payment

  - ` amount `: type ` string ` — Amount in token base units

  - ` token_address `: type ` string ` — Token contract address (default: USDC on Base)

  - ` chain_id `: type ` integer ` — Chain ID (default: 8453 Base)

  - ` name `: type ` string `

  - ` description `: type ` string `

  - ` expires_in `: type ` integer ` — TTL in milliseconds (default: 24h)

## Responses

### ` 201 ` — Payment link created

Content type: ` application/json `

- ` value `: type ` object `

  - ` object `: type ` string `

  - ` id `: type ` string `

    - example: ` "a1b2c3d4-e5f6-7890-abcd-ef1234567890" `

  - ` short_code `: type ` string `

    - example: ` "abc12345" `

  - ` url `: type ` string `

    - example: ` "https://anyspend.com/pay/abc12345" `

  - ` name `: type ` string `

    - example: ` "Summer Sale" `

  - ` description `: type ` string `; nullable

  - ` amount `: type ` string `; nullable — Amount in token base units (e.g., 10 USDC = 10000000)

    - example: ` "10000000" `

  - ` token_address `: type ` string `

    - example: ` "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" `

  - ` chain_id `: type ` integer `

    - example: ` 8453 `

  - ` recipient_address `: type ` string `

    - example: ` "0x..." `

  - ` is_active `: type ` boolean `

  - ` created_at `: type ` integer ` — Unix timestamp in milliseconds

### ` 429 ` — Rate limit exceeded

## Request examples

### cURL

```curl
curl -X POST 'https://platform-api.anyspend.com/api/v1/quick-pay' \
  -H 'Content-Type: application/json' \
  -d '{
  "recipient_address": "string",
  "amount": "string",
  "token_address": "string",
  "chain_id": 0,
  "name": "string",
  "description": "string",
  "expires_in": 0
}'
```

### JavaScript

```javascript
const response = await fetch('https://platform-api.anyspend.com/api/v1/quick-pay', {
  method: 'POST',
  headers: {
      "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "recipient_address": "string",
    "amount": "string",
    "token_address": "string",
    "chain_id": 0,
    "name": "string",
    "description": "string",
    "expires_in": 0
  })
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

response = requests.post('https://platform-api.anyspend.com/api/v1/quick-pay', json={
  "recipient_address": "string",
  "amount": "string",
  "token_address": "string",
  "chain_id": 0,
  "name": "string",
  "description": "string",
  "expires_in": 0
})
print(response.json())
```