# XRP Ledger Payment Receipt Card Generator

> XRP Ledger Payment Receipt Card Generator is a paid API for AI agents from bruk-agent-api.fly.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-23).

Generates a verified payment receipt image (1200x675 PNG) for a confirmed XRP Ledger transaction, including delivered amount, sender, recipient, destination tag, ledger info, and a QR code linking to the public explorer.

## Facts

- Endpoint: GET https://bruk-agent-api.fly.dev/v1/receipt-card?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/xrp-ledger-payment-receipt-card-generator-d631f34f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gqBSLdGPxfq-ltxtrGzMM

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability xrp-ledger-payment-receipt-card-generator-d631f34f
```

Example prompt: Can you generate a payment receipt image for XRP transaction A1B2C3D4E5F6... (the full 64-character hash) on mainnet, and check that it delivered 100 XRP to rDestinationAddress123?

## When to prefer this

Choose this endpoint when you need a human-readable, shareable visual proof of a completed XRP Ledger payment — for example, to send a receipt to a customer, embed in a confirmation email, or display in a UI. It is preferable to raw transaction lookup endpoints when the output needs to be shown to a non-technical person. It also performs optional expectation validation (amount, currency, destination, tag, issuer), making it suitable for automated post-payment verification workflows where you want both a visual artifact and a sanity check in one call.

## Known failure modes

- Transaction hash not found on the specified network — returns an error, no charge
- Transaction exists but is not yet validated — returns not-found or unvalidated error, no charge
- Invalid 64-character hex transaction hash format — schema validation error
- Expectation checks fail (wrong amount, destination, currency, or tag) — error response indicating mismatch
- Network connectivity issues reaching XRPL nodes — service unavailable error
- Unsupported format parameter value — schema validation error

## How this service works

Verified payment receipt image (1200x675 PNG) for an XRP Ledger payment, drawn only from the validated ledger: delivered amount, sender, recipient, destination tag, ledger, close time, result, optional expectation checks, and a QR code to the public explorer. Only final outcomes are drawn; not-found or unvalidated transactions are not charged. Useful for showing a person proof that a payment arrived.

## Output

A 1200x675 PNG image (or JSON with base64-encoded image plus metadata) showing a verified payment receipt: delivered amount and currency, sender and recipient r-addresses, destination tag, ledger index, close time, transaction result code, optional expectation-check pass/fail indicators, and a QR code linking to the public XRPL explorer. Only validated, final transactions produce a receipt; unconfirmed or not-found transactions are not rendered and not charged.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "tx"
     ],
     "properties": {
      "tx": {
       "type": "string",
       "pattern": "^[0-9A-Fa-f]{64}$",
       "description": "64-character transaction hash."
      },
      "amount": {
       "type": "string",
       "description": "Expected delivered amount, decimal."
      },
      "format": {
       "enum": [
        "json",
        "png"
       ],
       "type": "string",
       "description": "json (default, base64 image plus data) or png."
      },
      "issuer": {
       "type": "string",
       "pattern": "^r[1-9A-HJ-NP-Za-km-z]{24,34}$",
       "description": "Expected token issuer r-address."
      },
      "network": {
       "enum": [
        "mainnet",
        "testnet"
       ],
       "type": "string",
       "description": "XRP Ledger network. Default mainnet."
      },
      "currency": {
       "type": "string",
       "description": "Expected currency, e.g. XRP or RLUSD."
      },
      "destination": {
       "type": "string",
       "pattern": "^r[1-9A-HJ-NP-Za-km-z]{24,34}$",
       "description": "Expected receiving r-address."
      },
      "destination_tag": {
       "type": "string",
       "pattern": "^[0-9]+$",
       "description": "Expected destination tag."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/xrp-ledger-payment-receipt-card-generator-d631f34f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bruk-agent-api.fly.dev](https://www.zero.xyz/host/bruk-agent-api.fly.dev/llms.txt)
