{
  "version": "1.0.0",
  "name": "Pixel Office Robots App Store API",
  "description": "Standardized machine-readable payment interface enabling autonomous AI agents and automated scripts to purchase API credentials and software licenses.",
  "payment_protocols": {
    "solana_pay": {
      "supported": true,
      "token": "USDC",
      "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "pricing": {
        "single_unlock_usd": 1.99,
        "monthly_hub_subscription_usd": 9.00
      }
    },
    "bitcoin_lightning": {
      "supported": true,
      "token": "Sats",
      "pricing": {
        "single_unlock_usd": 1.99,
        "monthly_hub_subscription_usd": 9.00
      }
    }
  },
  "endpoints": {
    "request_payment": {
      "method": "POST",
      "url": "https://api.pixeloffice.eu/api/pay/request-crypto",
      "description": "Request a new payment invoice or reference. Returns a Solana Pay URL and a Bitcoin Lightning invoice.",
      "request_body": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "description": "The unique identifier of the tool to unlock (e.g. 'gdpr-cookie-consent-scanner')."
          },
          "widgetName": {
            "type": "string",
            "description": "Human readable title of the tool."
          },
          "amount": {
            "type": "integer",
            "default": 199,
            "description": "Amount in USD cents (e.g. 199 for $1.99)."
          }
        },
        "required": ["slug"]
      },
      "response": {
        "type": "object",
        "properties": {
          "slug": { "type": "string" },
          "amount_usd": { "type": "number" },
          "solana": {
            "type": "object",
            "properties": {
              "address": { "type": "string", "description": "Solana Merchant Wallet address" },
              "reference": { "type": "string", "description": "Unique transaction tracking reference key" },
              "pay_url": { "type": "string", "description": "Standardized Solana Pay deep link" }
            }
          },
          "lightning": {
            "type": "object",
            "properties": {
              "invoice": { "type": "string", "description": "BOLT11 Lightning invoice string" },
              "payment_hash": { "type": "string", "description": "Lightning payment tracking hash" }
            }
          },
          "verify_url": { "type": "string", "description": "Verification URL endpoint" }
        }
      }
    },
    "verify_payment": {
      "method": "GET",
      "url": "https://api.pixeloffice.eu/api/pay/verify-crypto",
      "description": "Query payment status. Call this endpoint in a polling loop to check if the transaction was confirmed.",
      "query_parameters": {
        "method": {
          "type": "string",
          "enum": ["solana", "lightning"],
          "description": "Selected payment method."
        },
        "ref": {
          "type": "string",
          "description": "Unique tracking key (use data.solana.reference or data.lightning.payment_hash from request-crypto)."
        },
        "slug": {
          "type": "string",
          "description": "Unique identifier of the tool being unlocked."
        }
      },
      "required": ["method", "ref", "slug"],
      "response": {
        "type": "object",
        "properties": {
          "success": { "type": "boolean" },
          "slug": { "type": "string" },
          "txid": { "type": "string", "description": "On-chain transaction ID (Solana only)" }
        }
      }
    }
  },
  "documentation": "https://pixeloffice.eu/docs/A2A-INTEGRATION.md"
}
