Skip to main content
POST
This is how a person pays a pay link. The hosted page at 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

  1. Call this endpoint. It is public and needs no API key.
  2. Ask the buyer’s wallet to send tx as is: to is the token contract on the chosen network and data is transfer(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.
  3. 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.
  4. Poll Get Payment Intent with the claim_token to show the buyer when the payment is booked.
The payment goes straight from the buyer’s wallet to yours. Xenarch has no contract in the payment.

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. Pass network 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 underpaid against this payment; fulfil it or ask for the rest.
  • Tron takes manual only.
Some smart wallets drop or wrap the transaction data. The payment then can’t be matched from the reference, and the payer has to sign a short proof that they sent it. The hosted page asks for that signature; a custom checkout should send those buyers to the hosted page. Before you open the wallet, check that 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. These attribution fields are stored on the intent. They can’t be changed after the payment is sent.

Response

Errors

Path Parameters

Body

application/json
method
enum<string>
default:wallet

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
payer
string | null

Connected wallet address

Pattern: ^0x[0-9a-fA-F]{40}$
amount
string | null

Buyer-chosen amount (decimal USDC) for open-amount links

Pattern: ^\d{1,12}(\.\d{1,6})?$
tip
string | null

Tip (decimal USDC), added to the total

Pattern: ^\d{1,12}(\.\d{1,6})?$
client_reference_id
string | null

Your own reference, echoed on the payment's webhook

Maximum string length: 200
subids
Subids · object | null

Tracking values subid1 to subid5

bill_to
Bill To · object | null

Buyer details, up to 20 fields

network
string | null

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}$
token
string | null

USDC or USDT. USDC when omitted. Tron takes only USDT. Monad's USDT is Tether's USDT0.

Pattern: ^[A-Za-z0-9]{2,12}$
renewal_token
string | null

For a subscription renewal: the token from the renewal email.

Maximum string length: 512
email_confirm_token
string | null

For a link that confirms the buyer's email first: the token from the confirmation email.

Maximum string length: 2048

Response

Successful Response

reference
string
required
method
enum<string>
required
Available options:
wallet,
manual
asset
string
required
pay_to
string
required
amount_micro
string
required
amount
string
required
base_amount_micro
string
required
expires_at
string<date-time>
required
claim_token
string
required

Secret for this checkout only. Authorizes GET /v1/links/{link_id}/intents/{reference}.

chain_id
integer
default:8453
network
string
default:base
tx
PayLinkIntentTx · object | null
eip681
string | null
token
string
default:USDC

The stablecoin: USDC or USDT.

decimals
integer
default:6

The token's on-chain decimals (18 for USDC and USDT on BNB Chain, 6 elsewhere). Amounts in this response are always 6-decimal micro units.

confirmations
integer
default:1

How many confirmations the network needs before the payment is booked: Base 1, Ethereum 12, BNB Chain 15, Monad 2, Tron 19.

qr
string | null

For manual: what a QR code should encode. An EIP-681 URI on EVM networks, the bare address on Tron.