{"openapi": "3.1.0", "info": {"title": "シルギア 相続税・贈与税の速算表API", "version": "1.0.0", "description": "登録不要・無料の相続税・贈与税のAPI。相続税の速算表・基礎控除・法定相続分・端数処理・税額控除と加算の決まり、贈与税の速算表（特例税率・一般税率）と相続時精算課税の決まりを返します。相続税法・租税特別措置法・国税通則法の条文と国税庁の速算表から作成し、照合した日を data_version で返します。説明: https://api.shirugear.com/sozoku/ 。v1 の中では項目を足すことはあっても、名前や意味は変えません（知らない項目は無視してください）。", "termsOfService": "https://api.shirugear.com/terms/", "contact": {"name": "アナライズギア株式会社（シルギア）", "url": "https://shirugear.com/contact"}}, "servers": [{"url": "https://api.shirugear.com"}], "paths": {"/sozoku/v1/inheritance.json": {"get": {"summary": "相続税の速算表と決まり", "operationId": "getInheritance", "responses": {"200": {"description": "相続税", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Inheritance"}}}}, "400": {"description": "URLの形が違う", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "403": {"description": "日本国内以外から", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "404": {"description": "無いファイル", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "405": {"description": "GET/HEAD以外", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}}}, "/sozoku/v1/gift.json": {"get": {"summary": "贈与税の速算表（特例税率・一般税率）と相続時精算課税の決まり", "operationId": "getGift", "responses": {"200": {"description": "贈与税", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Gift"}}}}, "400": {"description": "URLの形が違う", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "403": {"description": "日本国内以外から", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "404": {"description": "無いファイル", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "405": {"description": "GET/HEAD以外", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}}}, "/sozoku/v1/meta.json": {"get": {"summary": "データの版・条文の版・出典", "operationId": "getMeta", "responses": {"200": {"description": "データの版", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Meta"}}}}, "400": {"description": "URLの形が違う", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "403": {"description": "日本国内以外から", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "404": {"description": "無いファイル", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "405": {"description": "GET/HEAD以外", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}}}}, "components": {"schemas": {"Bracket": {"type": "object", "properties": {"over": {"type": "integer", "description": "この金額を超え（円）"}, "upto": {"type": ["integer", "null"], "description": "この金額以下（円）。最後の区分は null"}, "rate": {"type": "number", "description": "税率（0.1 は10%）"}, "deduction": {"type": "integer", "description": "控除額（円）"}}, "required": ["over", "upto", "rate", "deduction"]}, "Inheritance": {"type": "object", "properties": {"name": {"type": "string"}, "applies_to": {"type": "string"}, "brackets": {"type": "array", "items": {"$ref": "#/components/schemas/Bracket"}, "minItems": 8, "maxItems": 8}, "basic_deduction": {"type": "object", "properties": {"base": {"type": "integer"}, "per_heir": {"type": "integer"}, "rule": {"type": "string"}, "adopted_limit": {"type": "object"}, "law": {"type": "string"}}, "required": ["base", "per_heir"]}, "legal_shares": {"type": "object"}, "steps": {"type": "array", "items": {"type": "string"}}, "rounding": {"type": "object"}, "adjustments": {"type": "object", "description": "配偶者の税額軽減・2割加算・未成年者控除・障害者控除・生命保険金の非課税・生前贈与加算"}, "not_included": {"type": "string"}, "data_version": {"type": "string"}}, "required": ["name", "brackets", "basic_deduction", "legal_shares", "steps", "rounding", "adjustments", "data_version"]}, "Gift": {"type": "object", "properties": {"name": {"type": "string"}, "calendar": {"type": "object", "properties": {"basic_deduction": {"type": "integer"}, "special": {"type": "object", "properties": {"who": {"type": "string"}, "brackets": {"type": "array", "items": {"$ref": "#/components/schemas/Bracket"}, "minItems": 8, "maxItems": 8}, "law": {"type": "string"}}, "required": ["brackets"]}, "general": {"type": "object", "properties": {"who": {"type": "string"}, "brackets": {"type": "array", "items": {"$ref": "#/components/schemas/Bracket"}, "minItems": 8, "maxItems": 8}, "law": {"type": "string"}}, "required": ["brackets"]}, "steps": {"type": "array", "items": {"type": "string"}}}, "required": ["basic_deduction", "special", "general"]}, "settlement": {"type": "object", "properties": {"name": {"type": "string"}, "who": {"type": "string"}, "basic_deduction": {"type": "integer"}, "basic_deduction_from": {"type": "string", "format": "date"}, "special_deduction": {"type": "integer"}, "rate": {"type": "number"}, "rule": {"type": "string"}, "law": {"type": "string"}}, "required": ["basic_deduction", "special_deduction", "rate"]}, "rounding": {"type": "object"}, "not_included": {"type": "string"}, "data_version": {"type": "string"}}, "required": ["name", "calendar", "settlement", "rounding", "data_version"]}, "Meta": {"type": "object", "properties": {"data_version": {"type": "string"}, "checked_at": {"type": "string"}, "files": {"type": "array", "items": {"type": "string"}}, "law": {"type": "object"}, "scope": {"type": "string"}, "sources": {"type": "array", "items": {"type": "object", "properties": {"label": {"type": "string"}, "url": {"type": "string"}}, "required": ["label", "url"]}}}, "required": ["data_version", "checked_at", "files", "law", "scope", "sources"]}, "Error": {"type": "object", "properties": {"error": {"type": "object", "properties": {"status": {"type": "integer"}, "code": {"type": "string", "enum": ["invalid_request", "not_found", "region_not_allowed", "method_not_allowed"]}, "message": {"type": "string"}}, "required": ["status", "code", "message"]}}, "required": ["error"]}}}}
