Skip to content

Received Payments

Query all payments received across Payment Links and Unify Payment Links (UPL) in a single unified view.

All endpoints require Authorization: Bearer <agent-jwt>.


List received payments

List all payments received by the current user, from both Payment Links and UPL.

bash
curl https://walletapi.fluxapay.xyz/api/received-payments?limit=20&offset=0 \
  -H "Authorization: Bearer $JWT_TOKEN"

Query parameters

ParamTypeDefaultDescription
limitnumber20Max results (max 100)
offsetnumber0Pagination offset

Filter parameters

Use filters to locate specific payments — useful before initiating a refund.

ParamTypeDescription
payerAddressstringFilter by payer wallet address
sourceTypestringpayment_link or unify_payment_link
agentIdnumberFilter by Agent ID
txHashstringExact match on settlement tx hash
minAmountstringMinimum amount (atomic units)
maxAmountstringMaximum amount (atomic units)
startDatestringStart time (ISO 8601)
endDatestringEnd time (ISO 8601)

Filter examples

bash
# Find all UPL payments from a specific payer
curl "https://walletapi.fluxapay.xyz/api/received-payments?payerAddress=0xAAA...&sourceType=unify_payment_link" \
  -H "Authorization: Bearer $JWT_TOKEN"

# Look up by transaction hash
curl "https://walletapi.fluxapay.xyz/api/received-payments?txHash=0xTX222..." \
  -H "Authorization: Bearer $JWT_TOKEN"

# Filter by date range and minimum amount
curl "https://walletapi.fluxapay.xyz/api/received-payments?startDate=2026-04-01&endDate=2026-04-13&minAmount=1000000" \
  -H "Authorization: Bearer $JWT_TOKEN"

Response (200)

json
{
  "payments": [
    {
      "id": 1,
      "payerAddress": "0xPayerWalletAddress",
      "amount": "1000000",
      "currency": "USDC",
      "settlementStatus": "settled",
      "settlementTxHash": "0xabc123...",
      "sourceType": "payment_link",
      "description": "Premium API Access — 1 USDC",
      "paymentLinkId": "pl_abc123xyz456",
      "payerEmail": "payer@example.com",
      "createdAt": "2026-03-24T13:00:00.000Z"
    }
  ]
}

Response fields

FieldTypeDescription
idnumberPayment record ID
payerAddressstringPayer's wallet address
amountstringAmount in atomic units (1000000 = 1.0 USDC)
currencystringCurrency type
settlementStatusstringsettled, pending, or failed
settlementTxHashstring | nullOnchain transaction hash
sourceTypestringpayment_link or unify_payment_link
descriptionstring | nullDescription (from payment or link)
paymentLinkIdstring | nullAssociated Payment Link ID (pl_*); null for UPL
payerEmailstring | nullPayer's email (resolved via wallet address); null for external payers
createdAtstringPayment timestamp (ISO 8601)

Get received payment detail

Get details for a single received payment.

bash
curl https://walletapi.fluxapay.xyz/api/received-payments/1 \
  -H "Authorization: Bearer $JWT_TOKEN"

Response (200)

json
{
  "payment": {
    "id": 1,
    "payerAddress": "0xPayerWalletAddress",
    "amount": "1000000",
    "currency": "USDC",
    "settlementStatus": "settled",
    "settlementTxHash": "0xabc123...",
    "sourceType": "payment_link",
    "description": "Premium API Access — 1 USDC",
    "paymentLinkId": "pl_abc123xyz456",
    "payerEmail": "payer@example.com",
    "network": "base",
    "payTo": "0xRecipientAddress",
    "createdAt": "2026-03-24T13:00:00.000Z"
  }
}

Additional fields compared to the list endpoint:

FieldTypeDescription
networkstring | nullNetwork: base, base-sepolia
payTostring | nullRecipient wallet address

Error responses

StatusDescription
400Invalid payment ID
404Payment record not found or not authorized to view

Released under the MIT License.