curl -X POST https://api.xenarch.dev/v1/links/JJjIwDyV4N1CG9g8AHMxfdJ9/intent \
-H "Content-Type: application/json" \
-d '{"method": "wallet", "payer": "0xBuyerWalletAddress000000000000000000000000"}'
{
"reference": "0x5c1e8a0b7d2f4e6a9c3b1d08",
"link_id": "JJjIwDyV4N1CG9g8AHMxfdJ9",
"method": "wallet",
"chain_id": 8453,
"network": "base",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"pay_to": "0xYourWalletAddress",
"amount_micro": "25000000",
"amount": "25.00",
"base_amount_micro": "25000000",
"expires_at": "2026-11-23T12:30:00Z",
"tx": {
"to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"data": "0xa9059cbb…",
"value": "0x0",
"chain_id": 8453
},
"eip681": null,
"claim_token": "q3V…"
}
Links
Create Payment Intent
Start a pay-link payment from a buyer’s own wallet, in USDC or USDT on any network the link takes. Returns the transfer to send, or an exact amount to send from an exchange or any wallet app.
POST
/
v1
/
links
/
{link_id}
/
intent
curl -X POST https://api.xenarch.dev/v1/links/JJjIwDyV4N1CG9g8AHMxfdJ9/intent \
-H "Content-Type: application/json" \
-d '{"method": "wallet", "payer": "0xBuyerWalletAddress000000000000000000000000"}'
{
"reference": "0x5c1e8a0b7d2f4e6a9c3b1d08",
"link_id": "JJjIwDyV4N1CG9g8AHMxfdJ9",
"method": "wallet",
"chain_id": 8453,
"network": "base",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"pay_to": "0xYourWalletAddress",
"amount_micro": "25000000",
"amount": "25.00",
"base_amount_micro": "25000000",
"expires_at": "2026-11-23T12:30:00Z",
"tx": {
"to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"data": "0xa9059cbb…",
"value": "0x0",
"chain_id": 8453
},
"eip681": null,
"claim_token": "q3V…"
}
curl -X POST https://api.xenarch.dev/v1/links/JJjIwDyV4N1CG9g8AHMxfdJ9/intent \
-H "Content-Type: application/json" \
-d '{"method": "wallet", "payer": "0xBuyerWalletAddress000000000000000000000000"}'
{
"reference": "0x5c1e8a0b7d2f4e6a9c3b1d08",
"link_id": "JJjIwDyV4N1CG9g8AHMxfdJ9",
"method": "wallet",
"chain_id": 8453,
"network": "base",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"pay_to": "0xYourWalletAddress",
"amount_micro": "25000000",
"amount": "25.00",
"base_amount_micro": "25000000",
"expires_at": "2026-11-23T12:30:00Z",
"tx": {
"to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"data": "0xa9059cbb…",
"value": "0x0",
"chain_id": 8453
},
"eip681": null,
"claim_token": "q3V…"
}
pay.xenarch.com calls it when the buyer presses the pay button. You only need it if you build your own checkout. Agents pay over x402 instead (see MCP tools, xenarch_pay_link).
How it works
- Call this endpoint. It is public and needs no API key.
- Ask the buyer’s wallet to send
txas is:tois the token contract on the chosen network anddataistransfer(pay_to, amount)followed by a short Xenarch reference. The wallet shows an ordinary USDC or USDT send. The buyer pays the network’s fee in its own coin (ETH on Base or Ethereum, BNB on BNB Chain, MON on Monad), under a cent on Base. - Xenarch watches the network and books the transfer once it has the network’s confirmations (Base 1, Ethereum 12, BNB Chain 15, Monad 2, Tron 19), so the payment is recorded and your webhook fires even if the buyer closes the page.
- Poll Get Payment Intent with the
claim_tokento show the buyer when the payment is booked.
Networks and coins
Every link takes USDC on Base. Its owner can add USDC on Ethereum, BNB Chain and Monad, and USDT on Ethereum, BNB Chain, Monad (Tether’s USDT0) and Tron with Set Link Networks. Passnetwork and token to pay on one of them; Get Link lists what the link takes under networks. Omit both for Base USDC.
Paying from an exchange or another app
method: "manual" is for a payer who can’t connect a wallet: an exchange withdrawal, or a wallet app on another device. Instead of tx, the response holds a unique amount for this payment (the price plus 0.0001 to 0.0099, four decimals; six once those are taken), pay_to and a qr value. Show them and ask the payer to send exactly that amount on that network.
- The amount is held 60 minutes (
expires_at), then stays reserved 72 more hours, so a late withdrawal still finds its payment. - Exchanges often take their fee out of what they send. A transfer that arrives up to about $6 short, with the same last two digits, is booked
underpaidagainst this payment; fulfil it or ask for the rest. - Tron takes
manualonly.
tx.to is the token contract the link lists for that network, and that pay_to and amount match what you show the buyer.
Body
All fields are optional.| Field | Type | Description |
|---|---|---|
method | string | wallet (default) returns the transaction for a connected wallet. manual returns a unique amount to send from an exchange or any wallet app. |
network | string | base (default), ethereum, bnb, monad or tron. Must be a network the link takes. |
token | string | USDC (default) or USDT. Tron takes only USDT. |
payer | string | The connected wallet address, used to match the transfer to this intent |
amount | string | Decimal amount for an open-amount link, within its bounds |
tip | string | Decimal tip, added to the total |
client_reference_id | string | Your own reference, up to 200 characters. Echoed on the payment’s webhook. |
subids | object | Up to five tracking values, subid1 to subid5 |
bill_to | object | Buyer details collected before paying, up to 20 fields |
Response
| Field | Description |
|---|---|
reference | The intent’s id, 12 bytes as hex. It is in the transaction data and in the path of Get Payment Intent. |
tx | For wallet: the transaction to send: to (the token contract), data, value (0x0) and chain_id |
network, chain_id, token | The network and coin of this payment. chain_id is null on Tron. |
decimals | The token’s on-chain decimals (18 for USDC and USDT on BNB Chain, 6 elsewhere). The amounts in this response are always 6-decimal micro units. |
confirmations | Confirmations needed before the payment is booked |
qr | For manual: what a QR code should encode. An EIP-681 URI on EVM networks, the bare address on Tron. |
pay_to | Your receiving wallet, from the link’s signed terms |
amount, amount_micro | Total to pay, as a decimal and in micro units (6 decimals), including any tip. For manual, the exact unique amount to send. |
base_amount_micro | The amount before the tip |
expires_at | 30 minutes after creation for wallet, 60 minutes for manual. Create a new intent after that. |
claim_token | A secret for this checkout only. Keep it in the browser and don’t put it in a URL. It authorizes Get Payment Intent. |
Errors
| Status | Meaning |
|---|---|
400 | The amount, tip, network or token isn’t allowed for this link, or the link has no valid receiving wallet |
404 | No link with this id |
410 | The link is revoked or expired, or a single-use link was already paid |
429 | Too many requests from this IP address, or the link has too many open payments |
503 | Every unique amount for this price is briefly taken (manual). Try again shortly. |
Body
application/json
wallet (default) returns the transaction for the buyer's connected wallet, with a Xenarch reference in its data. manual returns a unique amount for a payer who sends from an exchange or any wallet app (QR or copy and paste); the amount ties the transfer to this payment. Tron takes manual only.
Available options:
wallet, manual base, ethereum, bnb, monad or tron. Base USDC when omitted. Anything else must be a network the link's owner turned on (see networks on Get Link).
Pattern:
^[a-z0-9_-]{2,24}$Response
Successful Response