{
  "serviceId": "kr-figure-check-v1",
  "displayName": "KR Figure Check",
  "description": "Do the numbers in a Korean finance text match the official record? Send Korean text; get each checkable number marked MATCH or MISMATCH with the official value, date and source: % vs %p, 조/억/만 units, BoK base rate and KTB yields (ECOS), KRW exchange rates (KEXIM), listed-company revenue and profit (DART). Numbers with no source stay unverified. POST /v1/check.",
  "category": "finance",
  "resourceUrl": "https://test.agent.pocket.network/v1/kr-figure-check-v1",
  "priceUsd": "0.005000",
  "priceVersion": 1,
  "rails": [
    {
      "id": "base",
      "network": "eip155:84532",
      "chainId": 84532,
      "tokenAddress": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
      "tokenDecimals": 6,
      "payToAddress": "0xF732ea490c5766071785a2310523f7fA2CEbB829"
    }
  ],
  "paymentNetworks": [
    "eip155:84532"
  ],
  "paymentProtocols": [
    "x402"
  ],
  "protocols": [
    "rest"
  ],
  "inputSchema": {
    "type": "object",
    "description": "The body of POST /v1/check.",
    "required": [
      "text"
    ],
    "properties": {
      "text": {
        "type": "string",
        "maxLength": 20000,
        "description": "The Korean report or answer to check."
      },
      "as_of": {
        "type": "string",
        "format": "date",
        "description": "As-of date for rates and exchange rates."
      },
      "corp": {
        "type": "string",
        "description": "Listed company name, if the text does not name it."
      },
      "year": {
        "type": "integer",
        "description": "Fiscal year, if the text does not give it."
      }
    }
  },
  "outputSchema": {
    "type": "object",
    "description": "A kr-figure-check/v1 object: verdict, counts, and each claim with its type, the text it came from, the claimed and official values, the official date, the tolerance, status and source. DART claims carry both the consolidated (CFS) and separate (OFS) values. Properties are pinned from live paid responses; nothing is required, because every route's 2xx response is validated against this one schema.",
    "properties": {
      "schema": {
        "type": "string"
      },
      "service": {
        "type": "string"
      },
      "version": {
        "type": "string"
      },
      "verdict": {
        "type": "string"
      },
      "counts": {
        "type": "object",
        "properties": {
          "MISMATCH": {
            "type": "number"
          }
        }
      },
      "claims": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "type": {
              "type": "string"
            },
            "corp": {
              "type": "string"
            },
            "corp_code": {
              "type": "string"
            },
            "year": {
              "type": "string"
            },
            "account": {
              "type": "string"
            },
            "text": {
              "type": "string"
            },
            "claimed": {
              "type": "number"
            },
            "official": {
              "type": "object",
              "properties": {
                "CFS": {
                  "type": "number"
                },
                "OFS": {
                  "type": "number"
                }
              }
            },
            "basis_in_text": {
              "type": "null"
            },
            "status": {
              "type": "string"
            },
            "message": {
              "type": "null"
            },
            "tolerance_won": {
              "type": "number"
            },
            "source": {
              "type": "string"
            }
          }
        }
      },
      "amounts_normalised": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "text": {
              "type": "string"
            },
            "won": {
              "type": "number"
            }
          }
        }
      },
      "as_of": {
        "type": "null"
      },
      "scope": {
        "type": "string"
      },
      "generated_at": {
        "type": "string"
      }
    }
  },
  "methods": {
    "GET /v1/health": "read",
    "GET /v1/version": "read",
    "POST /v1/check": "read"
  },
  "example": {
    "method": "POST",
    "path": "/v1/check",
    "request": {
      "text": "삼성전자의 2024년 분기 매출은 67조 원으로 전년 대비 3% 증가했다."
    },
    "response": {
      "portal": {
        "provenance": "third-party-supplier",
        "serviceId": "kr-figure-check-v1",
        "schemaCheck": "unchecked"
      },
      "data": {
        "schema": "kr-figure-check/v1",
        "service": "kr-figure-check-v1",
        "version": "0.1.0",
        "verdict": "MISMATCH",
        "counts": {
          "MISMATCH": 1
        },
        "claims": [
          {
            "type": "DART",
            "corp": "삼성전자",
            "corp_code": "00126380",
            "year": "2024",
            "account": "매출액",
            "text": "67조 원",
            "claimed": 67000000000000,
            "official": {
              "CFS": 300870903000000,
              "OFS": 209052241000000
            },
            "basis_in_text": null,
            "status": "MISMATCH",
            "message": null,
            "tolerance_won": 500000000000,
            "source": "OpenDART fnlttSinglAcnt 2024 annual report (11011)"
          }
        ],
        "amounts_normalised": [
          {
            "text": "67조 원",
            "won": 67000000000000
          }
        ],
        "as_of": null,
        "scope": "checks percent vs %p, KRW units, BoK rates and KTB yields (ECOS), KRW FX (KEXIM) and DART annual key accounts; other numbers are left unverified",
        "generated_at": "2026-10-14T09:12:44+00:00"
      }
    },
    "capturedAt": "2026-10-14T09:12:40Z"
  },
  "firstParty": true,
  "networks": [
    "eip155:84532"
  ],
  "serving": true,
  "page": "https://test.agent.pocket.network/services/kr-figure-check-v1",
  "descriptor": "https://test.agent.pocket.network/services/kr-figure-check-v1/descriptor.json"
}