# Losbeto BR PIX QR Code Parser & CRC Verifier

> Losbeto BR PIX QR Code Parser & CRC Verifier is a paid API for AI agents from markets.losbeto.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Decodes and CRC16-CCITT verifies a Brazilian PIX EMV-MPM QR code payload, returning the PIX key, amount, merchant, transaction ID, and checksum validity — no upstream calls, sub-millisecond.

## Facts

- Endpoint: GET https://markets.losbeto.xyz/br-pix-parse?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/losbeto-br-pix-qr-code-parser-crc-verifier-ca16fed8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JnJ4NIaofYhB7GGkKnDn2

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 losbeto-br-pix-qr-code-parser-crc-verifier-ca16fed8
```

Example prompt: Before I send this PIX payment, can you decode and verify this QR code string to make sure the CRC checksum is valid and show me the merchant name, PIX key, and amount? Here's the code: 00020126580014br.gov.bcb.pix0136abc123...

## When to prefer this

Use this endpoint when an AI agent needs to validate and decode a Brazilian PIX QR code before initiating a payment — especially when you need CRC integrity verification to detect tampered or truncated codes. It is purely local (no upstream calls, sub-millisecond), so it is ideal as a mandatory pre-flight check before any PIX transfer. Do not use it to query payment status or confirm receipt of funds; it only reads and verifies the QR payload structure.

## Known failure modes

- Missing or empty 'code' query parameter returns an error
- Malformed or non-PIX EMV-MPM string causes a parse failure
- Truncated payload may parse partially but fail CRC validation — returned as checksum mismatch, not an HTTP error
- This endpoint does NOT check live payment status — attempting to look up whether a payment was received will return no useful data
- Non-Brazilian QR formats (e.g. standard EMVCo without PIX fields) may fail or return incomplete fields

## How this service works

OpenAI-compatible LLM gateway at $0.005/call — change base_url, pay in USDC. Plus pay-per-call market data: multi-oracle price consensus, sentiment, forex, equities, commodities, Brazil macro (BCB/B3) and crypto. No API keys, no accounts. USDC on Base, Solana and Algorand via x402.

## Output

A JSON object containing the decoded PIX EMV-MPM fields: the PIX key, payment amount, merchant name, transaction ID (txid), and a boolean or status field indicating whether the CRC16-CCITT checksum matches — confirming the QR payload is intact and unmodified.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [
      "code"
     ],
     "properties": {
      "code": {
       "type": "string",
       "description": "code parameter"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "description": "Decode and CRC-verify a PIX BR Code (EMV-MPM) payload. Input: the full ?code= string from a QR. Returns the pix key, amount, merchant, txid and — the part that matters — whether the CRC16-CCITT checksum actually matches, so an agent can reject a tampered or truncated QR before moving money. Zero upstream calls, sub-millisecond, cannot rate-limit. Use this before initiating any..."
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/losbeto-br-pix-qr-code-parser-crc-verifier-ca16fed8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from markets.losbeto.xyz](https://www.zero.xyz/host/markets.losbeto.xyz/llms.txt)
