{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xdcai-tech/json-schema/xdcai-tech-get-x402-resource-response-schema.json",
  "title": "GetX402ResourceResponse",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/xdcai-tech-openapi-generated.yml#/components/schemas/GetX402ResourceResponse",
  "type": "object",
  "properties": {
    "402": {
      "type": "string",
      "description": "Payment Required challenge containing the payment requirements."
    },
    "accepts": {
      "type": "array",
      "description": "List of payment options offered by the service."
    },
    "accepts[].scheme": {
      "type": "string",
      "description": "Payment scheme, e.g., \"exact\"."
    },
    "accepts[].network": {
      "type": "string",
      "description": "Network identifier, e.g., \"xdc\" for v1 or \"eip155:50\" for v2."
    },
    "accepts[].maxAmountRequired": {
      "type": "string",
      "description": "Maximum amount required in base units (v1)."
    },
    "accepts[].amount": {
      "type": "string",
      "description": "Exact amount required in base units (v2)."
    },
    "accepts[].payTo": {
      "type": "string",
      "description": "Recipient address to receive the USDC payment."
    },
    "accepts[].asset": {
      "type": "string",
      "description": "Asset contract address (USDC)."
    },
    "accepts[].maxTimeoutSeconds": {
      "type": "integer",
      "description": "Maximum time the payment authorization is valid."
    },
    "accepts[].extra": {
      "type": "object",
      "description": "Additional metadata."
    },
    "accepts[].extra.name": {
      "type": "string",
      "description": "Asset name, e.g., \"USDC\"."
    },
    "accepts[].extra.version": {
      "type": "string",
      "description": "Asset version."
    },
    "accepts[].extra.assetTransferMethod": {
      "type": "string",
      "description": "Transfer method, e.g., \"eip3009\" (present in v2 entry)."
    },
    "200": {
      "type": "string",
      "description": "Successful response with the requested data after payment settlement."
    },
    "X-PAYMENT-RESPONSE": {
      "type": "string",
      "description": "Receipt header containing settlement confirmation (v1)."
    },
    "PAYMENT-RESPONSE": {
      "type": "string",
      "description": "Receipt header containing settlement confirmation (v2)."
    }
  }
}