{"slug":"invoice-extract-jp-threads-cron-workers-dev-v1-invoice-extra-df21ce","title":"This endpoint extracts invoice registration numbers (T + 13 digits, with check-d","host":"invoice-extract-jp.threads-cron.workers.dev","method":"POST","resource":"https://invoice-extract-jp.threads-cron.workers.dev/v1/invoice/extract","category":"image","description":"This endpoint extracts invoice registration numbers (T + 13 digits, with check-digit validation), total, subtotal, consumption tax with 8%/10% breakdown, and issue/due dates (Reiwa era converted to ISO) from Japanese invoice or receipt text using deterministic rules. Input is plain text only (no ima","price_listed":0.005,"price_asked":0.005,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":563,"reported_calls_30d":3,"reported_payers_30d":2,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"text":"請求書\n発行日 令和8年10月22日\n登録番号 T7000012050002\n小計 ¥10,000\n消費税 ¥1,000\nご請求金額 ¥11,000\nお支払期限 2026/11/30"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"text":{"description":"Plain text of a Japanese invoice or receipt (OCR output is fine). Full-width characters are normalized.","maxLength":5000,"minLength":1,"type":"string"}},"required":["text"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"amounts":{"properties":{"subtotal":{"properties":{"raw":{"type":"string"},"value":{"description":"Amount in JPY (negative if marked with - or ▲)","type":"integer"}},"required":["value","raw"],"type":["object","null"]},"tax":{"properties":{"raw":{"type":"string"},"value":{"description":"Amount in JPY (negative if marked with - or ▲)","type":"integer"}},"required":["value","raw"],"type":["object","null"]},"taxBreakdown":{"items":{"properties":{"rate":{"enum":[8,10],"type":"integer"},"tax":{"properties":{"raw":{"type":"string"},"value":{"description":"Amount in JPY (negative if marked with - or ▲)","type":"integer"}},"required":["value","raw"],"type":["object","null"]},"taxableAmount":{"properties":{"raw":{"type":"string"},"value":{"description":"Amount in JPY (negative if marked with - or ▲)","type":"integer"}},"required":["value","raw"],"type":["object","null"]}},"required":["rate"],"type":"object"},"type":"array"},"total":{"properties":{"raw":{"type":"string"},"value":{"description":"Amount in JPY (negative if marked with - or ▲)","type":"integer"}},"required":["value","raw"],"type":["object","null"]}},"required":["total","subtotal","tax","taxBreakdown"],"type":"object"},"dates":{"properties":{"allDates":{"items":{"type":"string"},"type":"array"},"dueDate":{"properties":{"raw":{"type":"string"},"value":{"description":"ISO date YYYY-MM-DD","type":"string"}},"required":["value","raw"],"type":["object","null"]},"issueDate":{"properties":{"raw":{"type":"string"},"value":{"description":"ISO date YYYY-MM-DD","type":"string"}},"required":["value","raw"],"type":["object","null"]}},"required":["issueDate","dueDate","allDates"],"type":"object"},"registrationNumbers":{"items":{"properties":{"checkDigit":{"description":"Corporate-number check digit result; sole-proprietor numbers may show invalid","enum":["valid","invalid"],"type":"string"},"note":{"type":"string"},"value":{"description":"T + 13 digits","type":"string"}},"required":["value","checkDigit"],"type":"object"},"type":"array"},"warnings":{"items":{"type":"string"},"type":"array"}},"required":["registrationNumbers","amounts","dates","warnings"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":563,"error":null}],"description_full":"This endpoint extracts invoice registration numbers (T + 13 digits, with check-digit validation), total, subtotal, consumption tax with 8%/10% breakdown, and issue/due dates (Reiwa era converted to ISO) from Japanese invoice or receipt text using deterministic rules. Input is plain text only (no images or PDF). Registration numbers are checked by check digit only, not against the National Tax Agency registry. Malformed amounts are skipped and listed in warnings.","last_updated":"2026-10-23T01:19:16.298Z","schemes":["exact"]}