diff --git a/.env b/.env
index 3b03878..d54b931 100644
--- a/.env
+++ b/.env
@@ -3,3 +3,13 @@ DB_PORT=55432
DB_NAME=njts_acct
DB_USER=njts_app
DB_PASSWORD=njts_app2025
+
+# e-Gov 電子申請 API v2
+# EGOV_ENV=sandbox → 検証環境 (https://account2.sbx.e-gov.go.jp)
+# EGOV_ENV=production または未設定 → 本番環境
+EGOV_ENV=sandbox
+
+# 検証環境用APIキー
+EGOV_SOFTWARE_ID=K26iIqTxFxvvXjLj
+EGOV_API_KEY=3wRp2qmJQRYKdUrBxSGPB8U4O4dH0sEu
+EGOV_REDIRECT_URI=http://192.168.0.61:18000/egov.html
diff --git a/_pw_test.py b/_pw_test.py
new file mode 100644
index 0000000..14bcbdb
--- /dev/null
+++ b/_pw_test.py
@@ -0,0 +1,7 @@
+import subprocess, sys
+result = subprocess.run(
+ ["python", "-m", "playwright", "--version"],
+ capture_output=True, text=True
+)
+print("playwright version:", result.stdout.strip())
+print("stderr:", result.stderr.strip()[:200] if result.stderr else "none")
diff --git a/backend/app/modules/egov/__init__.py b/backend/app/modules/egov/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/backend/app/modules/egov/egov_api.py b/backend/app/modules/egov/egov_api.py
new file mode 100644
index 0000000..4344875
--- /dev/null
+++ b/backend/app/modules/egov/egov_api.py
@@ -0,0 +1,235 @@
+"""
+e-Gov 電子申請 API v2 クライアント
+OAuth2 + PKCE フローによる認証と電子送達ファイルのダウンロード
+"""
+import hashlib
+import base64
+import secrets
+import os
+import json
+import time
+from pathlib import Path
+from typing import Optional
+
+import httpx
+
+# ── エンドポイント定数 ─────────────────────────────────────────
+# EGOV_ENV=sandbox で検証環境、省略または production で本番環境を使用
+_ENV = os.environ.get("EGOV_ENV", "production").lower()
+
+if _ENV == "sandbox":
+ AUTH_BASE = "https://account2.sbx.e-gov.go.jp/auth"
+ API_BASE = "https://api2.sbx.e-gov.go.jp/shinsei/v2"
+else:
+ AUTH_BASE = "https://account.e-gov.go.jp/auth"
+ API_BASE = "https://api.e-gov.go.jp/shinsei/v2"
+
+AUTH_URL = f"{AUTH_BASE}/auth"
+TOKEN_URL = f"{AUTH_BASE}/token"
+LOGOUT_URL = f"{AUTH_BASE}/logout"
+
+EGOV_DATA_DIR = Path("/app/egov_data")
+TOKENS_PATH = EGOV_DATA_DIR / "tokens.json"
+CONFIG_PATH = EGOV_DATA_DIR / "api_config.json"
+
+
+# ── 資格情報 ──────────────────────────────────────────────────
+
+def load_api_config() -> dict:
+ """API設定を config ファイルから読み込む(環境変数でも上書き可)"""
+ cfg = {}
+ if CONFIG_PATH.exists():
+ try:
+ with open(CONFIG_PATH) as f:
+ cfg = json.load(f)
+ except Exception:
+ pass
+ # 環境変数が優先
+ client_id = os.environ.get("EGOV_SOFTWARE_ID") or cfg.get("software_id", "")
+ client_secret = os.environ.get("EGOV_API_KEY") or cfg.get("api_key", "")
+ redirect_uri = os.environ.get("EGOV_REDIRECT_URI") or cfg.get("redirect_uri",
+ "http://192.168.0.61:18000/egov.html")
+ return {
+ "client_id": client_id,
+ "client_secret": client_secret,
+ "redirect_uri": redirect_uri,
+ }
+
+
+def save_api_config(software_id: str, api_key: str,
+ redirect_uri: str = "http://192.168.0.61:18000/egov.html"):
+ """API設定をファイルに保存"""
+ EGOV_DATA_DIR.mkdir(parents=True, exist_ok=True)
+ with open(CONFIG_PATH, "w") as f:
+ json.dump({"software_id": software_id,
+ "api_key": api_key,
+ "redirect_uri": redirect_uri}, f)
+
+
+# ── トークン永続化 ────────────────────────────────────────────
+
+def load_tokens() -> dict:
+ if TOKENS_PATH.exists():
+ try:
+ with open(TOKENS_PATH) as f:
+ return json.load(f)
+ except Exception:
+ pass
+ return {}
+
+
+def save_tokens(tokens: dict):
+ EGOV_DATA_DIR.mkdir(parents=True, exist_ok=True)
+ with open(TOKENS_PATH, "w") as f:
+ json.dump(tokens, f)
+
+
+def delete_tokens():
+ if TOKENS_PATH.exists():
+ TOKENS_PATH.unlink()
+
+
+# ── PKCE ─────────────────────────────────────────────────────
+
+def generate_pkce() -> tuple[str, str]:
+ """code_verifier と code_challenge (S256) を生成"""
+ verifier = secrets.token_urlsafe(48) # 64文字 (43-128の範囲内)
+ digest = hashlib.sha256(verifier.encode()).digest()
+ challenge = base64.urlsafe_b64encode(digest).rstrip(b"=").decode()
+ return verifier, challenge
+
+
+# ── OAuth2 フロー ─────────────────────────────────────────────
+
+def build_auth_url(client_id: str, redirect_uri: str,
+ challenge: str, state: str) -> str:
+ """OAuth2 認可URL を生成"""
+ from urllib.parse import urlencode, quote
+ params = {
+ "client_id": client_id,
+ "response_type": "code",
+ "scope": "openid offline_access",
+ "redirect_uri": redirect_uri,
+ "state": state,
+ "code_challenge": challenge,
+ "code_challenge_method": "S256",
+ }
+ # quote_via=quote を使うことでスペースを + ではなく %20 にエンコードする
+ return f"{AUTH_URL}?" + urlencode(params, quote_via=quote)
+
+
+async def exchange_code(code: str, client_id: str, client_secret: str,
+ redirect_uri: str, verifier: str) -> dict:
+ """認可コード → アクセストークン・リフレッシュトークン取得"""
+ cred = base64.b64encode(f"{client_id}:{client_secret}".encode()).decode()
+ async with httpx.AsyncClient() as client:
+ resp = await client.post(
+ TOKEN_URL,
+ headers={
+ "Content-Type": "application/x-www-form-urlencoded",
+ "Authorization": f"Basic {cred}",
+ },
+ data={
+ "grant_type": "authorization_code",
+ "code": code,
+ "redirect_uri": redirect_uri,
+ "code_verifier": verifier,
+ },
+ timeout=30,
+ )
+ resp.raise_for_status()
+ return resp.json()
+
+
+async def refresh_tokens_request(refresh_token: str, client_id: str,
+ client_secret: str) -> dict:
+ """リフレッシュトークンでアクセストークン再取得"""
+ cred = base64.b64encode(f"{client_id}:{client_secret}".encode()).decode()
+ async with httpx.AsyncClient() as client:
+ resp = await client.post(
+ TOKEN_URL,
+ headers={
+ "Content-Type": "application/x-www-form-urlencoded",
+ "Authorization": f"Basic {cred}",
+ },
+ data={
+ "grant_type": "refresh_token",
+ "refresh_token": refresh_token,
+ },
+ timeout=30,
+ )
+ resp.raise_for_status()
+ return resp.json()
+
+
+async def do_logout(refresh_token: str, client_id: str, client_secret: str):
+ """ログアウト(トークン無効化)"""
+ cred = base64.b64encode(f"{client_id}:{client_secret}".encode()).decode()
+ async with httpx.AsyncClient() as client:
+ try:
+ await client.post(
+ LOGOUT_URL,
+ headers={
+ "Content-Type": "application/x-www-form-urlencoded",
+ "Authorization": f"Basic {cred}",
+ },
+ data={"refresh_token": refresh_token},
+ timeout=15,
+ )
+ except Exception:
+ pass
+
+
+# ── 電子送達 API ──────────────────────────────────────────────
+
+async def get_post_list(access_token: str, date_from: str, date_to: str,
+ limit: int = 50) -> dict:
+ """
+ 電子送達一覧取得
+ GET /post/lists?date_from=YYYY-MM-DD&date_to=YYYY-MM-DD&limit=N&offset=1
+ """
+ async with httpx.AsyncClient() as client:
+ resp = await client.get(
+ f"{API_BASE}/post/lists",
+ headers={"Authorization": f"Bearer {access_token}"},
+ params={"date_from": date_from, "date_to": date_to,
+ "limit": limit, "offset": 1},
+ timeout=30,
+ )
+ resp.raise_for_status()
+ return resp.json()
+
+
+async def get_post_file(access_token: str, post_id: str) -> dict:
+ """
+ 電子送達取得(通知文書ファイルを base64 で返す)
+ GET /post/{post_id}
+ Returns: {notice_data_name, file_data (base64), file_name_list}
+ """
+ async with httpx.AsyncClient() as client:
+ resp = await client.get(
+ f"{API_BASE}/post/{post_id}",
+ headers={"Authorization": f"Bearer {access_token}"},
+ timeout=60,
+ )
+ resp.raise_for_status()
+ return resp.json()
+
+
+async def mark_post_done(access_token: str, post_id: str) -> dict:
+ """
+ 電子送達取得完了登録
+ POST /post {"post_id": "..."}
+ """
+ async with httpx.AsyncClient() as client:
+ resp = await client.post(
+ f"{API_BASE}/post",
+ headers={
+ "Authorization": f"Bearer {access_token}",
+ "Content-Type": "application/json",
+ },
+ json={"post_id": post_id},
+ timeout=30,
+ )
+ resp.raise_for_status()
+ return resp.json()
diff --git a/backend/app/modules/egov/router.py b/backend/app/modules/egov/router.py
new file mode 100644
index 0000000..ae467b7
--- /dev/null
+++ b/backend/app/modules/egov/router.py
@@ -0,0 +1,372 @@
+import base64
+import secrets
+import time
+from datetime import datetime, timedelta
+from pathlib import Path
+
+from fastapi import APIRouter, HTTPException, BackgroundTasks
+from fastapi.responses import FileResponse
+from pydantic import BaseModel
+
+from app.modules.egov.state import state, EGovStatus
+from app.modules.egov.scraper import run_login, run_download
+import app.modules.egov.egov_api as egov_api
+
+router = APIRouter(prefix="/egov", tags=["e-Gov"])
+
+
+class LoginRequest(BaseModel):
+ user_id: str
+ password: str
+
+
+class MfaRequest(BaseModel):
+ mfa_code: str
+
+
+class CallbackRequest(BaseModel):
+ code: str
+ state: str
+
+
+class ConfigRequest(BaseModel):
+ software_id: str
+ api_key: str
+ redirect_uri: str = "http://192.168.0.61:18000/egov.html"
+
+
+@router.get("/status")
+def get_status():
+ import os
+ return {
+ "status": state.status,
+ "message": state.message,
+ "screenshot": state.screenshot_b64,
+ "last_download": state.last_download,
+ "token_valid": state.is_token_valid(),
+ "environment": os.environ.get("EGOV_ENV", "production"),
+ }
+
+
+@router.post("/login-start")
+async def login_start(req: LoginRequest, background_tasks: BackgroundTasks):
+ if state.status in (EGovStatus.STARTING, EGovStatus.WAITING_MFA):
+ raise HTTPException(status_code=409, detail="ログイン処理が既に実行中です")
+
+ await state.close_browser()
+ state.reset()
+ background_tasks.add_task(run_login, req.user_id, req.password)
+ return {"message": "ログイン処理を開始しました"}
+
+
+@router.post("/login-mfa")
+async def login_mfa(req: MfaRequest):
+ if state.status != EGovStatus.WAITING_MFA:
+ raise HTTPException(status_code=409, detail="MFA 入力待ち状態ではありません")
+ if not req.mfa_code.isdigit() or len(req.mfa_code) != 6:
+ raise HTTPException(status_code=400, detail="認証コードは 6 桁の数字です")
+
+ state.mfa_code = req.mfa_code
+ state.mfa_event.set()
+ return {"message": "認証コードを送信しました"}
+
+
+@router.post("/logout")
+async def logout():
+ # API トークンがあればサーバー側でも無効化
+ if state.refresh_token:
+ try:
+ cfg = egov_api.load_api_config()
+ await egov_api.do_logout(
+ state.refresh_token,
+ cfg["client_id"],
+ cfg["client_secret"],
+ )
+ except Exception:
+ pass
+ egov_api.delete_tokens()
+ await state.close_browser()
+ state.reset()
+ cookies = Path("/app/egov_data/cookies.json")
+ if cookies.exists():
+ cookies.unlink()
+ return {"message": "ログアウトしました"}
+
+
+@router.post("/download-start")
+async def download_start(background_tasks: BackgroundTasks):
+ if state.status == EGovStatus.DOWNLOADING:
+ raise HTTPException(status_code=409, detail="ダウンロードが既に実行中です")
+
+ # API トークンが有効なら API 方式で実行
+ if state.is_token_valid() or state.refresh_token:
+ background_tasks.add_task(_api_download)
+ return {"message": "ダウンロードを開始しました (API 方式)"}
+
+ # 保存済みトークンを確認
+ saved = egov_api.load_tokens()
+ if saved.get("access_token"):
+ state.set_tokens(saved)
+ if state.is_token_valid() or saved.get("refresh_token"):
+ state.refresh_token = saved.get("refresh_token")
+ background_tasks.add_task(_api_download)
+ return {"message": "ダウンロードを開始しました (API 方式・保存トークン)"}
+
+ # Playwright セッションがあるなら旧方式
+ if state.status == EGovStatus.LOGGED_IN and state._page is not None:
+ background_tasks.add_task(run_download)
+ return {"message": "ダウンロードを開始しました (Playwright 方式)"}
+
+ raise HTTPException(
+ status_code=401,
+ detail="認証が必要です。/egov/auth-url でGビズID認証を行ってください。"
+ )
+
+
+async def _api_download():
+ """e-Gov API v2 を使って電子送達ファイルをダウンロード"""
+ state.status = EGovStatus.DOWNLOADING
+ state.message = "e-Gov API で電子送達を確認中..."
+ try:
+ cfg = egov_api.load_api_config()
+ if not cfg["client_id"] or not cfg["client_secret"]:
+ raise RuntimeError("e-Gov API の資格情報が設定されていません。/egov/config で設定してください。")
+
+ # トークン更新(期限切れの場合)
+ if not state.is_token_valid() and state.refresh_token:
+ state.message = "アクセストークンを更新中..."
+ token_resp = await egov_api.refresh_tokens_request(
+ state.refresh_token,
+ cfg["client_id"],
+ cfg["client_secret"],
+ )
+ state.set_tokens(token_resp)
+ egov_api.save_tokens({
+ "access_token": state.access_token,
+ "refresh_token": state.refresh_token,
+ "expires_at": state.token_expires_at,
+ })
+
+ # 電子送達一覧を取得(直近 90 日間)
+ date_to = datetime.now().strftime("%Y-%m-%d")
+ date_from = (datetime.now() - timedelta(days=90)).strftime("%Y-%m-%d")
+ state.message = f"電子送達一覧を取得中 ({date_from} ~ {date_to})..."
+
+ list_resp = await egov_api.get_post_list(state.access_token, date_from, date_to)
+ # OpenAPI仕様: レスポンスは results.post_list に配列
+ results = list_resp.get("results", {})
+ post_list = results.get("post_list", [])
+
+ # post_list は電子送達ヘッダー一覧。各要素に notice_data_list があり
+ # そこに個々の post_id が含まれる
+ # フラットなリストに変換
+ posts = []
+ for item in post_list:
+ for nd in item.get("notice_data_list", []):
+ posts.append({
+ "post_id": nd.get("post_id", ""),
+ "notice_data_name": nd.get("notice_data_name", ""),
+ "notice_issue_date": nd.get("notice_issue_date", ""),
+ "download_expired_date": nd.get("download_expired_date", ""),
+ "download_date": nd.get("download_date"),
+ "title": item.get("title", ""),
+ "issuer_organization": item.get("issuer_organization", ""),
+ })
+
+ if not posts:
+ state.status = EGovStatus.LOGGED_IN
+ state.message = f"電子送達はありません ({date_from} ~ {date_to})"
+ return
+
+ # 未取得のもの(download_date が空)を優先
+ pending = [p for p in posts if not p.get("download_date")]
+ targets = pending if pending else posts
+
+ egov_data = Path("/app/egov_data")
+ egov_data.mkdir(parents=True, exist_ok=True)
+
+ downloaded = []
+ for post in targets:
+ post_id = post.get("post_id", "")
+ if not post_id:
+ continue
+
+ state.message = f"通知ファイルを取得中 (post_id={post_id})..."
+ file_resp = await egov_api.get_post_file(state.access_token, post_id)
+
+ # OpenAPI仕様: レスポンスは results.file_data / results.notice_data_name
+ file_results = file_resp.get("results", {})
+ file_data_b64 = file_results.get("file_data", "")
+ file_name_list = file_results.get("file_name_list", [])
+ first_name = file_name_list[0].get("file_name") if file_name_list else None
+ filename = (file_results.get("notice_data_name")
+ or first_name
+ or f"egov_{post_id}.zip")
+
+ if not file_data_b64:
+ continue
+
+ import base64 as b64mod
+ file_bytes = b64mod.b64decode(file_data_b64)
+ save_path = egov_data / filename
+ save_path.write_bytes(file_bytes)
+
+ # 取得完了登録
+ try:
+ await egov_api.mark_post_done(state.access_token, post_id)
+ except Exception:
+ pass
+
+ downloaded.append({"filename": filename, "path": str(save_path),
+ "size": len(file_bytes), "post_id": post_id})
+ break # 1件ずつ
+
+ if downloaded:
+ state.last_download = downloaded[0]
+ state.status = EGovStatus.LOGGED_IN
+ state.message = (f"ダウンロード完了: {downloaded[0]['filename']} "
+ f"({downloaded[0]['size']:,} bytes) "
+ f"/ 全 {len(posts)} 件")
+ else:
+ state.status = EGovStatus.LOGGED_IN
+ state.message = "ダウンロード可能なファイルがありませんでした"
+
+ except Exception as e:
+ state.status = EGovStatus.ERROR
+ state.message = f"API ダウンロードエラー: {e}"
+
+
+# ── OAuth2 / e-Gov API エンドポイント ──────────────────────────
+
+@router.post("/config")
+async def save_config(req: ConfigRequest):
+ """e-Gov API 資格情報を保存"""
+ egov_api.save_api_config(req.software_id, req.api_key, req.redirect_uri)
+ return {"message": "設定を保存しました"}
+
+
+@router.get("/auth-url")
+async def get_auth_url():
+ """OAuth2 + PKCE 認可 URL を生成して返す"""
+ cfg = egov_api.load_api_config()
+ if not cfg["client_id"] or not cfg["client_secret"]:
+ raise HTTPException(
+ status_code=400,
+ detail="e-Gov API の資格情報が未設定です。先に /egov/config を呼び出してください。"
+ )
+
+ verifier, challenge = egov_api.generate_pkce()
+ oauth_state = secrets.token_urlsafe(16)
+
+ state._pkce_verifier = verifier
+ state._oauth_state = oauth_state
+
+ auth_url = egov_api.build_auth_url(
+ cfg["client_id"],
+ cfg["redirect_uri"],
+ challenge,
+ oauth_state,
+ )
+ return {"auth_url": auth_url, "state": oauth_state}
+
+
+@router.post("/callback")
+async def oauth_callback(req: CallbackRequest):
+ """
+ e-Gov 認可コードを受け取りアクセストークンへ交換する。
+ egov.html の JavaScript から呼び出される。
+ """
+ if not state._pkce_verifier:
+ raise HTTPException(status_code=400, detail="PKCE セッションが見つかりません。再度 /egov/auth-url から開始してください。")
+
+ if req.state != state._oauth_state:
+ raise HTTPException(status_code=400, detail="state パラメータが一致しません(CSRF防止)")
+
+ cfg = egov_api.load_api_config()
+ try:
+ token_resp = await egov_api.exchange_code(
+ req.code,
+ cfg["client_id"],
+ cfg["client_secret"],
+ cfg["redirect_uri"],
+ state._pkce_verifier,
+ )
+ except Exception as e:
+ raise HTTPException(status_code=502, detail=f"トークン取得失敗: {e}")
+
+ state.set_tokens(token_resp)
+ state._pkce_verifier = None
+ state._oauth_state = None
+ state.status = EGovStatus.LOGGED_IN
+ state.message = "e-Gov API 認証完了"
+
+ # ファイルに永続化
+ egov_api.save_tokens({
+ "access_token": state.access_token,
+ "refresh_token": state.refresh_token,
+ "expires_at": state.token_expires_at,
+ })
+
+ return {"message": "認証完了しました", "status": "logged_in"}
+
+
+@router.get("/downloads/latest")
+async def download_latest():
+ """最後にダウンロードしたファイルを返す"""
+ if not state.last_download:
+ raise HTTPException(status_code=404, detail="ダウンロード済みファイルがありません")
+ from pathlib import Path
+ path = Path(state.last_download["path"])
+ if not path.exists():
+ raise HTTPException(status_code=404, detail="ファイルが見つかりません")
+ return FileResponse(
+ path=str(path),
+ filename=state.last_download["filename"],
+ media_type="application/octet-stream",
+ )
+
+
+@router.get("/debug-page")
+async def debug_page():
+ """現在のブラウザページの詳細診断情報(デバッグ用)"""
+ if state._page is None:
+ return {"error": "ブラウザセッションなし", "status": state.status}
+ try:
+ page = state._page
+ diag = await page.evaluate("""
+ () => {
+ const b = document.body ? document.body.innerText : '(empty)';
+ return {
+ url: location.href,
+ title: document.title,
+ hasLogout: b.includes('ログアウト'),
+ hasMyPage: b.includes('マイページ'),
+ hasDelivery: b.includes('電子送達'),
+ bodyLen: b.length,
+ bodyPreview: b.slice(0, 600).replace(/\\n+/g, ' | '),
+ links: Array.from(document.querySelectorAll('a')).map(a => ({
+ text: a.textContent.trim().slice(0, 50),
+ href: a.href,
+ imgAlts: Array.from(a.querySelectorAll('img')).map(img => img.alt).join(','),
+ })).slice(0, 30),
+ buttons: Array.from(document.querySelectorAll('button, input[type="submit"], input[type="button"], [role="button"]')).map(el => ({
+ tag: el.tagName,
+ text: (el.textContent || el.value || '').trim().slice(0, 50),
+ id: el.id,
+ cls: el.className.slice(0, 60),
+ })).slice(0, 20),
+ imgs: Array.from(document.querySelectorAll('img[alt]')).map(img => ({
+ alt: img.alt,
+ src: img.src.slice(0, 80),
+ })).slice(0, 20),
+ inputs: Array.from(document.querySelectorAll('input, select')).map(el => ({
+ type: el.type,
+ name: el.name,
+ id: el.id,
+ })).slice(0, 20),
+ };
+ }
+ """)
+ return {"browser_state": state.status, **diag}
+ except Exception as e:
+ return {"error": str(e), "status": state.status}
diff --git a/backend/app/modules/egov/scraper.py b/backend/app/modules/egov/scraper.py
new file mode 100644
index 0000000..597c51b
--- /dev/null
+++ b/backend/app/modules/egov/scraper.py
@@ -0,0 +1,517 @@
+"""
+e-Gov ログイン Playwright スクレイパー
+GビズID プレミアム (TOTP) によるログインを自動化します。
+"""
+import asyncio
+import json
+import base64
+from pathlib import Path
+
+from app.modules.egov.state import state, EGovStatus
+
+# ── 定数 ─────────────────────────────────────────────────────
+EGOV_TOP_URL = "https://shinsei.e-gov.go.jp/"
+EGOV_DATA_DIR = Path("/app/egov_data")
+COOKIES_PATH = EGOV_DATA_DIR / "cookies.json"
+
+# e-Gov ログインリンク
+SEL_LOGIN_LINK = 'a:has-text("ログイン"), button:has-text("ログイン")'
+SEL_GBIZID_BTN = 'a:has-text("GビズID"), button:has-text("GビズID"), [alt*="GビズID"]'
+
+# GビズID 認証フォーム(Keycloak 標準 DOM)
+SEL_USERNAME = '#username, input[name="username"]'
+SEL_PASSWORD = '#password, input[name="password"]'
+SEL_SUBMIT = 'input[type="submit"], button[type="submit"]'
+
+# TOTP フォーム(Keycloak 標準 DOM)
+SEL_OTP = '#otp, input[name="otp"], #totp, input[name="totp"]'
+
+# ログイン済み判定キーワード(「ログアウト」ボタンは認証済みページにのみ存在)
+LOGGEDIN_MARKERS = ["ログアウト", "logout"]
+
+# MFA 待機タイムアウト(秒)
+MFA_TIMEOUT = 300
+
+
+# ── メイン処理 ───────────────────────────────────────────────
+
+async def run_login(user_id: str, password: str):
+ """e-Gov ログイン処理(FastAPI BackgroundTask として実行)"""
+ try:
+ from playwright.async_api import async_playwright # 遅延import
+
+ # 既存ブラウザセッションを閉じてからリスタート
+ await state.close_browser()
+
+ state.status = EGovStatus.STARTING
+ state.message = "ブラウザを起動中..."
+ EGOV_DATA_DIR.mkdir(parents=True, exist_ok=True)
+
+ # context manager ではなく .start() で起動 → 手動で lifetime を管理
+ pw = await async_playwright().start()
+ browser = await pw.chromium.launch(
+ headless=True,
+ args=["--no-sandbox", "--disable-dev-shm-usage"],
+ )
+ context = await _load_context(browser)
+ page = await context.new_page()
+ page.set_default_timeout(30_000)
+
+ # ── e-Gov トップにアクセス ──────────────────────
+ state.message = "e-Gov にアクセス中..."
+ await page.goto(EGOV_TOP_URL, wait_until="domcontentloaded")
+
+ await _screenshot(page)
+
+ # ── セッション復元チェック ──────────────────────
+ if await _is_logged_in(page):
+ await _save_cookies(context)
+ # ブラウザを閉じずに保持(download で再利用)
+ state._playwright = pw
+ state._browser = browser
+ state._context = context
+ state._page = page
+ state.status = EGovStatus.LOGGED_IN
+ state.message = "ログイン済み(セッション復元)"
+ return
+
+ # ── ログイン → GビズID へ誘導 ──────────────────
+ state.message = "GビズID ログインページへ移動中..."
+ await _navigate_to_gbizid(page)
+ await _screenshot(page)
+
+ # ── ナビゲーション後の状態を確認(SSO 自動ログインの検出)──────
+ state.message = "ログイン画面を確認中..."
+ await page.wait_for_timeout(2000)
+ await _screenshot(page)
+
+ # Keycloak SSO が有効で e-Gov に自動リダイレクトされた場合
+ if await _is_logged_in(page):
+ await _save_cookies(context)
+ state._playwright = pw
+ state._browser = browser
+ state._context = context
+ state._page = page
+ state.status = EGovStatus.LOGGED_IN
+ state.message = "ログイン完了(SSO自動ログイン)"
+ return
+
+ # ── ID / パスワード入力(フォームがある場合のみ)─────────────
+ state.message = "GビズID・パスワードを入力中..."
+ username_visible = False
+ try:
+ await page.wait_for_selector(SEL_USERNAME, timeout=12_000)
+ username_visible = True
+ except Exception:
+ pass # OTP フォームのみ表示される場合(記憶されたセッション)
+
+ if username_visible:
+ await page.fill(SEL_USERNAME, user_id)
+ await page.fill(SEL_PASSWORD, password)
+ await _screenshot(page)
+ await page.locator(SEL_SUBMIT).first.click()
+ else:
+ # OTP フォームが表示されているか確認
+ otp_showing = await page.evaluate(
+ "() => !!document.querySelector('#otp, input[name=\"otp\"], #totp, input[name=\"totp\"]')"
+ )
+ if not otp_showing:
+ current_url = page.url
+ await _screenshot(page)
+ # ブラウザを保持: /egov/debug-page でページ状態を診断できるよう state._page を設定
+ state._playwright = pw
+ state._browser = browser
+ state._context = context
+ state._page = page
+ state.status = EGovStatus.ERROR
+ state.message = (
+ f"GビズID ログインフォームが見つかりません。"
+ f"現在URL: {current_url} |"
+ f" /egov/debug-page で詳細を確認してください。"
+ )
+ return
+ # OTP フォームのみ → ID/PW ステップをスキップして次へ
+
+ # ── TOTP ページを待機 ───────────────────────────
+ state.message = "認証コード入力ページへ移動中..."
+ try:
+ await page.wait_for_selector(SEL_OTP, timeout=12_000)
+ await _screenshot(page)
+ except Exception:
+ await page.wait_for_load_state("domcontentloaded")
+ await _screenshot(page)
+ if await _is_logged_in(page):
+ await _save_cookies(context)
+ state._playwright = pw
+ state._browser = browser
+ state._context = context
+ state._page = page
+ state.status = EGovStatus.LOGGED_IN
+ state.message = "ログイン完了(MFA なし)"
+ return
+ await state.close_browser()
+ raise RuntimeError(
+ "認証コードページへの遷移に失敗しました。"
+ "GビズID またはパスワードをご確認ください。"
+ )
+
+ # ── ユーザーの MFA 入力を待つ ───────────────────
+ state.status = EGovStatus.WAITING_MFA
+ state.message = "GビズID アプリの認証コード(6桁)を入力してください"
+
+ try:
+ await asyncio.wait_for(state.mfa_event.wait(), timeout=MFA_TIMEOUT)
+ except asyncio.TimeoutError:
+ await state.close_browser()
+ state.status = EGovStatus.ERROR
+ state.message = f"タイムアウト: {MFA_TIMEOUT}秒以内に認証コードが入力されませんでした"
+ return
+
+ # ── MFA コードを送信 ────────────────────────────
+ mfa_code = state.mfa_code
+ state.message = "認証コードを送信中..."
+ await page.fill(SEL_OTP, mfa_code)
+ await page.locator(SEL_SUBMIT).first.click()
+
+ # ── ログイン完了を確認 ──────────────────────────
+ await page.wait_for_load_state("domcontentloaded", timeout=15_000)
+ try:
+ await page.wait_for_load_state("networkidle", timeout=10_000)
+ except Exception:
+ pass
+ await _screenshot(page)
+
+ if await _is_logged_in(page):
+ await _save_cookies(context)
+ # ブラウザを閉じずに保持
+ state._playwright = pw
+ state._browser = browser
+ state._context = context
+ state._page = page
+ state.status = EGovStatus.LOGGED_IN
+ state.message = "ログイン完了"
+ else:
+ await state.close_browser()
+ state.status = EGovStatus.ERROR
+ state.message = "ログインに失敗しました(認証コードが間違っている可能性があります)"
+
+ except Exception as exc:
+ await state.close_browser()
+ state.status = EGovStatus.ERROR
+ state.message = f"エラー: {exc}"
+
+
+# ── 電子送達ダウンロード ──────────────────────────────────────
+
+DOWNLOADS_DIR = EGOV_DATA_DIR / "downloads"
+
+SEL_DOWNLOAD_BTN = 'button:has-text("通知ファイルをダウンロード"), a:has-text("通知ファイルをダウンロード")'
+
+
+async def run_download():
+ """電子送達一覧から最初のファイルをダウンロードする(BackgroundTask)"""
+ try:
+ if state.status != EGovStatus.LOGGED_IN:
+ state.status = EGovStatus.ERROR
+ state.message = "ログインしてからダウンロードを実行してください"
+ return
+
+ if state._page is None:
+ state.status = EGovStatus.ERROR
+ state.message = "ブラウザセッションがありません。再ログインしてください"
+ return
+
+ state.status = EGovStatus.DOWNLOADING
+ DOWNLOADS_DIR.mkdir(parents=True, exist_ok=True)
+
+ page = state._page
+
+ # ─────────────────────────────────────────────────────
+ # 診断ステージ1: goto 前のページ状態(ログイン直後のページを確認)
+ # ─────────────────────────────────────────────────────
+ try:
+ pre = await page.evaluate("""
+ () => {
+ const b = document.body ? document.body.innerText : '';
+ return {
+ url: location.href,
+ hasLogout: b.includes('ログアウト'),
+ hasMyPage: b.includes('マイページ'),
+ hasDelivery: b.includes('電子送達'),
+ bodyLen: b.length,
+ };
+ }
+ """)
+ state.message = (
+ f"[診断1/goto前] url={pre['url']} "
+ f"ログアウト={pre['hasLogout']} マイページ={pre['hasMyPage']} "
+ f"電子送達={pre['hasDelivery']} bodyLen={pre['bodyLen']}"
+ )
+ except Exception as e:
+ state.message = f"[診断1エラー] {e}"
+ pre = {"hasLogout": False}
+ await _screenshot(page)
+
+ # ── 電子送達一覧へ移動 ──────────────────────────
+ await page.goto(
+ "https://shinsei.e-gov.go.jp/top/message/delivery-list",
+ wait_until="domcontentloaded",
+ )
+ try:
+ await page.wait_for_load_state("networkidle", timeout=15_000)
+ except Exception:
+ pass
+
+ # ─────────────────────────────────────────────────────
+ # 診断ステージ2: delivery-list ページの詳細状態を収集
+ # ─────────────────────────────────────────────────────
+ post = await page.evaluate("""
+ () => {
+ const b = document.body ? document.body.innerText : '(empty)';
+ return {
+ url: location.href,
+ title: document.title,
+ hasLogout: b.includes('ログアウト'),
+ hasMyPage: b.includes('マイページ'),
+ hasDelivery: b.includes('電子送達'),
+ bodyLen: b.length,
+ bodyPreview: b.slice(0, 300).replace(/\\n+/g, '|'),
+ links: Array.from(document.querySelectorAll('a')).map(a => ({
+ t: a.textContent.trim().slice(0, 30),
+ h: a.href
+ })).slice(0, 20),
+ };
+ }
+ """)
+ await _screenshot(page)
+ state.message = (
+ f"[診断2/goto後] title={post['title']} url={post['url']} "
+ f"ログアウト={post['hasLogout']} マイページ={post['hasMyPage']} "
+ f"電子送達={post['hasDelivery']} bodyLen={post['bodyLen']} "
+ f"body={post['bodyPreview'][:200]}"
+ )
+
+ # 認証状態チェック
+ if not post['hasLogout'] and not post['hasMyPage']:
+ state.status = EGovStatus.ERROR
+ state.message = (
+ f"[未認証] delivery-listが未認証状態です。"
+ f" goto前: ログアウト={pre.get('hasLogout')} "
+ f" goto後: ログアウト={post['hasLogout']} マイページ={post['hasMyPage']}"
+ f" body={post['bodyPreview'][:150]}"
+ f" links={post['links'][:10]}"
+ )
+ return
+
+ current_url = post['url']
+
+ # ── 通知タイトル(【...】形式)が現れるまで待機 ──
+ state.message = "[診断2OK] delivery-listのアイテムを待機中..."
+ try:
+ await page.wait_for_function(
+ "() => Array.from(document.querySelectorAll('a'))"
+ ".some(a => a.textContent.includes('【') && a.href && !a.href.startsWith('javascript'))",
+ timeout=15_000,
+ )
+ except Exception:
+ pass
+
+ await _screenshot(page)
+
+ # ── 最初のアイテムリンクをJSで取得 ─────────────
+ detail_href = await page.evaluate("""
+ () => {
+ const titleLinks = Array.from(document.querySelectorAll('a')).filter(a =>
+ a.textContent.trim().startsWith('【') &&
+ a.href && !a.href.startsWith('javascript')
+ );
+ if (titleLinks.length > 0) return titleLinks[0].href;
+
+ const detailLinks = Array.from(document.querySelectorAll('a[href]')).filter(a =>
+ a.href.includes('delivery-detail') || a.href.includes('delivery/detail')
+ );
+ if (detailLinks.length > 0) return detailLinks[0].href;
+
+ return null;
+ }
+ """)
+
+ if not detail_href:
+ all_info = await page.evaluate("""
+ () => {
+ const b = document.body ? document.body.innerText : '';
+ return {
+ hrefs: Array.from(document.querySelectorAll('a[href]')).map(a => a.href).slice(0,10),
+ bodyPreview: b.slice(0, 300).replace(/\\n+/g, '|'),
+ };
+ }
+ """)
+ state.status = EGovStatus.ERROR
+ state.message = (
+ f"電子送達アイテムなし。URL={current_url} "
+ f"body={all_info['bodyPreview'][:200]} "
+ f"links={all_info['hrefs']}"
+ )
+ await _screenshot(page)
+ return
+
+ # ── 詳細ページへ移動 ────────────────────────────
+ state.message = "詳細ページへ移動中..."
+ await page.goto(detail_href, wait_until="domcontentloaded")
+ try:
+ await page.wait_for_load_state("networkidle", timeout=10_000)
+ except Exception:
+ pass
+ await _screenshot(page)
+
+ # ── 通知ファイルをダウンロード ──────────────────
+ state.message = "ダウンロードボタンを探しています..."
+ try:
+ async with page.expect_download(timeout=60_000) as dl_info:
+ await page.locator(SEL_DOWNLOAD_BTN).first.click(timeout=15_000)
+ download = await dl_info.value
+ filename = download.suggested_filename or "egov_download"
+ save_path = DOWNLOADS_DIR / filename
+ await download.save_as(str(save_path))
+ file_size = save_path.stat().st_size
+
+ await _save_cookies(state._context)
+ state.last_download = {
+ "filename": filename,
+ "path": str(save_path),
+ "size": file_size,
+ }
+ state.status = EGovStatus.LOGGED_IN
+ state.message = f"ダウンロード完了: {filename} ({file_size:,} bytes)"
+ await _screenshot(page)
+ except Exception as e:
+ state.status = EGovStatus.ERROR
+ state.message = f"ダウンロードに失敗しました: {e}"
+ await _screenshot(page)
+
+ except Exception as exc:
+ state.status = EGovStatus.ERROR
+ state.message = f"エラー: {exc}"
+
+
+# ── プライベートヘルパー ─────────────────────────────────────
+
+async def _navigate_to_gbizid(page):
+ """ログインページ → GビズID 選択まで自動遷移"""
+ # アプローチ1: /top/login へ直接移動
+ try:
+ await page.goto(
+ "https://shinsei.e-gov.go.jp/top/login",
+ wait_until="domcontentloaded",
+ )
+ # Angular レンダリング完了を待機
+ try:
+ await page.wait_for_load_state("networkidle", timeout=8_000)
+ except Exception:
+ pass
+ await page.wait_for_timeout(2000)
+ except Exception:
+ pass
+
+ # /top/login にたどり着けなかった場合: ヘッダーのログインリンクをクリック
+ if "login" not in page.url and "keycloak" not in page.url and "gbizid" not in page.url:
+ try:
+ await page.locator(SEL_LOGIN_LINK).first.click(timeout=8_000)
+ await page.wait_for_load_state("domcontentloaded")
+ await page.wait_for_timeout(3000)
+ except Exception:
+ pass
+
+ await _screenshot(page)
+
+ # すでに Keycloak/GビズID ページにいる場合はスキップ
+ if any(k in page.url for k in ("keycloak", "gbizid", "accounts.g-biz", "gbiz.go.jp")):
+ return
+
+ # GビズID ボタンをクリック(複数セレクタで試行)
+ gbizid_selectors = [
+ 'a:has-text("GビズID")',
+ 'button:has-text("GビズID")',
+ 'img[alt*="GビズID"]',
+ '[alt*="GビズID"]',
+ 'a[href*="gbizid"]',
+ 'a[href*="keycloak"]',
+ 'a[href*="gbiz"]',
+ '[class*="gbiz"]',
+ '[id*="gbiz"]',
+ ]
+ clicked = False
+ for sel in gbizid_selectors:
+ try:
+ el = page.locator(sel).first
+ await el.wait_for(timeout=3_000, state="visible")
+ await el.click()
+ await page.wait_for_load_state("domcontentloaded")
+ clicked = True
+ break
+ except Exception:
+ continue
+
+ if not clicked:
+ # JS で全 a/button/[role=button] をスキャンして GビズID 関連を探す
+ try:
+ clicked_js = await page.evaluate("""
+ () => {
+ const all = Array.from(document.querySelectorAll('a, button, [role="button"]'));
+ for (const el of all) {
+ const t = (el.textContent || '').trim();
+ const h = el.getAttribute('href') || '';
+ const alts = Array.from(el.querySelectorAll('img'))
+ .map(img => img.alt || '').join(' ');
+ if (t.includes('GビズID') || t.includes('gBizID') || t.includes('Gビズ')
+ || h.includes('gbizid') || h.includes('keycloak') || h.includes('gbiz')
+ || alts.includes('GビズID') || alts.includes('ビズID')) {
+ el.click();
+ return el.tagName + ':' + t.slice(0, 30) + ':' + h.slice(0, 60);
+ }
+ }
+ return null;
+ }
+ """)
+ if clicked_js:
+ await page.wait_for_load_state("domcontentloaded")
+ await page.wait_for_timeout(2000)
+ except Exception:
+ pass
+
+
+async def _is_logged_in(page) -> bool:
+ try:
+ content = await page.content()
+ return any(m in content for m in LOGGEDIN_MARKERS)
+ except Exception:
+ return False
+
+
+async def _load_context(browser):
+ """保存済み Cookie からセッションを復元"""
+ if COOKIES_PATH.exists():
+ try:
+ with open(COOKIES_PATH) as f:
+ storage = json.load(f)
+ return await browser.new_context(storage_state=storage)
+ except Exception:
+ pass
+ return await browser.new_context()
+
+
+async def _save_cookies(context):
+ """セッション Cookie をファイルに保存"""
+ EGOV_DATA_DIR.mkdir(parents=True, exist_ok=True)
+ storage = await context.storage_state()
+ with open(COOKIES_PATH, "w") as f:
+ json.dump(storage, f)
+
+
+async def _screenshot(page):
+ """ページのスクリーンショットを base64 で state に保存"""
+ try:
+ data = await page.screenshot(type="jpeg", quality=55)
+ state.screenshot_b64 = base64.b64encode(data).decode()
+ except Exception:
+ pass
diff --git a/backend/app/modules/egov/state.py b/backend/app/modules/egov/state.py
new file mode 100644
index 0000000..161c814
--- /dev/null
+++ b/backend/app/modules/egov/state.py
@@ -0,0 +1,85 @@
+import asyncio
+import time
+from enum import Enum
+from typing import Optional, Any
+
+
+class EGovStatus(str, Enum):
+ IDLE = "idle"
+ STARTING = "starting"
+ WAITING_MFA = "waiting_mfa"
+ LOGGED_IN = "logged_in"
+ DOWNLOADING = "downloading"
+ ERROR = "error"
+
+
+class EGovState:
+ def __init__(self):
+ self.status: EGovStatus = EGovStatus.IDLE
+ self.message: str = ""
+ self.mfa_event: asyncio.Event = asyncio.Event()
+ self.mfa_code: Optional[str] = None
+ self.screenshot_b64: Optional[str] = None
+ self.last_download: Optional[dict] = None # {filename, path, size}
+
+ # ブラウザセッション(Playwright 方式, 後方互換用)
+ self._playwright: Optional[Any] = None
+ self._browser: Optional[Any] = None
+ self._context: Optional[Any] = None
+ self._page: Optional[Any] = None
+
+ # ── OAuth2 / e-Gov API 方式 ──────────────────────────────
+ self.access_token: Optional[str] = None
+ self.refresh_token: Optional[str] = None
+ self.token_expires_at: Optional[float] = None # unix timestamp
+ self._pkce_verifier: Optional[str] = None
+ self._oauth_state: Optional[str] = None
+
+ def is_token_valid(self) -> bool:
+ """アクセストークンが有効かどうかを返す(60秒マージン)"""
+ if not self.access_token:
+ return False
+ if self.token_expires_at and time.time() >= self.token_expires_at - 60:
+ return False
+ return True
+
+ def set_tokens(self, token_response: dict):
+ """トークンレスポンスをステートにセット"""
+ self.access_token = token_response.get("access_token")
+ self.refresh_token = token_response.get("refresh_token")
+ expires_in = token_response.get("expires_in", 300)
+ self.token_expires_at = time.time() + int(expires_in)
+
+ def reset(self):
+ self.status = EGovStatus.IDLE
+ self.message = ""
+ self.mfa_event = asyncio.Event()
+ self.mfa_code = None
+ self.screenshot_b64 = None
+ self.last_download = None
+ self.access_token = None
+ self.refresh_token = None
+ self.token_expires_at = None
+ self._pkce_verifier = None
+ self._oauth_state = None
+
+ async def close_browser(self):
+ """ブラウザを閉じてリソースを解放"""
+ try:
+ if self._browser:
+ await self._browser.close()
+ except Exception:
+ pass
+ try:
+ if self._playwright:
+ await self._playwright.stop()
+ except Exception:
+ pass
+ self._playwright = None
+ self._browser = None
+ self._context = None
+ self._page = None
+
+
+# モジュールレベルのシングルトン
+state = EGovState()
diff --git a/backend/requirements.txt b/backend/requirements.txt
index e55bbb5..cc9f52f 100644
--- a/backend/requirements.txt
+++ b/backend/requirements.txt
@@ -6,6 +6,7 @@ colorama==0.4.6
email-validator==2.3.0
fastapi==0.124.4
h11==0.16.0
+httpx==0.28.1
idna==3.11
openpyxl==3.1.2
psycopg==3.3.2
@@ -20,3 +21,4 @@ typing_extensions==4.15.0
tzdata==2025.3
uvicorn==0.38.0
xlrd==2.0.1
+playwright==1.44.0
diff --git a/check_openapi.py b/check_openapi.py
new file mode 100644
index 0000000..8194f6b
--- /dev/null
+++ b/check_openapi.py
@@ -0,0 +1,51 @@
+import json
+
+with open(r'docs/openapi_検証.json', encoding='utf-8') as f:
+ api = json.load(f)
+
+def resolve_ref(ref):
+ parts = ref.lstrip('#/').split('/')
+ obj = api
+ for p in parts:
+ obj = obj[p]
+ return obj
+
+def resolve_schema(schema, depth=0):
+ if depth > 3:
+ return schema
+ if '$ref' in schema:
+ return resolve_schema(resolve_ref(schema['$ref']), depth+1)
+ if schema.get('type') == 'array' and 'items' in schema:
+ schema = dict(schema)
+ schema['items'] = resolve_schema(schema['items'], depth+1)
+ if 'properties' in schema:
+ schema = dict(schema)
+ schema['properties'] = {k: resolve_schema(v, depth+1) for k, v in schema['properties'].items()}
+ return schema
+
+# /post/lists の200レスポンス
+resp = api['paths']['/post/lists']['get']['responses']['200']
+schema = resolve_schema(resp['content']['application/json']['schema'])
+print('=== GET /post/lists Response 200 ===')
+print(json.dumps(schema, ensure_ascii=False, indent=2)[:3000])
+
+print()
+
+# /post/{post_id} の200レスポンス
+resp2 = api['paths']['/post/{post_id}']['get']['responses']['200']
+schema2 = resolve_schema(resp2['content']['application/json']['schema'])
+print('=== GET /post/{post_id} Response 200 ===')
+print(json.dumps(schema2, ensure_ascii=False, indent=2)[:4000])
+
+print()
+
+# serversの確認
+print('=== Servers ===')
+print(json.dumps(api.get('servers', []), ensure_ascii=False, indent=2))
+
+# componentsのparametersでよく使うものを確認
+print()
+print('=== Key Parameters ===')
+for key in ['Authorization', 'date_from', 'date_to', 'limit_50', 'offset']:
+ param = api['components']['parameters'].get(key, {})
+ print(f'{key}: in={param.get("in")}, name={param.get("name")}, schema={param.get("schema")}')
diff --git a/docker-compose.nas.yml b/docker-compose.nas.yml
new file mode 100644
index 0000000..6f1b658
--- /dev/null
+++ b/docker-compose.nas.yml
@@ -0,0 +1,21 @@
+services:
+ backend:
+ build:
+ context: .
+ dockerfile: Dockerfile
+ container_name: njts-accounting-backend
+ working_dir: /app
+ volumes:
+ - ./backend:/app
+ command: uvicorn app.main:app --host 0.0.0.0 --port 8000
+ ports:
+ - "18000:8000"
+ env_file:
+ - .env
+ environment:
+ DB_HOST: 192.168.0.61
+ DB_PORT: 55432
+ DB_NAME: njts_acct
+ DB_USER: njts_app
+ DB_PASSWORD: njts_app2025
+ restart: unless-stopped
diff --git a/docker/nginx/default.conf b/docker/nginx/default.conf
index e7959c1..3ee41fa 100644
--- a/docker/nginx/default.conf
+++ b/docker/nginx/default.conf
@@ -13,7 +13,7 @@ server {
}
# Proxy all API requests to backend
- location ~ ^/(accounts|journals|ledger|trial-balance|opening-balances|general-ledger|payroll|users|month-locks|year-locks|cash|file-upload) {
+ location ~ ^/(accounts|journals|ledger|trial-balance|opening-balances|general-ledger|payroll|users|month-locks|year-locks|cash|file-upload|egov) {
proxy_pass http://backend:18080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
diff --git a/docs/07nen252 (1).xlsx b/docs/07nen252 (1).xlsx
new file mode 100644
index 0000000..75a17c5
Binary files /dev/null and b/docs/07nen252 (1).xlsx differ
diff --git a/docs/e-Gov 電子申請サービス 電子申請 API API 利用ガイド.pdf b/docs/e-Gov 電子申請サービス 電子申請 API API 利用ガイド.pdf
new file mode 100644
index 0000000..4649cba
Binary files /dev/null and b/docs/e-Gov 電子申請サービス 電子申請 API API 利用ガイド.pdf differ
diff --git a/docs/openapi.json b/docs/openapi.json
new file mode 100644
index 0000000..d348473
--- /dev/null
+++ b/docs/openapi.json
@@ -0,0 +1,7384 @@
+{
+ "openapi": "3.0.0",
+ "info": {
+ "description": "電子申請API v2のAPI仕様を表示しています。
従来のAPI仕様は、電子申請API v1を参照して下さい。",
+ "version": "2.0.0",
+ "title": "e-Gov電子申請API"
+ },
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2",
+ "description": "電子申請"
+ },
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2",
+ "description": "電子送達"
+ },
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2",
+ "description": "アカウント間情報共有"
+ },
+ {
+ "url": "https://account.e-gov.go.jp/auth",
+ "description": "利用者認証"
+ }
+ ],
+ "paths": {
+ "/procedure/{proc_id}": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "get": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "手続選択:指定したAPI対象手続に係る申請データ構造(スケルトン)一式を取得する。",
+ "description": "事前登録された基本情報と選択された手続識別子をもとに電子申請を行うための申請データ構造として基本情報をセットしたデータ一式を取得する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/proc_id"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_procedure"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/preprint": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "post": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "プレ印字データ取得:プレ印字データを取得する。",
+ "description": "プレ印字対象手続に対して、府省に問い合わせて、府省に登録されているプレ印字データを取得して返却する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "application_info",
+ "proc_id",
+ "form_id",
+ "form_version",
+ "file_data"
+ ],
+ "properties": {
+ "application_info": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/application_info"
+ }
+ ]
+ },
+ "proc_id": {
+ "description": "手続識別子
・半角英数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 16
+ },
+ "form_id": {
+ "description": "様式ID
・半角英数字",
+ "type": "string",
+ "minLength": 18,
+ "maxLength": 18
+ },
+ "form_version": {
+ "description": "様式バージョン
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ },
+ "file_data": {
+ "description": "申請書XMLデータ
・半角
・バイナリデータはBASE64エンコードしたものを使用する。",
+ "type": "string",
+ "format": "byte",
+ "minLength": 1
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_preprint"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/apply": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "post": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "申請データ送信:申請データの形式チェックと到達確認を行い、到達番号等を取得する。",
+ "description": "送信された申請データの形式チェックと申請処理を行い、到達番号等を応答する。
※再提出を行う場合も当APIを使用する。申請するデータの「初回受付番号」には申請受付番号の初回受付時の到達番号、「申請種別」には\"再提出\"を指定する。設定方法の詳細は、申請データ仕様共通データ仕様書を参照。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "proc_id",
+ "send_file"
+ ],
+ "properties": {
+ "proc_id": {
+ "description": "手続識別子
・半角英数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 16
+ },
+ "send_file": {
+ "description": "申請データをZIPファイル形式で圧縮したものを設定
申請データは構成管理XMLファイル、申請書XMLファイル、添付ファイル",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/data"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results",
+ "_links"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_apply"
+ }
+ ]
+ },
+ "_links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/links_apply"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest_Report"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "413": {
+ "$ref": "#/components/responses/RequestEntityTooLarge_Report"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError_Report"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable_Report"
+ }
+ }
+ }
+ },
+ "/bulk-apply": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "post": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "申請データbulk送信:複数の申請データを送信し、形式チェック(バッチ)に引き渡す情報を登録する。",
+ "description": "送信された複数の申請データを受信し、後続の一括申請開始バッチに引き継ぐ情報を登録する。
※再提出を行う場合は、申請データ送信を使用すること。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "send_file"
+ ],
+ "properties": {
+ "send_file": {
+ "description": "1つ以上の申請データをZIPファイル形式で圧縮したものを設定
申請データは構成管理XMLファイル、申請書XMLファイル、添付ファイル",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/data"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "description": "Accepted",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results",
+ "_links"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_bulk_apply"
+ }
+ ]
+ },
+ "_links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/links_bulk_apply"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest_error"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "413": {
+ "$ref": "#/components/responses/RequestEntityTooLarge_error"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError_error"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable_error"
+ }
+ }
+ }
+ },
+ "/apply/amend": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "post": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "補正データ送信:補正データの形式チェックを行い、補正を行う。",
+ "description": "補正申請可能な到達番号に対して、
送信された補正データの形式チェックを行い、指定された到達番号の申請案件に関する補正処理を行う。
※補正申請可能な到達番号について
・申請案件に関する通知取得の補正種別が\"部分補正\"であること。
・補正種別が\"再提出\"、\"手続終了(再提出可)\"の場合は、申請データ送信を使用すること。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "arrive_id",
+ "send_file"
+ ],
+ "properties": {
+ "arrive_id": {
+ "description": "到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "send_file": {
+ "description": "補正対象データをZIPファイル形式で圧縮したものを設定
構成管理XMLファイル、申請書XMLファイル、添付ファイル",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/data"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_apply_amend"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest_Report"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "413": {
+ "$ref": "#/components/responses/RequestEntityTooLarge_Report"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError_Report"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable_Report"
+ }
+ }
+ }
+ },
+ "/apply/withdraw": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "post": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "取り下げ依頼送信:取下げ依頼を行う。",
+ "description": "指定された到達番号の取下げ処理を行う。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "arrive_id",
+ "send_file"
+ ],
+ "properties": {
+ "arrive_id": {
+ "description": "到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "send_file": {
+ "description": "取下げ依頼データをZIPファイル形式で圧縮したものを設定
構成管理XMLファイル、取下げ依頼の申請書XMLファイル",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/data"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_apply_withdraw"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest_Report_withdraw"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "413": {
+ "$ref": "#/components/responses/RequestEntityTooLarge_Report_withdraw"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError_Report_withdraw"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable_Report_withdraw"
+ }
+ }
+ }
+ },
+ "/apply/check": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "post": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "形式チェック実行:申請データに対する形式チェックの実行結果を取得する。",
+ "description": "送信された申請データに対して、形式チェックを実行し、結果を応答する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "proc_id",
+ "send_file"
+ ],
+ "properties": {
+ "proc_id": {
+ "description": "手続識別子
・半角英数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 16
+ },
+ "send_file": {
+ "description": "申請データをZIPファイル形式で圧縮したものを設定
申請データは構成管理XMLファイル、申請書XMLファイル、添付ファイル",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/data"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_apply_check"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "413": {
+ "$ref": "#/components/responses/RequestEntityTooLarge"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/apply/lists": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "get": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "申請案件一覧取得:申請案件の一覧情報を取得する。",
+ "description": "期間等を指定して、申請案件の一覧情報を取得する。対象期間内の到達日時の申請案件を取得対象とする。
※送信番号のみを指定または対象期間及び取得件数/ページを指定
送信番号指定時 例:https://api.e-gov.go.jp/shinsei/v2/apply/lists?send_number=123456789012345678
対象期間及び取得件数/ページを指定時 例:https://api.e-gov.go.jp/shinsei/v2/apply/lists?date_from=2019-01-01&date_to=2019-02-28&limit=50&offset=0",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial"
+ },
+ {
+ "$ref": "#/components/parameters/send_number"
+ },
+ {
+ "$ref": "#/components/parameters/date_from_optional"
+ },
+ {
+ "$ref": "#/components/parameters/date_to_optional"
+ },
+ {
+ "$ref": "#/components/parameters/limit_50_optional"
+ },
+ {
+ "$ref": "#/components/parameters/offset_optional"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "resultset",
+ "results",
+ "_links"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "resultset": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/result_set"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_apply_lists"
+ }
+ ]
+ },
+ "_links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/links_lists_note"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/apply/{arrive_id}": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "get": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "申請案件取得:申請案件の詳細情報を取得する。",
+ "description": "指定した申請案件の詳細情報を取得する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial"
+ },
+ {
+ "$ref": "#/components/parameters/arrive_id"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_apply_detail"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/apply/report": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "get": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "エラーレポート取得:申請データbulk送信の申請データに対する形式チェックの実行結果に関するエラーレポートを取得する。",
+ "description": "申請データbulk送信の申請データに対して、後続の処理にて実行された形式チェックの実行結果を、取得して応答する。
リクエストの対象期間内に受信した申請データに対するエラーレポートを取得対象とする。
形式チェック実行にてチェックエラーが発生せずに到達した申請については、発行された到達番号等を応答する。
※送信番号のみを指定または対象期間及び取得件数/ページを指定
送信番号指定時 例:https://api.e-gov.go.jp/shinsei/v2/apply/report?send_number=123456789012345678
対象期間及び取得件数/ページを指定時 例:https://api.e-gov.go.jp/shinsei/v2/apply/report?date_from=2019-01-01&date_to=2019-02-28&limit=50&offset=0",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial"
+ },
+ {
+ "$ref": "#/components/parameters/send_number"
+ },
+ {
+ "$ref": "#/components/parameters/date_from_optional"
+ },
+ {
+ "$ref": "#/components/parameters/date_to_optional"
+ },
+ {
+ "$ref": "#/components/parameters/limit_30_optional"
+ },
+ {
+ "$ref": "#/components/parameters/offset_optional"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "resultset",
+ "results",
+ "_links"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "resultset": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/result_set"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_apply_report"
+ }
+ ]
+ },
+ "_links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/links_lists_note"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/message/lists": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "get": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "手続に関するご案内一覧取得:手続に関するご案内情報のリストを取得する。",
+ "description": "期間等を指定して、手続に関するご案内情報を一覧で取得する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/date_from"
+ },
+ {
+ "$ref": "#/components/parameters/date_to"
+ },
+ {
+ "$ref": "#/components/parameters/limit_50"
+ },
+ {
+ "$ref": "#/components/parameters/offset"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "resultset",
+ "results",
+ "_links"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "resultset": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/result_set"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_message_lists"
+ }
+ ]
+ },
+ "_links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/links_lists"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/message/{information_id}": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "get": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "手続に関するご案内取得:お知らせ情報(手続に関するご案内)を取得する。",
+ "description": "指定したお知らせ(手続に関するご案内)の情報を取得する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/information_id"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_message"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/notice/lists": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "get": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "申請案件に関する通知一覧取得:申請案件に関する通知情報のリストを取得する。",
+ "description": "期間等を指定して、申請案件に関する通知情報を一覧で取得する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/date_from"
+ },
+ {
+ "$ref": "#/components/parameters/date_to"
+ },
+ {
+ "$ref": "#/components/parameters/limit_50"
+ },
+ {
+ "$ref": "#/components/parameters/offset"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "resultset",
+ "results",
+ "_links"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "resultset": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/result_set"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_notice_lists"
+ }
+ ]
+ },
+ "_links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/links_lists_note"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/notice/{arrive_id}/{notice_sub_id}": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "get": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "申請案件に関する通知取得:申請案件に関する通知情報を取得する。",
+ "description": "指定した申請案件に関する通知の情報を取得する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/arrive_id"
+ },
+ {
+ "$ref": "#/components/parameters/notice_sub_id"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_notice"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/official_document/{arrive_id}/{notice_sub_id}": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "get": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "公文書取得:公文書を取得する。",
+ "description": "指定された申請案件の公文書を取得する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial"
+ },
+ {
+ "$ref": "#/components/parameters/arrive_id"
+ },
+ {
+ "$ref": "#/components/parameters/notice_sub_id"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results",
+ "_links"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_official_document"
+ }
+ ]
+ },
+ "_links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/links_official_document"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/official_document": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "post": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "公文書取得完了:公文書の取得日時を登録する。",
+ "description": "指定された申請案件の公文書の取得日時を登録する。
また、申請案件に紐づくすべての公文書が取得された状態となった場合は、申請案件のステータスを手続完了に更新する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "arrive_id",
+ "notice_sub_id"
+ ],
+ "properties": {
+ "arrive_id": {
+ "description": "到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "notice_sub_id": {
+ "description": "通知通番
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 999
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_official_document_complete"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/official_document/verify": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "post": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "公文書署名検証要求:公文書に付与された官職署名の検証を行う。",
+ "description": "送信された公文書に対して署名検証を行う。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "file_name",
+ "file_data",
+ "sig_verification_xml_file_name"
+ ],
+ "properties": {
+ "file_name": {
+ "description": "ファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "file_data": {
+ "description": "ファイル圧縮データ
・半角
・鑑ファイル、添付ファイル
・バイナリデータはBase64エンコードしたものを使用する。",
+ "type": "string",
+ "format": "byte",
+ "minLength": 1
+ },
+ "sig_verification_xml_file_name": {
+ "description": "署名検証XMLファイル名
・半角英数字",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_official_document_verify"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "413": {
+ "$ref": "#/components/responses/RequestEntityTooLarge"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/payment/lists": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "get": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "国庫金電子納付取扱金融機関一覧取得:国庫金電子納付が可能な金融機関一覧を取得する。",
+ "description": "電子納付金融機関一覧取得要求を受け付け、国庫金の電子納付が可能な金融機関一覧(金融機関名、ネットバンキングのサービス名、URL 等)を応答する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_payment_lists"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/payment/{arrive_id}": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "get": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "電子納付情報一覧取得:納付情報を取得する。",
+ "description": "指定された到達番号に発行された手数料等の納付情報(到達番号、納付番号、確認番号、収納期間番号等)を応答する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/arrive_id"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_payment"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/payment": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "post": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "電子納付金融機関サイト表示:電子納付金融機関サイトのURLを取得する。",
+ "description": "電子納付金融機関サイトのURL(リダイレクト先)およびリダイレクト先へ受け渡すパラメータ情報(収納機関番号、国庫金コード、パラメータタグ名、情報リンクデータ)を応答する。
応答結果を受け、API対応ソフトウェア開発事業者側で電子納付金融機関サイトのURLへリダイレクトさせる必要がある。
・電子納付金融機関サイトのURL「応答結果.URLの値」
※リダイレクト先へは以下のパラメータを受け渡す。(POST送信)
・パラメータ名「skno」、パラメータ値「応答結果.facility_number(収納機関番号)の値」
・パラメータ名「bptn」、パラメータ値「応答結果.treasury_money_code(国庫金コード)の値」
・パラメータ名「応答結果.parameter_tag_name(パラメータタグ名)の値」、パラメータ値「応答結果.information_link_data(情報リンクデータ)をBASE64デコードした値」",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "arrive_id",
+ "pay_number",
+ "bank_name",
+ "proc_id"
+ ],
+ "properties": {
+ "arrive_id": {
+ "description": "到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "pay_number": {
+ "description": "納付番号
・半角英数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 16
+ },
+ "bank_name": {
+ "description": "金融機関名称
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "proc_id": {
+ "description": "手続識別子
・半角英数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 16
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_payment_site"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/post-apply": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子送達",
+ "post": {
+ "tags": [
+ "電子送達"
+ ],
+ "summary": "電子送達利用申込み:申請データの形式チェックと到達確認を行い、到達番号等を取得する。",
+ "description": "送信された申請データの形式チェックと電子送達の申込み処理を行い、到達番号等を応答する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial-NON"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "proc_id",
+ "send_file"
+ ],
+ "properties": {
+ "proc_id": {
+ "description": "手続識別子
・半角英数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 16
+ },
+ "send_file": {
+ "description": "申請データをZIPファイル形式で圧縮したものを設定
申請データは構成管理XMLファイル、申請書XMLファイル、添付ファイル",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/data"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results",
+ "_links"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_post_apply"
+ }
+ ]
+ },
+ "_links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/links_apply"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest_Report"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "413": {
+ "$ref": "#/components/responses/RequestEntityTooLarge_Report"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError_Report"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable_Report"
+ }
+ },
+ "operationId": ""
+ }
+ },
+ "/post-apply/{arrive_id}": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子送達",
+ "get": {
+ "tags": [
+ "電子送達"
+ ],
+ "summary": "電子送達状況確認:電子送達の申込状況を取得する。",
+ "description": "指定した電子送達の申込みの詳細情報を取得する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial-NON"
+ },
+ {
+ "$ref": "#/components/parameters/arrive_id"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_post_apply_detail"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/post/lists": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子送達",
+ "get": {
+ "tags": [
+ "電子送達"
+ ],
+ "summary": "電子送達一覧取得:電子送達のリストを取得する。",
+ "description": "期間等を指定して、電子送達に関する一覧情報を取得する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/date_from"
+ },
+ {
+ "$ref": "#/components/parameters/date_to"
+ },
+ {
+ "$ref": "#/components/parameters/limit_50"
+ },
+ {
+ "$ref": "#/components/parameters/offset"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "resultset",
+ "results",
+ "_links"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "resultset": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/result_set"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_post_lists"
+ }
+ ]
+ },
+ "_links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/links_lists"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/post/{post_id}": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子送達",
+ "get": {
+ "tags": [
+ "電子送達"
+ ],
+ "summary": "電子送達取得:電子送達を取得する。",
+ "description": "指定された電子送達の通知文書を取得する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial-NON"
+ },
+ {
+ "$ref": "#/components/parameters/post_id"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results",
+ "_links"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_post"
+ }
+ ]
+ },
+ "_links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/links_official_document"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/post": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子送達",
+ "post": {
+ "tags": [
+ "電子送達"
+ ],
+ "summary": "電子送達取得完了:電子送達の取得日時を登録する。",
+ "description": "指定された通知文書の取得日時を登録する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial-NON"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "post_id"
+ ],
+ "properties": {
+ "post_id": {
+ "description": "電子送達識別子
・半角英数字
・1-50桁",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 50
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_post_complete"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/share-setting/lists": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "アカウント間情報共有",
+ "get": {
+ "tags": [
+ "アカウント間情報共有"
+ ],
+ "summary": "情報共有一覧取得:アカウント間情報共有の設定中の情報を応答する。",
+ "description": "アカウント間情報共有の設定中の情報を応答する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial-NON-share"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "resultset",
+ "results",
+ "_links"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_share_setting_lists"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/share-setting": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "アカウント間情報共有",
+ "post": {
+ "tags": [
+ "アカウント間情報共有"
+ ],
+ "summary": "情報共有設定:指定されたアカウント間情報共有の設定を行う。",
+ "description": "指定されたアカウント間情報共有の設定を行う。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial-NON-share"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "gbiz_id",
+ "official_doc_permission",
+ "post_doc_permission"
+ ],
+ "properties": {
+ "gbiz_id": {
+ "description": "共有対象のgBizIDのアカウントID(メールアドレス)
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ },
+ "official_doc_permission": {
+ "description": "公文書に関する権限情報
・半角
READ:参照権限
DOWNLOAD:ダウンロード権限",
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 8
+ },
+ "post_doc_permission": {
+ "description": "電子送達の通知文書に関する権限情報
・半角
READ:参照権限
DOWNLOAD:ダウンロード権限",
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 8
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_share-setting-post"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "アカウント間情報共有"
+ ],
+ "summary": "情報共有更新:指定されたアカウント間情報共有の更新を行う。",
+ "description": "指定されたアカウント間情報共有の更新を行う。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial-NON-share"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "gbiz_id",
+ "official_doc_permission",
+ "post_doc_permission"
+ ],
+ "properties": {
+ "gbiz_id": {
+ "description": "共有中のgBizIDのアカウントID(メールアドレス)
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ },
+ "official_doc_permission": {
+ "description": "公文書に関する権限情報
・半角
READ:参照権限
DOWNLOAD:ダウンロード権限",
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 8
+ },
+ "post_doc_permission": {
+ "description": "電子送達の通知文書に関する権限情報
・半角
READ:参照権限
DOWNLOAD:ダウンロード権限",
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 8
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_share-setting-put"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "アカウント間情報共有"
+ ],
+ "summary": "情報共有解除:指定されたアカウント間情報共有の解除を行う。",
+ "description": "指定されたアカウント間情報共有の解除を行う。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial-NON-share"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "gbiz_id",
+ "official_doc_permission",
+ "post_doc_permission"
+ ],
+ "properties": {
+ "gbiz_id": {
+ "description": "共有中で解除を実施したいgBizIDのアカウントID(メールアドレス)
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_share-setting-delete"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/share-confirmation": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "アカウント間情報共有",
+ "post": {
+ "tags": [
+ "アカウント間情報共有"
+ ],
+ "summary": "共有設定確認:指定されたアカウント間情報共有の有効化設定を行う。",
+ "description": "指定されたアカウント間情報共有の有効化設定を行う。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial-NON-share"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "gbiz_id",
+ "share_acceptance"
+ ],
+ "properties": {
+ "gbiz_id": {
+ "description": "共有依頼元のgBizIDのアカウントID(メールアドレス)
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ },
+ "share_acceptance": {
+ "description": "共有設定の許可/不許可
・半角
ACCEPT:許可する
DENY:許可しない",
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 6
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_share-confirmation"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/auth": {
+ "servers": [
+ {
+ "url": "https://account.e-gov.go.jp/auth"
+ }
+ ],
+ "description": "利用者認証",
+ "get": {
+ "tags": [
+ "利用者認証"
+ ],
+ "summary": "ユーザー認可:ユーザー認可リクエストを行い、認証・同意画面を表示する。",
+ "description": "e-Gov認可サーバの認証・同意画面を返却後、ユーザーがログイン及び同意を実施することにより認可コードが発行される。
全項目指定時
例:https://account.e-gov.go.jp/auth/auth?client_id=X99XKwoHFQsFrmxR&response_type=code&scope=openid%20offline_access&redirect_uri=https%3A%2F%2Fsample.com%2F&
state=e6a7c8b9-0884-4a17-bb51-42728853e958&code_challenge=_RpfHqw8pAZIomzVUE7sjRmHSM543WVdC4o-Kc4_3C0&code_challenge_method=S256
必須項目のみ指定時
例:https://account.e-gov.go.jp/auth/auth?client_id=X99XKwoHFQsFrmxR&response_type=code&scope=openid%20offline_access&redirect_uri=https%3A%2F%2Fsample.com%2F",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "client_id",
+ "description": "API対応ソフトウェア開発事業者に発行されるソフトウェアID
・半角英数字",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "response_type",
+ "description": "レスポンス・タイプ「code」を指定する
・半角英数字",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "minLength": 4
+ }
+ },
+ {
+ "in": "query",
+ "name": "scope",
+ "description": "スコープ「openid offline_access」を指定する
・半角英数字
例:scope=openid%20offline_access",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "redirect_uri",
+ "description": "ログイン成功時にリダイレクトするURL
APIキー発行時に指定したリダイレクトするURL(API対応ソフトウェア開発事業者がログイン後に遷移させたいURL)を「URLエンコード」して指定する
・半角英数字",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "state",
+ "description": "リクエストとコールバックの間で維持されるランダムな値
API対応ソフトウェア開発事業者側で任意に生成して指定する
・半角英数字
・CSRF対策",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "code_challenge",
+ "description": "API対応ソフトウェア開発事業者側でハッシュ値を生成して指定
ハッシュアルゴリズムは、「SHA-256」とし、ハッシュ値は16進数の値として扱い、「BASE64URLエンコード」して指定する
※BASE64エンコードではないことに注意
ハッシュ値の元となる文字列の制限については「アクセストークン取得」の「code_verifier」を参照
・半角英数字
・43-128桁
・PKCE対策",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "code_challenge_method",
+ "description": "code_challengeで指定した文字列のハッシュアルゴリズムを指定
ハッシュアルゴリズム「S256」を指定する
・半角英数字
・PKCE対策",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "302": {
+ "description": "レスポンスとして、認証画面・同意画面が返される。
認証画面・同意画面においてログイン・承認の操作を行うと、ブラウザにはステータスコード302が返却され、次に指定したリダイレクトURIにリダイレクトされる。"
+ }
+ }
+ }
+ },
+ "/(リダイレクト先のURL)": {
+ "servers": [
+ {
+ "url": "https://account.e-gov.go.jp/auth"
+ }
+ ],
+ "description": "利用者認証",
+ "get": {
+ "tags": [
+ "利用者認証"
+ ],
+ "summary": "ユーザー認可(リダイレクトでの認可コード送信):リダイレクト先に認可コードを渡す。",
+ "description": "※使用者は呼び出しは行わないが、本呼び出しでリダイレクト先に認可コードが渡されることを意識する必要がある。",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "code",
+ "description": "認可コード
・半角英数字",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "state",
+ "description": "ユーザー認可リクエスト時に指定した「state」値
・半角英数字
・リクエスト時に保存していた値をコールバック時の値が一致するかAPI対応ソフトウェア開発事業者で確認する。",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "session_state",
+ "required": true,
+ "description": "セッション状態を表す識別子
・半角英数字",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest_token"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized_token"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound_token"
+ },
+ "405": {
+ "$ref": "#/components/responses/MethodNotAllowed_token"
+ },
+ "413": {
+ "$ref": "#/components/responses/RequestEntityTooLarge_token"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError_token"
+ }
+ }
+ }
+ },
+ "/token": {
+ "servers": [
+ {
+ "url": "https://account.e-gov.go.jp/auth"
+ }
+ ],
+ "description": "利用者認証",
+ "post": {
+ "tags": [
+ "利用者認証"
+ ],
+ "summary": "アクセストークン取得/再取得:アクセストークンとリフレッシュトークンを取得/再取得する。",
+ "description": "ユーザー認可リクエストで返却された認可コードを認可サーバへ送信し、アクセストークンとアクセストークン更新用のリフレッシュトークンを取得する。
アクセストークン取得リクエストで取得したリフレッシュトークンを認可サーバへ送信し、アクセストークンとリフレッシュトークンを再取得する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type_token"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization_basic"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/x-www-form-urlencoded": {
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/request_token"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_token"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest_token"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized_token"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound_token"
+ },
+ "405": {
+ "$ref": "#/components/responses/MethodNotAllowed_token"
+ },
+ "413": {
+ "$ref": "#/components/responses/RequestEntityTooLarge_token"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError_token"
+ }
+ }
+ }
+ },
+ "/token/introspect": {
+ "servers": [
+ {
+ "url": "https://account.e-gov.go.jp/auth"
+ }
+ ],
+ "description": "利用者認証",
+ "post": {
+ "tags": [
+ "利用者認証"
+ ],
+ "summary": "アクセストークン検証:アクセストークンまたはリフレッシュトークンの有効性を検証する。",
+ "description": "取得したアクセストークンまたはリフレッシュトークンの有効性を検証し、トークンに関連付けられている情報を取得する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type_token"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization_basic"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/x-www-form-urlencoded": {
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/request_introspect"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_introspect"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest_token"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized_token"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound_token"
+ },
+ "405": {
+ "$ref": "#/components/responses/MethodNotAllowed_token"
+ },
+ "413": {
+ "$ref": "#/components/responses/RequestEntityTooLarge_token"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError_token"
+ }
+ }
+ }
+ },
+ "/logout": {
+ "servers": [
+ {
+ "url": "https://account.e-gov.go.jp/auth"
+ }
+ ],
+ "description": "利用者認証",
+ "post": {
+ "tags": [
+ "利用者認証"
+ ],
+ "summary": "ログアウト:ログアウトを行う。",
+ "description": "e-Gov認可サーバとの認証状態を破棄し、ログアウトを行う。取得済みのアクセストークン、リフレッシュトークンが無効化される。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type_token"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization_basic"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/x-www-form-urlencoded": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "refresh_token"
+ ],
+ "properties": {
+ "refresh_token": {
+ "description": "アクセストークン取得リクエストで取得したリフレッシュトークン
・半角英数字",
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "204": {
+ "description": "No Content"
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest_token"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized_token"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound_token"
+ },
+ "405": {
+ "$ref": "#/components/responses/MethodNotAllowed_token"
+ },
+ "413": {
+ "$ref": "#/components/responses/RequestEntityTooLarge_token"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError_token"
+ }
+ }
+ }
+ }
+ },
+ "components": {
+ "parameters": {
+ "Content-Type": {
+ "name": "Content-Type",
+ "in": "header",
+ "description": "application/jsonを設定
JSON文書",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ "Content-Type_token": {
+ "name": "Content-Type",
+ "in": "header",
+ "description": "application/x-www-form-urlencodedを設定",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "minLength": 33
+ }
+ },
+ "Authorization": {
+ "name": "Authorization",
+ "in": "header",
+ "description": "アクセストークン取得リクエストにより取得したアクセストークン
”Bearer アクセストークン”形式で設定",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ "Authorization_basic": {
+ "name": "Authorization",
+ "in": "header",
+ "description": "Basic [client_id:client_secretをbase64でエンコードした値]
・半角英数字
client_id:API対応ソフトウェア開発事業者に発行されるソフトウェアID
client_secret:API対応ソフトウェア開発事業者に発行されるAPIキー",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ "X-eGovAPI-Trial": {
+ "name": "X-eGovAPI-Trial",
+ "in": "header",
+ "description": "トライアルでAPIを動作させる場合は\"true\"を設定
指定なしの場合は非トライアルで動作",
+ "schema": {
+ "type": "boolean"
+ }
+ },
+ "proc_id": {
+ "name": "proc_id",
+ "in": "path",
+ "description": "手続識別子
・16桁
・半角英数字",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 16
+ }
+ },
+ "send_number": {
+ "name": "send_number",
+ "in": "query",
+ "description": "送信番号
・半角数字
・18桁
・送信番号で取得する場合のみ指定",
+ "schema": {
+ "type": "string",
+ "minLength": 18,
+ "maxLength": 18
+ }
+ },
+ "date_from": {
+ "name": "date_from",
+ "in": "query",
+ "description": "取得対象期間開始日
・半角
・10桁
・YYYY-MM-DD
例:2017-09-01",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "format": "date",
+ "minLength": 10,
+ "maxLength": 10
+ }
+ },
+ "date_to": {
+ "name": "date_to",
+ "in": "query",
+ "description": "取得対象期間終了日
・半角
・10桁
・YYYY-MM-DD
例:2017-09-01",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "format": "date",
+ "minLength": 10,
+ "maxLength": 10
+ }
+ },
+ "date_from_optional": {
+ "name": "date_from",
+ "in": "query",
+ "description": "取得対象期間開始日
・半角
・10桁
・YYYY-MM-DD
例:2017-09-01
・対象期間及び取得件数/ページオフセット件数で取得する場合のみ指定",
+ "schema": {
+ "type": "string",
+ "format": "date",
+ "minLength": 10,
+ "maxLength": 10
+ }
+ },
+ "date_to_optional": {
+ "name": "date_to",
+ "in": "query",
+ "description": "取得対象期間終了日
・半角
・10桁
・YYYY-MM-DD
例:2017-09-01
・対象期間及び取得件数/ページオフセット件数で取得する場合のみ指定",
+ "schema": {
+ "type": "string",
+ "format": "date",
+ "minLength": 10,
+ "maxLength": 10
+ }
+ },
+ "limit_50": {
+ "name": "limit",
+ "in": "query",
+ "description": "取得件数
・数字
・1-2桁
・上限値50",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 50
+ }
+ },
+ "limit_30": {
+ "name": "limit",
+ "in": "query",
+ "description": "取得件数
・数字
・1-2桁
・上限値30",
+ "schema": {
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 30
+ }
+ },
+ "limit_50_optional": {
+ "name": "limit",
+ "in": "query",
+ "description": "取得件数
・数字
・1-2桁
・上限値50
・対象期間及び取得件数/ページオフセット件数で取得する場合のみ指定",
+ "schema": {
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 50
+ }
+ },
+ "limit_30_optional": {
+ "name": "limit",
+ "in": "query",
+ "description": "取得件数
・数字
・1-2桁
・上限値30
・対象期間及び取得件数/ページオフセット件数で取得する場合のみ指定",
+ "schema": {
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 30
+ }
+ },
+ "offset": {
+ "name": "offset",
+ "in": "query",
+ "description": "取得ページ番号
・数字
・1-4桁",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ }
+ },
+ "offset_optional": {
+ "name": "offset",
+ "in": "query",
+ "description": "取得ページ番号
・数字
・1-4桁
・対象期間及び取得件数/ページオフセット件数で取得する場合のみ指定",
+ "schema": {
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ }
+ },
+ "information_id": {
+ "name": "information_id",
+ "in": "path",
+ "required": true,
+ "description": "お知らせID
・半角英数字
・1-16桁",
+ "schema": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 16
+ }
+ },
+ "arrive_id": {
+ "name": "arrive_id",
+ "in": "path",
+ "required": true,
+ "description": "到達番号
・半角数字
・16-18桁",
+ "schema": {
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ }
+ },
+ "notice_sub_id": {
+ "name": "notice_sub_id",
+ "in": "path",
+ "required": true,
+ "description": "通知通番
・数字
・1-3桁",
+ "schema": {
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 999
+ }
+ },
+ "X-eGovAPI-Trial-NON": {
+ "name": "X-eGovAPI-Trial",
+ "in": "header",
+ "description": "トライアルでAPIを動作させる場合は\"true\"を設定
指定なしの場合は非トライアルで動作
※電子送達はトライアル非対応のため、設定を行ってもトライアルにはなりません。",
+ "schema": {
+ "type": "boolean"
+ }
+ },
+ "X-eGovAPI-Trial-NON-share": {
+ "name": "X-eGovAPI-Trial",
+ "in": "header",
+ "description": "トライアルでAPIを動作させる場合は\"true\"を設定
指定なしの場合は非トライアルで動作
※アカウント間情報共有はトライアル非対応のため、設定を行ってもトライアルにはなりません。",
+ "schema": {
+ "type": "boolean"
+ }
+ },
+ "post_id": {
+ "name": "post_id",
+ "in": "path",
+ "required": true,
+ "description": "電子送達識別子
・半角英数字
・1-50桁",
+ "schema": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 50
+ }
+ }
+ },
+ "responses": {
+ "BadRequest": {
+ "description": "Bad Request",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Bad Request",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "リクエスト内容に問題あり",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメント",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ }
+ }
+ },
+ "BadRequest_Report": {
+ "description": "Bad Request",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Bad Request",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "リクエスト内容に問題あり",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "report_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/report_list"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "BadRequest_Report_withdraw": {
+ "description": "Bad Request",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Bad Request",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "リクエスト内容に問題あり",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "report_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/report_list_withdraw"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "BadRequest_error": {
+ "description": "Bad Request",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance",
+ "error_count"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Bad Request",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "リクエスト内容に問題あり",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "error_count": {
+ "description": "エラー件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ },
+ "error": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/error_bulk"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "BadRequest_token": {
+ "description": "Bad Request",
+ "content": {
+ "application/json": {
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/error_token"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "Unauthorized": {
+ "description": "Unauthorized",
+ "headers": {
+ "WWW-authenticate": {
+ "schema": {
+ "type": "string"
+ },
+ "description": "未認証時に返却(RFC7235に準拠)、文字コードISO-8859-1でレスポンスされる。
・realm: レルム名、必須
・error: エラー種別(invalid_request, invalid_token, insufficient_scope)
・error_description: エラー詳細"
+ }
+ }
+ },
+ "Unauthorized_token": {
+ "description": "Unauthorized",
+ "content": {
+ "application/json": {
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/error_token"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "NotFound": {
+ "description": "Not Found
HTTPステータスのみ返却"
+ },
+ "NotFound_token": {
+ "description": "Not Found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/error_token"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "InternalServerError": {
+ "description": "Internal Server Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Internal Server Error",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "サーバ内部でエラーが発生(システムエラー等)",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ }
+ }
+ },
+ "InternalServerError_Report": {
+ "description": "Internal Server Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Internal Server Error",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "サーバ内部でエラーが発生(システムエラー等)",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "report_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/report_list"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "InternalServerError_Report_withdraw": {
+ "description": "Internal Server Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Internal Server Error",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "サーバ内部でエラーが発生(システムエラー等)",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "report_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/report_list_withdraw"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "InternalServerError_error": {
+ "description": "Internal Server Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance",
+ "error_count"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Internal Server Error",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "サーバ内部でエラーが発生(システムエラー等)",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "error_count": {
+ "description": "エラー件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ }
+ }
+ }
+ }
+ }
+ },
+ "InternalServerError_token": {
+ "description": "Internal Server Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/error_token"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "RequestEntityTooLarge": {
+ "description": "Request Entity Too Large",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Request Entity Too Large",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "アップロードサイズファイル上限オーバー",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ }
+ }
+ },
+ "RequestEntityTooLarge_Report": {
+ "description": "Request Entity Too Large",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Request Entity Too Large",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "アップロードサイズファイル上限オーバー",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "report_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/report_list"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "RequestEntityTooLarge_Report_withdraw": {
+ "description": "Request Entity Too Large",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Request Entity Too Large",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "アップロードサイズファイル上限オーバー",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "report_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/report_list_withdraw"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "RequestEntityTooLarge_error": {
+ "description": "Request Entity Too Large",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance",
+ "error_count"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Request Entity Too Large",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "アップロードサイズファイル上限オーバー",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "error_count": {
+ "description": "エラー件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ }
+ }
+ }
+ }
+ }
+ },
+ "RequestEntityTooLarge_token": {
+ "description": "Request Entity Too Large",
+ "content": {
+ "application/json": {
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/error_token"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "ServiceUnavaiable": {
+ "description": "Service Unavaiable",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Service Unavaiable",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "サービス利用不可(サーバがメンテナンス中等)",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ }
+ }
+ },
+ "ServiceUnavaiable_Report": {
+ "description": "Service Unavaiable",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Service Unavaiable",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "サービス利用不可(サーバがメンテナンス中等)",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "report_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/report_list"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "ServiceUnavaiable_Report_withdraw": {
+ "description": "Service Unavaiable",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Service Unavaiable",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "サービス利用不可(サーバがメンテナンス中等)",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "report_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/report_list_withdraw"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "ServiceUnavaiable_error": {
+ "description": "Service Unavaiable",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance",
+ "error_count"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Service Unavaiable",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "サービス利用不可(サーバがメンテナンス中等)",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "error_count": {
+ "description": "エラー件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ }
+ }
+ }
+ }
+ }
+ },
+ "ServiceUnavaiable_token": {
+ "description": "Service Unavaiable",
+ "content": {
+ "application/json": {
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/error_token"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "MethodNotAllowed_token": {
+ "description": "Method Not Allowed",
+ "content": {
+ "application/json": {
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/error_token"
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ "schemas": {
+ "results_procedure": {
+ "type": "object",
+ "required": [
+ "file_data",
+ "configuration_file_name",
+ "file_info"
+ ],
+ "properties": {
+ "file_data": {
+ "description": "ファイル圧縮データ
・半角
・構成管理XMLファイル、申請書XMLファイル、スタイルシートファイル、形式チェックファイル、スキーマファイル、様式記入要領ファイル
・バイナリデータはBase64エンコードしたものを使用する
※「ファイル圧縮データ」は、以下の命名規則に従って作成したルートフォルダに申請データファイルを格納し、圧縮したファイルデータとなる。
ルートフォルダの命名規則
手続ID(半角英数字16桁)
ex)9999999999999999
【構造】
ルートフォルダ
├構成管理XML
├構成管理スタイルシート
├構成管理形式チェックファイル
├申請書XML × 様式数
├申請書スタイルシート × 様式数
├申請書形式チェックファイル × 様式数
├構成情報 × 個別署名必要数
├構成情報スタイルシート(個別署名の場合のみ)
└構成情報チェックファイル(個別署名の場合のみ)",
+ "type": "string",
+ "format": "byte",
+ "minLength": 1
+ },
+ "configuration_file_name": {
+ "type": "array",
+ "items": {
+ "description": "手続識別子に紐づく構成管理XMLファイル名(または、構成情報XMLファイル名)
・全半角
・構成情報XMLファイル名は申請が個別ファイル署名形式の場合のみ出力。",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 28
+ }
+ },
+ "file_info": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/file_info"
+ }
+ ]
+ }
+ }
+ },
+ "file_info": {
+ "type": "array",
+ "description": "手続識別子に紐づく様式情報",
+ "items": {
+ "type": "object",
+ "properties": {
+ "form_id": {
+ "description": "手続識別子に紐づく様式ID
・半角英数字",
+ "type": "string",
+ "minLength": 18,
+ "maxLength": 18
+ },
+ "form_version": {
+ "description": "手続識別子に紐づく様式バージョン名
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ },
+ "form_name": {
+ "description": "手続識別子に紐づく様式名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ },
+ "apply_file_name": {
+ "description": "手続識別子に紐づく申請書XMLファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "xsl_file_name": {
+ "description": "手続識別子に紐づくスタイルシートファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "server_check_file_name": {
+ "description": "手続識別子に紐づく形式チェックファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "schema_file_name": {
+ "description": "手続識別子に紐づくスキーマファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "style_indication_file": {
+ "description": "手続識別子に紐づく様式記入要領ファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ },
+ "results_preprint": {
+ "type": "object",
+ "required": [
+ "apply_file"
+ ],
+ "properties": {
+ "apply_file": {
+ "description": "プレ印字された申請書XML",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/data_pre"
+ }
+ ]
+ }
+ }
+ },
+ "results_apply": {
+ "type": "object",
+ "required": [
+ "arrive_id",
+ "arrive_date",
+ "corporation_name",
+ "applicant_name",
+ "apply_type",
+ "proc_name",
+ "ministry_name",
+ "submission_destination",
+ "apply_form"
+ ],
+ "properties": {
+ "arrive_id": {
+ "description": "到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "arrive_date": {
+ "description": "到達日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "corporation_name": {
+ "description": "法人名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "applicant_name": {
+ "description": "申請者名
・全角",
+ "type": "string",
+ "minLength": 3,
+ "maxLength": 256
+ },
+ "apply_type": {
+ "description": "申請区分
・全角
・「新規申請」または「再提出」",
+ "type": "string",
+ "minLength": 3,
+ "maxLength": 4
+ },
+ "proc_name": {
+ "description": "手続名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "ministry_name": {
+ "description": "府省名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 12
+ },
+ "submission_destination": {
+ "description": "提出先
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "apply_form": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/apply_form"
+ }
+ ]
+ },
+ "apply_pay_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/apply_pay_list_apply"
+ }
+ ]
+ }
+ }
+ },
+ "apply_form": {
+ "description": "申請した各様式・書類の内容",
+ "type": "object",
+ "properties": {
+ "form": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/form"
+ }
+ ]
+ },
+ "attached_file": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/attached_file"
+ }
+ ]
+ }
+ }
+ },
+ "form": {
+ "description": "様式",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "form_name": {
+ "description": "様式名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ }
+ }
+ }
+ },
+ "attached_file": {
+ "description": "様式",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "attached_file_name": {
+ "description": "添付書類名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ },
+ "apply_pay_list_apply": {
+ "type": "array",
+ "description": "納付情報",
+ "items": {
+ "type": "object",
+ "properties": {
+ "pay_number": {
+ "description": "納付番号
・半角英数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 16
+ },
+ "confirm_number": {
+ "description": "確認番号
・半角数字",
+ "type": "string",
+ "minLength": 6,
+ "maxLength": 6
+ },
+ "facility_number": {
+ "description": "収納機関番号
・半角英数字",
+ "type": "string",
+ "minLength": 5,
+ "maxLength": 5
+ },
+ "pay_name_kana": {
+ "description": "納付手続名(カナ)
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 24
+ },
+ "total_fee": {
+ "description": "払込金額
・数字",
+ "type": "integer",
+ "format": "int64",
+ "minimum": 0,
+ "maximum": 9223372036854776000
+ },
+ "pay_expired": {
+ "description": "払込期限
・半角
YYYY-MM-DD
例:2017-09-01",
+ "type": "string",
+ "format": "date",
+ "minLength": 10,
+ "maxLength": 10
+ }
+ }
+ }
+ },
+ "results_bulk_apply": {
+ "type": "object",
+ "required": [
+ "send_number",
+ "send_date",
+ "file_name",
+ "apply_count"
+ ],
+ "properties": {
+ "send_number": {
+ "description": "発行した送信番号
・半角数字 ",
+ "type": "string",
+ "minLength": 18,
+ "maxLength": 18
+ },
+ "send_date": {
+ "description": "送信日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "file_name": {
+ "description": "一括申請データのファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "apply_count": {
+ "description": "申請件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ }
+ }
+ },
+ "results_apply_amend": {
+ "type": "object",
+ "required": [
+ "arrive_id",
+ "amend_date"
+ ],
+ "properties": {
+ "arrive_id": {
+ "description": "補正対象の到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "amend_date": {
+ "description": "補正受付日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ }
+ }
+ },
+ "results_apply_withdraw": {
+ "type": "object",
+ "required": [
+ "arrive_id",
+ "withdraw_date",
+ "applicant_name",
+ "proc_name",
+ "ministry_name"
+ ],
+ "properties": {
+ "arrive_id": {
+ "description": "取り下げ依頼対象の到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "withdraw_date": {
+ "description": "取り下げ依頼日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "corporation_name": {
+ "description": "法人名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "applicant_name": {
+ "description": "申請者名
・全角",
+ "type": "string",
+ "minLength": 3,
+ "maxLength": 256
+ },
+ "proc_name": {
+ "description": "手続名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "ministry_name": {
+ "description": "府省名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 12
+ },
+ "submission_destination": {
+ "description": "提出先
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ },
+ "results_apply_check": {
+ "type": "object",
+ "required": [
+ "message",
+ "error_count"
+ ],
+ "properties": {
+ "message": {
+ "description": "処理結果に基づくメッセージ
・全半角",
+ "type": "string"
+ },
+ "error_count": {
+ "description": "エラーレポート件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "report_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/report_list"
+ }
+ ]
+ }
+ }
+ },
+ "results_apply_lists": {
+ "type": "object",
+ "properties": {
+ "apply_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/package_apply_list"
+ }
+ ]
+ }
+ }
+ },
+ "package_apply_list": {
+ "type": "array",
+ "description": "申請案件一覧情報項目",
+ "items": {
+ "type": "object",
+ "properties": {
+ "no": {
+ "description": "項番
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ },
+ "send_number": {
+ "description": "送信番号
・半角数字",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 18
+ },
+ "send_date": {
+ "description": "送信日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 19
+ },
+ "status": {
+ "description": "現在の申請ステータス
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "arrive_id": {
+ "description": "到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "arrive_date": {
+ "description": "到達日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "corporation_name": {
+ "description": "法人名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "applicant_name": {
+ "description": "申請者名
・全角",
+ "type": "string",
+ "minLength": 3,
+ "maxLength": 256
+ },
+ "proc_name": {
+ "description": "申請案件の手続名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "submission_destination": {
+ "description": "提出先
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "withdraw_flag": {
+ "description": "取下げ可能フラグ",
+ "type": "boolean"
+ },
+ "pay_status": {
+ "description": "納付状況
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 6
+ },
+ "notice_count": {
+ "description": "通知件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "doc_count": {
+ "description": "公文書件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "apply_pay_count": {
+ "description": "納付情報件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "notice_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/notice_list_apply"
+ }
+ ]
+ },
+ "official_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/official_list"
+ }
+ ]
+ },
+ "apply_pay_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/apply_pay_list_apply"
+ }
+ ]
+ },
+ "applied_account": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128,
+ "description": "提出実施アカウント
・半角"
+ }
+ }
+ }
+ },
+ "results_apply_detail": {
+ "type": "object",
+ "required": [
+ "status",
+ "arrive_id",
+ "arrive_date",
+ "corporation_name",
+ "applicant_name",
+ "proc_name",
+ "submission_destination",
+ "withdraw_flag",
+ "pay_status",
+ "notice_count",
+ "doc_count",
+ "apply_pay_count"
+ ],
+ "properties": {
+ "status": {
+ "description": "現在の申請ステータス
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "arrive_id": {
+ "description": "到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "arrive_date": {
+ "description": "到達日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "corporation_name": {
+ "description": "法人名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "applicant_name": {
+ "description": "申請者名
・全角",
+ "type": "string",
+ "minLength": 3,
+ "maxLength": 256
+ },
+ "proc_name": {
+ "description": "申請案件の手続名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "submission_destination": {
+ "description": "提出先
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "withdraw_flag": {
+ "description": "取下げ可能フラグ",
+ "type": "boolean"
+ },
+ "pay_status": {
+ "description": "納付状況
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 6
+ },
+ "notice_count": {
+ "description": "通知件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "doc_count": {
+ "description": "公文書件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "apply_pay_count": {
+ "description": "納付情報件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "notice_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/notice_list_apply"
+ }
+ ]
+ },
+ "official_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/official_list"
+ }
+ ]
+ },
+ "apply_pay_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/apply_pay_list_apply"
+ }
+ ]
+ },
+ "applied_account": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128,
+ "description": "提出実施アカウント
・半角"
+ }
+ }
+ },
+ "notice_list_apply": {
+ "type": "array",
+ "description": "申請案件に関する通知",
+ "items": {
+ "type": "object",
+ "properties": {
+ "notice_sub_id": {
+ "description": "通知通番
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 999
+ },
+ "issue_date": {
+ "description": "発行日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "notice_data_type": {
+ "description": "種別
・全角
補正通知も含む",
+ "type": "string",
+ "minLength": 2,
+ "maxLength": 4
+ },
+ "notice_title": {
+ "description": "件名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "notice_sentence": {
+ "description": "本文
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 512
+ },
+ "issuer_organization": {
+ "description": "発出元
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "correct_expired_date": {
+ "description": "補正期限年月日
・半角
・YYYY-MM-DD
例:2017-09-01",
+ "type": "string",
+ "format": "date",
+ "minLength": 10,
+ "maxLength": 10
+ },
+ "correct_completed_date": {
+ "description": "補正日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "format": "date",
+ "minLength": 19,
+ "maxLength": 19
+ }
+ }
+ }
+ },
+ "official_list": {
+ "type": "array",
+ "description": "取得要求した申請案件の公文書
公文書が発行された申請案件のみ",
+ "items": {
+ "type": "object",
+ "properties": {
+ "notice_sub_id": {
+ "description": "通知通番
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 999
+ },
+ "allowed_date": {
+ "description": "発行日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "doc_title": {
+ "description": "件名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "doc_download_expired_date": {
+ "description": "取得期限
・半角
・YYYY-MM-DD
例:2017-09-01",
+ "type": "string",
+ "format": "date",
+ "minLength": 10,
+ "maxLength": 10
+ },
+ "doc_download_date": {
+ "description": "取得完了日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "format": "date",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "sign": {
+ "description": "署名有無
・全角
あり/なし",
+ "type": "string",
+ "minLength": 2,
+ "maxLength": 2
+ }
+ }
+ }
+ },
+ "results_apply_report": {
+ "type": "object",
+ "properties": {
+ "error_report_info": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/error_report_info"
+ }
+ ]
+ }
+ }
+ },
+ "error_report_info": {
+ "type": "array",
+ "description": "エラーレポート情報
送信日時の降順でソート
要素の上限回数はシステム設定値",
+ "items": {
+ "type": "object",
+ "properties": {
+ "send_number": {
+ "description": "発行した送信番号
・半角数字 ",
+ "type": "string",
+ "minLength": 18,
+ "maxLength": 18
+ },
+ "send_date": {
+ "description": "送信日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "file_name": {
+ "description": "一括申請データのファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "apply_count": {
+ "description": "一括申請データに含まれていた申請件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ },
+ "arrive_count": {
+ "description": "到達した申請件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ },
+ "error_count": {
+ "description": "エラーとなった申請件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "result": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/result_report_info_result"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "result_report_info_result": {
+ "type": "array",
+ "description": "申請結果・エラーの内容
申請フォルダ名の昇順でソート",
+ "items": {
+ "type": "object",
+ "properties": {
+ "arrive_id": {
+ "description": "到達番号
・半角数字
エラーが発生して到達されていない場合は”-”",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "arrive_date": {
+ "description": "到達日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00
エラーが発生して到達されていない場合は”-”",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "proc_name": {
+ "description": "手続名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "folder_name": {
+ "description": "一括申請データ内の申請フォルダ名
・半角英数字",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "report_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/report_list"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string"
+ }
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ },
+ "results_message_lists": {
+ "type": "object",
+ "properties": {
+ "information_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/message_list"
+ }
+ ]
+ }
+ }
+ },
+ "message_list": {
+ "type": "array",
+ "description": "手続に関するご案内一覧
※発出日時の降順でソート
要素の上限回数はシステム設定値",
+ "items": {
+ "type": "object",
+ "properties": {
+ "information_id": {
+ "description": "お知らせID
・半角英数字",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 16
+ },
+ "issuer_organization": {
+ "description": "発出元
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "issue_date": {
+ "description": "発出日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "proc_first_category": {
+ "description": "手続分野大分類
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 400
+ },
+ "proc_second_category": {
+ "description": "手続分野中分類
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 400
+ },
+ "proc_third_category": {
+ "description": "手続分野小分類
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 400
+ },
+ "information_title": {
+ "description": "タイトル
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ },
+ "results_message": {
+ "type": "object",
+ "required": [
+ "information"
+ ],
+ "properties": {
+ "information": {
+ "description": "手続に関するご案内",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/message"
+ }
+ ]
+ }
+ }
+ },
+ "message": {
+ "type": "object",
+ "required": [
+ "issuer_organization",
+ "issue_date",
+ "proc_first_category",
+ "proc_second_category",
+ "proc_third_category",
+ "information_title",
+ "information_data"
+ ],
+ "properties": {
+ "issuer_organization": {
+ "description": "発出元
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "issue_date": {
+ "description": "発出日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "proc_first_category": {
+ "description": "手続分野大分類
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 400
+ },
+ "proc_second_category": {
+ "description": "手続分野中分類
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 400
+ },
+ "proc_third_category": {
+ "description": "手続分野小分類
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 400
+ },
+ "information_title": {
+ "description": "タイトル
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "information_data": {
+ "description": "本文
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "attached_file_list": {
+ "description": "添付ファイルリスト",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/data_optional"
+ }
+ ]
+ }
+ }
+ },
+ "results_notice_lists": {
+ "type": "object",
+ "properties": {
+ "notice_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/notice_list"
+ }
+ ]
+ }
+ }
+ },
+ "notice_list": {
+ "type": "array",
+ "description": "申請案件に関する通知一覧
※発出日時の降順でソート
要素の上限回数はシステム設定値",
+ "items": {
+ "type": "object",
+ "properties": {
+ "issuer_organization": {
+ "description": "発出元
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "arrive_id": {
+ "description": "到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "notice_sub_id": {
+ "description": "通知通番
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 999
+ },
+ "notice_issue_date": {
+ "description": "通知発行日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "type": {
+ "description": "種別
・全角",
+ "type": "string",
+ "minLength": 2,
+ "maxLength": 4
+ },
+ "title": {
+ "description": "タイトル
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "corporation_name_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/corporation_name_list"
+ }
+ ]
+ },
+ "applicant_name_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/applicant_name_list"
+ }
+ ]
+ },
+ "proc_name": {
+ "description": "手続名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "notified_account": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128,
+ "description": "通知対象アカウント
・半角"
+ }
+ }
+ }
+ },
+ "corporation_name_list": {
+ "description": "法人名リスト",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "corporation_name": {
+ "description": "法人名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ },
+ "applicant_name_list": {
+ "description": "申請者名リスト",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "applicant_name": {
+ "description": "申請者名
・全角",
+ "type": "string",
+ "minLength": 3,
+ "maxLength": 256
+ }
+ }
+ }
+ },
+ "results_notice": {
+ "type": "object",
+ "required": [
+ "notice"
+ ],
+ "properties": {
+ "notice": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/notice"
+ }
+ ]
+ }
+ }
+ },
+ "notice": {
+ "type": "object",
+ "description": "申請案件に関する通知",
+ "required": [
+ "issuer_organization",
+ "notice_issue_date",
+ "notice_title",
+ "proc_name"
+ ],
+ "properties": {
+ "issuer_organization": {
+ "description": "発出元
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "notice_issue_date": {
+ "description": "通知発行日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "notice_type": {
+ "description": "種別
・全角
お知らせ、納付、補正、取下げ",
+ "type": "string",
+ "minLength": 2,
+ "maxLength": 4
+ },
+ "correct_type": {
+ "description": "補正種別
※種別が\"補正\"の場合のみ以下を出力
部分補正、再提出、手続終了(再提出可)
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 10
+ },
+ "correct_expired_date": {
+ "description": "補正期限年月日
※種別が\"補正\"の場合のみ出力
・半角
・YYYY-MM-DD
例:2017-09-01",
+ "type": "string",
+ "format": "date",
+ "minLength": 10,
+ "maxLength": 10
+ },
+ "correct_completed_date": {
+ "description": "補正完了日時
※種別が\"補正\"の場合かつ既に補正を行っている場合のみ出力
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "format": "date",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "notice_title": {
+ "description": "タイトル
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "notice_sentence": {
+ "description": "本文
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 512
+ },
+ "attached_file_list": {
+ "description": "添付ファイルリスト",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/data_optional"
+ }
+ ]
+ },
+ "corporation_name_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/corporation_name_list"
+ }
+ ]
+ },
+ "applicant_name_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/applicant_name_list"
+ }
+ ]
+ },
+ "proc_name": {
+ "description": "手続名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "notified_account": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128,
+ "description": "通知対象アカウント
・半角"
+ }
+ }
+ },
+ "results_official_document": {
+ "type": "object",
+ "required": [
+ "file_data",
+ "file_name_list"
+ ],
+ "properties": {
+ "file_data": {
+ "description": "ファイル圧縮データ
・半角
・鑑ファイル、添付ファイル
・バイナリデータはBase64エンコードしたものを使用する。",
+ "type": "string",
+ "format": "byte",
+ "minLength": 1
+ },
+ "file_name_list": {
+ "description": "ファイル圧縮データに含まれている公文書のファイル名のリスト",
+ "type": "array",
+ "items": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/file_name_list_official"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "file_name_list_official": {
+ "type": "object",
+ "required": [
+ "file_name"
+ ],
+ "properties": {
+ "file_name": {
+ "description": "ファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ },
+ "results_official_document_complete": {
+ "type": "object",
+ "required": [
+ "arrive_id",
+ "notice_sub_id",
+ "proc_name",
+ "doc_title",
+ "download_date",
+ "file_name_list"
+ ],
+ "properties": {
+ "arrive_id": {
+ "description": "取得完了要求した到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "notice_sub_id": {
+ "description": "取得完了要求した通知通番
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 999
+ },
+ "proc_name": {
+ "description": "取得完了要求した公文書の手続名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "doc_title": {
+ "description": "取得完了要求した公文書の件名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "download_date": {
+ "description": "取得完了要求した公文書の取得日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "file_name_list": {
+ "description": "取得完了要求した公文書のファイル名リスト",
+ "type": "array",
+ "items": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/file_name_list"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "file_name_list": {
+ "type": "object",
+ "required": [
+ "file_name"
+ ],
+ "properties": {
+ "file_name": {
+ "description": "取得完了要求した公文書のファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ },
+ "results_official_document_verify": {
+ "type": "object",
+ "required": [
+ "sig_verification_xml_file_name",
+ "verify_result"
+ ],
+ "properties": {
+ "sig_verification_xml_file_name": {
+ "description": "署名検証XMLファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "attached_file_name": {
+ "description": "署名検証対象の添付ファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "verify_result": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/verify_result"
+ }
+ ]
+ }
+ }
+ },
+ "verify_result": {
+ "description": "検証結果",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "official": {
+ "description": "官職証明書検証結果項目
官職証明書の検証が行われた場合に表示",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/official"
+ }
+ ]
+ },
+ "government": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/government"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "official": {
+ "type": "object",
+ "properties": {
+ "validation_result": {
+ "description": "署名検証結果
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "certificate_result": {
+ "description": "証明書検証結果
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "certificate_count": {
+ "description": "証明書件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 999
+ },
+ "publisher": {
+ "description": "発行者
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "owner": {
+ "description": "所有者
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "publisher_dn": {
+ "description": "発行者[DN]
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "owner_dn": {
+ "description": "所有者[DN]
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "serial_number": {
+ "description": "シリアルナンバー
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "start_date": {
+ "description": "有効期間開始日時
・・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00'",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "end_date": {
+ "description": "有効期間終了日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ }
+ }
+ },
+ "government": {
+ "type": "array",
+ "description": "行政機関証明書検証結果
行政機関証明書書の検証が行われた場合に表示",
+ "items": {
+ "type": "object",
+ "properties": {
+ "publisher_dn": {
+ "description": "発行者[DN]
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "owner_dn": {
+ "description": "所有者[DN]
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "serial_number": {
+ "description": "シリアルナンバー
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "start_date": {
+ "description": "有効期間開始日時
・・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00'",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "end_date": {
+ "description": "有効期間終了日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ }
+ }
+ }
+ },
+ "results_payment_lists": {
+ "type": "object",
+ "required": [
+ "bank_list",
+ "financial_type_list_date"
+ ],
+ "properties": {
+ "bank_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/bank_list"
+ }
+ ]
+ },
+ "financial_type_list_date": {
+ "description": "金融機関種別一覧情報日時
・半角
YYYY-MM-DD
例:2017-09-01",
+ "type": "string",
+ "minLength": 10,
+ "maxLength": 10
+ }
+ }
+ },
+ "bank_list": {
+ "type": "object",
+ "description": "金融機関リスト",
+ "required": [
+ "trust_bank",
+ "shinkin_bank",
+ "credit_union",
+ "norinchukin_bank",
+ "labour_bank"
+ ],
+ "properties": {
+ "trust_bank": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/trust_bank"
+ }
+ ]
+ },
+ "shinkin_bank": {
+ "description": "信用金庫情報項目",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/bank_common"
+ }
+ ]
+ },
+ "credit_union": {
+ "description": "信用組合情報項目",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/bank_common"
+ }
+ ]
+ },
+ "norinchukin_bank": {
+ "description": "農林中央金庫情報項目",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/bank_common"
+ }
+ ]
+ },
+ "labour_bank": {
+ "description": "労働金庫情報項目",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/bank_common"
+ }
+ ]
+ }
+ }
+ },
+ "trust_bank": {
+ "description": "銀行・信託銀行一覧項目",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "initial_name": {
+ "description": "頭文字
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1
+ },
+ "bank": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/bank_trust"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "bank_trust": {
+ "description": "金融機関情報",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "financial_name": {
+ "description": "金融機関名称
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "service_name": {
+ "description": "ネットバンク商品名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "url": {
+ "description": "URL
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ },
+ "bank_common": {
+ "type": "object",
+ "properties": {
+ "bank": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/bank"
+ }
+ ]
+ }
+ }
+ },
+ "bank": {
+ "description": "金融機関情報",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "financial_name": {
+ "description": "金融機関名称
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "url": {
+ "description": "URL
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ },
+ "results_payment": {
+ "type": "object",
+ "required": [
+ "arrive_id",
+ "proc_name"
+ ],
+ "properties": {
+ "arrive_id": {
+ "description": "到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "proc_name": {
+ "description": "手続名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "apply_pay_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/apply_pay_list_payment"
+ }
+ ]
+ }
+ }
+ },
+ "apply_pay_list_payment": {
+ "type": "array",
+ "description": "納付情報",
+ "items": {
+ "type": "object",
+ "properties": {
+ "pay_number": {
+ "description": "納付番号
・半角英数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 16
+ },
+ "confirm_number": {
+ "description": "確認番号
・半角数字",
+ "type": "string",
+ "minLength": 6,
+ "maxLength": 6
+ },
+ "facility_number": {
+ "description": "収納機関番号
・半角英数字",
+ "type": "string",
+ "minLength": 5,
+ "maxLength": 5
+ },
+ "pay_name_kana": {
+ "description": "納付手続名(カナ)
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 24
+ },
+ "pay_expired": {
+ "description": "払込期限
・半角
YYYY-MM-DD
例:2017-09-01",
+ "type": "string",
+ "format": "date",
+ "minLength": 10,
+ "maxLength": 10
+ },
+ "total_fee": {
+ "description": "払込金額
・半角数字",
+ "type": "integer",
+ "format": "int64",
+ "minimum": 0,
+ "maximum": 9223372036854776000
+ },
+ "pay_status": {
+ "description": "納付状況
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 6
+ },
+ "pay_date": {
+ "description": "納付日
・半角
YYYY-MM-DD
例:2017-09-01",
+ "type": "string",
+ "format": "date",
+ "minLength": 10,
+ "maxLength": 10
+ },
+ "pay_memo": {
+ "description": "通信欄
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "pay_flag": {
+ "description": "納付フラグ
・半角英数字",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1
+ }
+ }
+ }
+ },
+ "results_payment_site": {
+ "type": "object",
+ "required": [
+ "URL",
+ "facility_number",
+ "treasury_money_code",
+ "parameter_tag_name",
+ "information_link_data"
+ ],
+ "properties": {
+ "URL": {
+ "description": "URL
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "facility_number": {
+ "description": "収納機関番号
・半角英数字",
+ "type": "string",
+ "minLength": 5,
+ "maxLength": 5
+ },
+ "treasury_money_code": {
+ "description": "国庫金コード
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1
+ },
+ "parameter_tag_name": {
+ "description": "パラメータタグ名
・半角英数字",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "information_link_data": {
+ "description": "情報リンクデータ
・半角
・バイナリデータはBase64エンコードしたものを使用する。",
+ "type": "string",
+ "format": "byte",
+ "minLength": 1
+ }
+ }
+ },
+ "request_introspect": {
+ "type": "object",
+ "required": [
+ "token"
+ ],
+ "properties": {
+ "token": {
+ "description": "アクセストークン取得リクエストで取得したアクセストークンまたはリフレッシュトークン
・半角英数字",
+ "type": "string"
+ },
+ "token_type_hint": {
+ "description": "「access_token」または「refresh_token」
・半角英数字
",
+ "type": "string",
+ "minLength": 12,
+ "maxLength": 13
+ }
+ }
+ },
+ "results_introspect": {
+ "type": "object",
+ "required": [
+ "active"
+ ],
+ "properties": {
+ "exp": {
+ "description": "トークンの有効期限が切れる時のUNIXタイム・スタンプ
・数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "integer",
+ "format": "int32"
+ },
+ "iat": {
+ "description": "トークンが付与された時のUNIXタイム・スタンプ
・数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "integer",
+ "format": "int32"
+ },
+ "auth_time": {
+ "description": "ユーザーが認証された時のUNIXタイム・スタンプ
・数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却
※リフレッシュトークン指定時は返却しない",
+ "type": "integer",
+ "format": "int32"
+ },
+ "jti": {
+ "description": "トークンの識別子
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "string"
+ },
+ "iss": {
+ "description": "トークンの発行者
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "string"
+ },
+ "aud": {
+ "description": "トークン発行対象の識別子
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "string"
+ },
+ "sub": {
+ "description": "ユーザーの識別子
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "string"
+ },
+ "typ": {
+ "description": "トークンのタイプ
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "string"
+ },
+ "azp": {
+ "description": "認可対象の識別子
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "string"
+ },
+ "session_state": {
+ "description": "セッション状態を表す識別子
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "string"
+ },
+ "email": {
+ "description": "ユーザーのメールアドレス
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却
※リフレッシュトークン指定時は返却しない",
+ "type": "string"
+ },
+ "email_verified": {
+ "description": "emailアドレスの確認有無
・半角英字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却
※リフレッシュトークン指定時は返却しない",
+ "type": "boolean"
+ },
+ "acr": {
+ "description": "認証コンテキストのクラス
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却
※リフレッシュトークン指定時は返却しない",
+ "type": "string"
+ },
+ "scope": {
+ "description": "アクセストークンの有効範囲
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "string"
+ },
+ "sid": {
+ "description": "セッション状態を表す識別子
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "string"
+ },
+ "egov_idp": {
+ "description": "アイデンティティプロバイダの識別子
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却
※リフレッシュトークン指定時は返却しない",
+ "type": "string"
+ },
+ "egov_extidp_auth_time": {
+ "description": "ユーザーが認証された時のUNIXタイム・スタンプ(ミリ秒)
・数字
外部IDPアカウント(GビズIDアカウント)の場合かつトークンが有効の場合のみ、RFC7662に準拠したパラメータを返却
※リフレッシュトークン指定時は返却しない",
+ "type": "integer",
+ "format": "int64"
+ },
+ "egov_gbizid_account_type": {
+ "description": "GビズIDのアカウント種別(1:gbizエントリー、2:gbizプライム、3:gbizメンバー)
・半角数字
外部IDPアカウント(GビズIDアカウント)の場合かつトークンが有効の場合のみ、RFC7662に準拠したパラメータを返却
※リフレッシュトークン指定時は返却しない",
+ "type": "string"
+ },
+ "client_id": {
+ "description": "トークンの付与先のクライアント
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "string"
+ },
+ "username": {
+ "description": "トークンを付与したユーザーのユーザー名
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "string"
+ },
+ "active": {
+ "description": "トークンの有効性
・半角英字",
+ "type": "boolean"
+ }
+ }
+ },
+ "request_token": {
+ "type": "object",
+ "required": [
+ "grant_type",
+ "code",
+ "redirect_uri",
+ "refresh_token",
+ "scope"
+ ],
+ "properties": {
+ "grant_type": {
+ "description": "取得時「authorization_code」固定
再取得時「refresh_token」固定
・半角英数字",
+ "type": "string",
+ "minLength": 13,
+ "maxLength": 18
+ },
+ "code": {
+ "description": "ユーザー認可リクエストで取得済の認可コード
※取得時のみ指定
・半角英数字",
+ "type": "string"
+ },
+ "redirect_uri": {
+ "description": "ユーザー認可リクエストで指定した「redirect_uri」
※取得時のみ指定
・半角英数字",
+ "type": "string"
+ },
+ "code_verifier": {
+ "description": "ユーザー認可リクエストで指定した「code_challenge」のハッシュ値の元となった文字列を指定
※取得時のみ指定
・半角英数字
・PKCE対策",
+ "type": "string",
+ "minLength": 43,
+ "maxLength": 128
+ },
+ "refresh_token": {
+ "description": "アクセストークン取得リクエストで取得したリフレッシュトークン
※再取得時のみ指定
・半角英数字",
+ "type": "string"
+ }
+ }
+ },
+ "results_token": {
+ "type": "object",
+ "required": [
+ "access_token",
+ "expires_in",
+ "refresh_expires_in",
+ "refresh_token",
+ "token_type",
+ "scope",
+ "id_token",
+ "not-before-policy",
+ "session_state"
+ ],
+ "properties": {
+ "access_token": {
+ "description": "アクセストークン
・半角英数字",
+ "type": "string"
+ },
+ "expires_in": {
+ "description": "アクセストークンの有効期限(秒)
・数字",
+ "type": "integer",
+ "format": "int32"
+ },
+ "refresh_expires_in": {
+ "description": "リフレッシュトークンの有効期限(秒)
・数字",
+ "type": "integer",
+ "format": "int32"
+ },
+ "refresh_token": {
+ "description": "リフレッシュトークン
・半角英数字",
+ "type": "string"
+ },
+ "token_type": {
+ "description": "トークン・タイプ
・半角英数字
「Bearer」固定",
+ "type": "string",
+ "minLength": 6,
+ "maxLength": 6
+ },
+ "id_token": {
+ "description": "IDトークン
・半角英数字",
+ "type": "string"
+ },
+ "not-before-policy": {
+ "description": "アクセスが有効となる日時(UNIXタイム・スタンプ)
・数字",
+ "type": "integer",
+ "format": "int32"
+ },
+ "session_state": {
+ "description": "セッション状態を表す識別子
・半角英数字",
+ "type": "string"
+ },
+ "scope": {
+ "description": "ユーザ認可リクエストで指定したscope
・半角英数字",
+ "type": "string"
+ }
+ }
+ },
+ "report_list": {
+ "description": "エラーレポート一覧",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "form_name": {
+ "description": "様式名
・全角
・エラー内容が様式に依らない場合は”-”",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ },
+ "attached_file_name": {
+ "description": "添付書類名
・全半角
・エラー内容が添付書類に依らない場合は”-”",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "file_name": {
+ "description": "ファイル名
・全半角
・エラー内容がファイルに依らない場合は”-”
・構成管理xmlのファイル名を設定",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "item": {
+ "description": "項目名
・全半角
・エラー内容が項目に依らない場合は”-”
・様式の項目名を設定",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "content": {
+ "description": "エラー内容
・全半角",
+ "type": "string"
+ }
+ }
+ }
+ },
+ "report_list_withdraw": {
+ "description": "エラーレポート一覧",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "file_name": {
+ "description": "ファイル名
・全半角
・エラー内容がファイルに依らない場合は”-”
・構成管理xmlのファイル名を設定",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "item": {
+ "description": "項目名
・全半角
・エラー内容が項目に依らない場合は”-”
・様式の項目名を設定",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "content": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ },
+ "application_info": {
+ "description": "申請届出識別情報
繰り返し回数1~10",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "required": [
+ "label",
+ "value"
+ ],
+ "properties": {
+ "label": {
+ "description": "入力項目名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 32
+ },
+ "value": {
+ "description": "入力値
・全半角",
+ "type": "string",
+ "format": "byte",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ },
+ "metadata_common": {
+ "required": [
+ "title",
+ "detail",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "API名称
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "詳細情報
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURL
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ },
+ "result_set": {
+ "type": "object",
+ "description": "結果セット",
+ "required": [
+ "all_count",
+ "limit",
+ "offset",
+ "count"
+ ],
+ "properties": {
+ "all_count": {
+ "description": "全件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "limit": {
+ "description": "取得件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ },
+ "offset": {
+ "description": "オフセット件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "count": {
+ "description": "取得結果件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ }
+ }
+ },
+ "data": {
+ "type": "object",
+ "required": [
+ "file_name",
+ "file_data"
+ ],
+ "properties": {
+ "file_name": {
+ "description": "ファイル名
拡張子「.zip」も含めて設定
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "file_data": {
+ "description": "ファイルデータ
・半角
・バイナリデータはBase64エンコードしたものを使用する。",
+ "type": "string",
+ "format": "byte",
+ "minLength": 1
+ }
+ }
+ },
+ "data_pre": {
+ "type": "object",
+ "required": [
+ "file_name",
+ "file_data"
+ ],
+ "properties": {
+ "file_name": {
+ "description": "ファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "file_data": {
+ "description": "ファイルデータ
・半角
・バイナリデータはBase64エンコードしたものを使用する。",
+ "type": "string",
+ "format": "byte",
+ "minLength": 1
+ }
+ }
+ },
+ "data_optional": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "file_name": {
+ "description": "ファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "file_data": {
+ "description": "ファイルデータ
・半角
・バイナリデータはBase64エンコードしたものを使用する。",
+ "type": "string",
+ "format": "byte",
+ "minLength": 1
+ }
+ }
+ }
+ },
+ "links_lists": {
+ "type": "object",
+ "description": "接続URL情報",
+ "required": [
+ "self"
+ ],
+ "properties": {
+ "self": {
+ "description": "接続URL情報(自身)
・半角",
+ "type": "string",
+ "minLength": 1
+ },
+ "previous": {
+ "description": "接続URL情報(前頁)
・半角",
+ "type": "string",
+ "minLength": 1
+ },
+ "next": {
+ "description": "接続URL情報(次頁)
・半角",
+ "type": "string",
+ "minLength": 1
+ }
+ }
+ },
+ "links_lists_note": {
+ "type": "object",
+ "description": "接続URL情報",
+ "required": [
+ "self"
+ ],
+ "properties": {
+ "self": {
+ "description": "接続URL情報(自身)
・半角",
+ "type": "string",
+ "minLength": 1
+ },
+ "previous": {
+ "description": "接続URL情報(前頁)
・半角
・送信番号指定の場合、出力しない
・前頁が存在しない場合、出力しない",
+ "type": "string",
+ "minLength": 1
+ },
+ "next": {
+ "description": "接続URL情報(次頁)
・半角
・送信番号指定の場合、出力しない
・次頁が存在しない場合、出力しない",
+ "type": "string",
+ "minLength": 1
+ }
+ }
+ },
+ "links_apply": {
+ "type": "object",
+ "description": "接続URL情報",
+ "required": [
+ "self",
+ "status"
+ ],
+ "properties": {
+ "self": {
+ "description": "接続URL情報(自身)
・半角",
+ "type": "string",
+ "minLength": 1
+ },
+ "status": {
+ "description": "接続URL情報(申請案件取得)
・半角",
+ "type": "string",
+ "minLength": 1
+ }
+ }
+ },
+ "links_bulk_apply": {
+ "type": "object",
+ "description": "接続URL情報",
+ "required": [
+ "self",
+ "list",
+ "report"
+ ],
+ "properties": {
+ "self": {
+ "description": "接続URL情報(自身)
・半角",
+ "type": "string",
+ "minLength": 1
+ },
+ "list": {
+ "description": "接続URL情報(申請案件一覧)
・半角",
+ "type": "string",
+ "minLength": 1
+ },
+ "report": {
+ "description": "接続URL情報(エラーレポート)
・半角",
+ "type": "string",
+ "minLength": 1
+ }
+ }
+ },
+ "links_official_document": {
+ "type": "object",
+ "description": "接続URL情報",
+ "required": [
+ "self",
+ "complete"
+ ],
+ "properties": {
+ "self": {
+ "description": "接続URL情報(自身)
・半角",
+ "type": "string",
+ "minLength": 1
+ },
+ "complete": {
+ "description": "接続URL情報(取得完了)
・半角",
+ "type": "string",
+ "minLength": 1
+ }
+ }
+ },
+ "error_token": {
+ "type": "object",
+ "required": [
+ "error"
+ ],
+ "properties": {
+ "error": {
+ "description": "HTTPステータスに紐づくエラーコード
・半角英数字",
+ "type": "string"
+ },
+ "error_description": {
+ "description": "エラーコードに紐づくエラー詳細
・全角",
+ "type": "string"
+ }
+ }
+ },
+ "error_bulk": {
+ "type": "array",
+ "description": "エラー内容項目",
+ "items": {
+ "type": "object",
+ "required": [
+ "self",
+ "complete"
+ ],
+ "properties": {
+ "errorFolder": {
+ "description": "エラー申請フォルダ名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "errorFile": {
+ "description": "エラー申請ファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "content": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ },
+ "results_post_apply": {
+ "type": "object",
+ "required": [
+ "arrive_id",
+ "arrive_date",
+ "corporation_name",
+ "applicant_name",
+ "apply_type",
+ "proc_name",
+ "ministry_name",
+ "submission_destination",
+ "apply_form",
+ "apply_pay_list"
+ ],
+ "properties": {
+ "arrive_id": {
+ "description": "到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "arrive_date": {
+ "description": "到達日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "corporation_name": {
+ "description": "法人名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "applicant_name": {
+ "description": "申込者名
・全角",
+ "type": "string",
+ "minLength": 3,
+ "maxLength": 256
+ },
+ "apply_type": {
+ "description": "申請区分
・全角
・「新規申請」または「再提出」",
+ "type": "string",
+ "minLength": 3,
+ "maxLength": 4
+ },
+ "proc_name": {
+ "description": "利用申込み対象の名称
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "ministry_name": {
+ "description": "申込み所管府省
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 12
+ },
+ "submission_destination": {
+ "description": "提出先
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "apply_form": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/post_apply_form"
+ }
+ ]
+ },
+ "apply_pay_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/apply_pay_list_apply"
+ }
+ ]
+ }
+ }
+ },
+ "post_apply_form": {
+ "description": "申込みを行った各様式・書類の内容",
+ "type": "object",
+ "properties": {
+ "form": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/form"
+ }
+ ]
+ },
+ "attached_file": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/attached_file"
+ }
+ ]
+ }
+ }
+ },
+ "results_post_apply_detail": {
+ "type": "object",
+ "required": [
+ "status",
+ "arrive_id",
+ "arrive_date",
+ "corporation_name",
+ "applicant_name",
+ "proc_name",
+ "submission_destination",
+ "withdraw_flag",
+ "pay_status",
+ "notice_count",
+ "doc_count",
+ "apply_pay_count"
+ ],
+ "properties": {
+ "status": {
+ "description": "現在の申請ステータス
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "arrive_id": {
+ "description": "到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "arrive_date": {
+ "description": "到達日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "corporation_name": {
+ "description": "法人名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "applicant_name": {
+ "description": "申込者名
・全角",
+ "type": "string",
+ "minLength": 3,
+ "maxLength": 256
+ },
+ "proc_name": {
+ "description": "申込対象の名称
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "submission_destination": {
+ "description": "提出先
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "withdraw_flag": {
+ "description": "取下げ可能フラグ",
+ "type": "boolean"
+ },
+ "pay_status": {
+ "description": "納付状況
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 6
+ },
+ "notice_count": {
+ "description": "通知件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "doc_count": {
+ "description": "公文書件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "apply_pay_count": {
+ "description": "納付情報件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "notice_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/notice_list_apply"
+ }
+ ]
+ },
+ "official_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/official_list"
+ }
+ ]
+ },
+ "apply_pay_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/apply_pay_list_apply"
+ }
+ ]
+ },
+ "applied_account": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128,
+ "description": "提出実施アカウント
・半角"
+ }
+ }
+ },
+ "results_post": {
+ "type": "object",
+ "required": [
+ "notice_data_name",
+ "file_data",
+ "file_name_list"
+ ],
+ "properties": {
+ "notice_data_name": {
+ "description": "取得した通知文書一式の名称
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "file_data": {
+ "description": "ファイル圧縮データ
・半角
・鑑ファイル、添付ファイル
・バイナリデータはBase64エンコードしたものを使用する。",
+ "type": "string",
+ "format": "byte",
+ "minLength": 1
+ },
+ "file_name_list": {
+ "description": "ファイル圧縮データに含まれている通知文書のファイル名のリスト",
+ "type": "array",
+ "items": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/file_name_list_official"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "results_post_complete": {
+ "type": "object",
+ "required": [
+ "post_id",
+ "notice_data_name",
+ "download_date"
+ ],
+ "properties": {
+ "post_id": {
+ "description": "取得完了要求した電子送達識別子
・半角英数字
・1-50桁",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 50
+ },
+ "notice_data_name": {
+ "description": "取得完了要求した通知文書一式の名称
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "download_date": {
+ "description": "取得完了要求した通知文書の取得日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ }
+ }
+ },
+ "results_post_lists": {
+ "type": "object",
+ "required": [
+ "post_list"
+ ],
+ "properties": {
+ "post_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/post_list"
+ }
+ ]
+ }
+ }
+ },
+ "post_list": {
+ "type": "array",
+ "description": "電子送達一覧
※発出日時の降順でソート
要素の上限回数はシステム設定値",
+ "items": {
+ "type": "object",
+ "properties": {
+ "ministry_message_id": {
+ "description": "府省メッセージ通番
・半角英数字",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 18
+ },
+ "type": {
+ "description": "種別
・全角",
+ "type": "string",
+ "minLength": 2,
+ "maxLength": 4
+ },
+ "title": {
+ "description": "タイトル
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "message_sentence": {
+ "description": "本文
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "issuer_organization": {
+ "description": "発出元
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "issue_date": {
+ "description": "発出日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "received_account": {
+ "description": "送達対象アカウント
・半角英数字",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ },
+ "notice_data_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/notice_data_list"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "notice_data_list": {
+ "description": "通知文書リスト",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "post_id": {
+ "description": "電子送達識別子
・半角英数字
・1-50桁",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 50
+ },
+ "notice_data_name": {
+ "description": "通知文書名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "notice_issue_date": {
+ "description": "通知文書の発出日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "download_expired_date": {
+ "description": "通知文書の取得期限
・半角
・YYYY-MM-DD
例:2017-09-01",
+ "type": "string",
+ "minLength": 10,
+ "maxLength": 10
+ },
+ "download_date": {
+ "description": "通知文書の取得完了日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "sign": {
+ "description": "通知文書の署名有無
・全角
あり/なし",
+ "type": "string",
+ "minLength": 2,
+ "maxLength": 2
+ }
+ }
+ }
+ },
+ "results_share_setting_lists": {
+ "type": "object",
+ "required": [
+ "share_setting_list"
+ ],
+ "properties": {
+ "share_setting_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/share_setting_lists"
+ }
+ ]
+ }
+ }
+ },
+ "share_setting_lists": {
+ "type": "object",
+ "required": [
+ "gbiz_id",
+ "official_doc_permission",
+ "post_doc_permission"
+ ],
+ "properties": {
+ "gbiz_id": {
+ "description": "共有中のgBizIDのアカウントID(メールアドレス)
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ },
+ "official_doc_permission": {
+ "description": "公文書に関する権限情報
・半角
READ:参照権限
DOWNLOAD:ダウンロード権限",
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 8
+ },
+ "post_doc_permission": {
+ "description": "電子送達の通知文書に関する権限情報
・半角
READ:参照権限
DOWNLOAD:ダウンロード権限",
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 8
+ }
+ }
+ },
+ "results_share-setting-post": {
+ "type": "object",
+ "required": [
+ "gbiz_id",
+ "official_doc_permission",
+ "post_doc_permission"
+ ],
+ "properties": {
+ "gbiz_id": {
+ "description": "共有対象のgBizIDのアカウントID(メールアドレス)
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ },
+ "official_doc_permission": {
+ "description": "公文書に関する権限情報
・半角
READ:参照権限
DOWNLOAD:ダウンロード権限",
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 8
+ },
+ "post_doc_permission": {
+ "description": "電子送達の通知文書に関する権限情報
・半角
READ:参照権限
DOWNLOAD:ダウンロード権限",
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 8
+ }
+ }
+ },
+ "results_share-setting-put": {
+ "type": "object",
+ "required": [
+ "gbiz_id",
+ "official_doc_permission",
+ "post_doc_permission"
+ ],
+ "properties": {
+ "gbiz_id": {
+ "description": "共有中のgBizIDのアカウントID(メールアドレス)
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ },
+ "official_doc_permission": {
+ "description": "公文書に関する権限情報
・半角
READ:参照権限
DOWNLOAD:ダウンロード権限",
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 8
+ },
+ "post_doc_permission": {
+ "description": "電子送達の通知文書に関する権限情報
・半角
READ:参照権限
DOWNLOAD:ダウンロード権限",
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 8
+ }
+ }
+ },
+ "results_share-setting-delete": {
+ "type": "object",
+ "required": [
+ "gbiz_id"
+ ],
+ "properties": {
+ "gbiz_id": {
+ "description": "解除したgBizIDのアカウントID(メールアドレス)
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ }
+ }
+ },
+ "results_share-confirmation": {
+ "type": "object",
+ "required": [
+ "gbiz_id",
+ "share_acceptance"
+ ],
+ "properties": {
+ "gbiz_id": {
+ "description": "共有依頼元のgBizIDのアカウントID(メールアドレス)
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ },
+ "share_acceptance": {
+ "description": "共有設定の許可/不許可
・半角
ACCEPT:許可する
DENY:許可しない",
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 6
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/docs/openapi_検証.json b/docs/openapi_検証.json
new file mode 100644
index 0000000..d348473
--- /dev/null
+++ b/docs/openapi_検証.json
@@ -0,0 +1,7384 @@
+{
+ "openapi": "3.0.0",
+ "info": {
+ "description": "電子申請API v2のAPI仕様を表示しています。
従来のAPI仕様は、電子申請API v1を参照して下さい。",
+ "version": "2.0.0",
+ "title": "e-Gov電子申請API"
+ },
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2",
+ "description": "電子申請"
+ },
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2",
+ "description": "電子送達"
+ },
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2",
+ "description": "アカウント間情報共有"
+ },
+ {
+ "url": "https://account.e-gov.go.jp/auth",
+ "description": "利用者認証"
+ }
+ ],
+ "paths": {
+ "/procedure/{proc_id}": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "get": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "手続選択:指定したAPI対象手続に係る申請データ構造(スケルトン)一式を取得する。",
+ "description": "事前登録された基本情報と選択された手続識別子をもとに電子申請を行うための申請データ構造として基本情報をセットしたデータ一式を取得する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/proc_id"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_procedure"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/preprint": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "post": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "プレ印字データ取得:プレ印字データを取得する。",
+ "description": "プレ印字対象手続に対して、府省に問い合わせて、府省に登録されているプレ印字データを取得して返却する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "application_info",
+ "proc_id",
+ "form_id",
+ "form_version",
+ "file_data"
+ ],
+ "properties": {
+ "application_info": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/application_info"
+ }
+ ]
+ },
+ "proc_id": {
+ "description": "手続識別子
・半角英数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 16
+ },
+ "form_id": {
+ "description": "様式ID
・半角英数字",
+ "type": "string",
+ "minLength": 18,
+ "maxLength": 18
+ },
+ "form_version": {
+ "description": "様式バージョン
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ },
+ "file_data": {
+ "description": "申請書XMLデータ
・半角
・バイナリデータはBASE64エンコードしたものを使用する。",
+ "type": "string",
+ "format": "byte",
+ "minLength": 1
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_preprint"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/apply": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "post": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "申請データ送信:申請データの形式チェックと到達確認を行い、到達番号等を取得する。",
+ "description": "送信された申請データの形式チェックと申請処理を行い、到達番号等を応答する。
※再提出を行う場合も当APIを使用する。申請するデータの「初回受付番号」には申請受付番号の初回受付時の到達番号、「申請種別」には\"再提出\"を指定する。設定方法の詳細は、申請データ仕様共通データ仕様書を参照。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "proc_id",
+ "send_file"
+ ],
+ "properties": {
+ "proc_id": {
+ "description": "手続識別子
・半角英数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 16
+ },
+ "send_file": {
+ "description": "申請データをZIPファイル形式で圧縮したものを設定
申請データは構成管理XMLファイル、申請書XMLファイル、添付ファイル",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/data"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results",
+ "_links"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_apply"
+ }
+ ]
+ },
+ "_links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/links_apply"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest_Report"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "413": {
+ "$ref": "#/components/responses/RequestEntityTooLarge_Report"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError_Report"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable_Report"
+ }
+ }
+ }
+ },
+ "/bulk-apply": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "post": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "申請データbulk送信:複数の申請データを送信し、形式チェック(バッチ)に引き渡す情報を登録する。",
+ "description": "送信された複数の申請データを受信し、後続の一括申請開始バッチに引き継ぐ情報を登録する。
※再提出を行う場合は、申請データ送信を使用すること。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "send_file"
+ ],
+ "properties": {
+ "send_file": {
+ "description": "1つ以上の申請データをZIPファイル形式で圧縮したものを設定
申請データは構成管理XMLファイル、申請書XMLファイル、添付ファイル",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/data"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "description": "Accepted",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results",
+ "_links"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_bulk_apply"
+ }
+ ]
+ },
+ "_links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/links_bulk_apply"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest_error"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "413": {
+ "$ref": "#/components/responses/RequestEntityTooLarge_error"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError_error"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable_error"
+ }
+ }
+ }
+ },
+ "/apply/amend": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "post": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "補正データ送信:補正データの形式チェックを行い、補正を行う。",
+ "description": "補正申請可能な到達番号に対して、
送信された補正データの形式チェックを行い、指定された到達番号の申請案件に関する補正処理を行う。
※補正申請可能な到達番号について
・申請案件に関する通知取得の補正種別が\"部分補正\"であること。
・補正種別が\"再提出\"、\"手続終了(再提出可)\"の場合は、申請データ送信を使用すること。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "arrive_id",
+ "send_file"
+ ],
+ "properties": {
+ "arrive_id": {
+ "description": "到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "send_file": {
+ "description": "補正対象データをZIPファイル形式で圧縮したものを設定
構成管理XMLファイル、申請書XMLファイル、添付ファイル",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/data"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_apply_amend"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest_Report"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "413": {
+ "$ref": "#/components/responses/RequestEntityTooLarge_Report"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError_Report"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable_Report"
+ }
+ }
+ }
+ },
+ "/apply/withdraw": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "post": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "取り下げ依頼送信:取下げ依頼を行う。",
+ "description": "指定された到達番号の取下げ処理を行う。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "arrive_id",
+ "send_file"
+ ],
+ "properties": {
+ "arrive_id": {
+ "description": "到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "send_file": {
+ "description": "取下げ依頼データをZIPファイル形式で圧縮したものを設定
構成管理XMLファイル、取下げ依頼の申請書XMLファイル",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/data"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_apply_withdraw"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest_Report_withdraw"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "413": {
+ "$ref": "#/components/responses/RequestEntityTooLarge_Report_withdraw"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError_Report_withdraw"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable_Report_withdraw"
+ }
+ }
+ }
+ },
+ "/apply/check": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "post": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "形式チェック実行:申請データに対する形式チェックの実行結果を取得する。",
+ "description": "送信された申請データに対して、形式チェックを実行し、結果を応答する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "proc_id",
+ "send_file"
+ ],
+ "properties": {
+ "proc_id": {
+ "description": "手続識別子
・半角英数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 16
+ },
+ "send_file": {
+ "description": "申請データをZIPファイル形式で圧縮したものを設定
申請データは構成管理XMLファイル、申請書XMLファイル、添付ファイル",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/data"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_apply_check"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "413": {
+ "$ref": "#/components/responses/RequestEntityTooLarge"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/apply/lists": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "get": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "申請案件一覧取得:申請案件の一覧情報を取得する。",
+ "description": "期間等を指定して、申請案件の一覧情報を取得する。対象期間内の到達日時の申請案件を取得対象とする。
※送信番号のみを指定または対象期間及び取得件数/ページを指定
送信番号指定時 例:https://api.e-gov.go.jp/shinsei/v2/apply/lists?send_number=123456789012345678
対象期間及び取得件数/ページを指定時 例:https://api.e-gov.go.jp/shinsei/v2/apply/lists?date_from=2019-01-01&date_to=2019-02-28&limit=50&offset=0",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial"
+ },
+ {
+ "$ref": "#/components/parameters/send_number"
+ },
+ {
+ "$ref": "#/components/parameters/date_from_optional"
+ },
+ {
+ "$ref": "#/components/parameters/date_to_optional"
+ },
+ {
+ "$ref": "#/components/parameters/limit_50_optional"
+ },
+ {
+ "$ref": "#/components/parameters/offset_optional"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "resultset",
+ "results",
+ "_links"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "resultset": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/result_set"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_apply_lists"
+ }
+ ]
+ },
+ "_links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/links_lists_note"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/apply/{arrive_id}": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "get": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "申請案件取得:申請案件の詳細情報を取得する。",
+ "description": "指定した申請案件の詳細情報を取得する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial"
+ },
+ {
+ "$ref": "#/components/parameters/arrive_id"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_apply_detail"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/apply/report": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "get": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "エラーレポート取得:申請データbulk送信の申請データに対する形式チェックの実行結果に関するエラーレポートを取得する。",
+ "description": "申請データbulk送信の申請データに対して、後続の処理にて実行された形式チェックの実行結果を、取得して応答する。
リクエストの対象期間内に受信した申請データに対するエラーレポートを取得対象とする。
形式チェック実行にてチェックエラーが発生せずに到達した申請については、発行された到達番号等を応答する。
※送信番号のみを指定または対象期間及び取得件数/ページを指定
送信番号指定時 例:https://api.e-gov.go.jp/shinsei/v2/apply/report?send_number=123456789012345678
対象期間及び取得件数/ページを指定時 例:https://api.e-gov.go.jp/shinsei/v2/apply/report?date_from=2019-01-01&date_to=2019-02-28&limit=50&offset=0",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial"
+ },
+ {
+ "$ref": "#/components/parameters/send_number"
+ },
+ {
+ "$ref": "#/components/parameters/date_from_optional"
+ },
+ {
+ "$ref": "#/components/parameters/date_to_optional"
+ },
+ {
+ "$ref": "#/components/parameters/limit_30_optional"
+ },
+ {
+ "$ref": "#/components/parameters/offset_optional"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "resultset",
+ "results",
+ "_links"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "resultset": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/result_set"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_apply_report"
+ }
+ ]
+ },
+ "_links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/links_lists_note"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/message/lists": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "get": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "手続に関するご案内一覧取得:手続に関するご案内情報のリストを取得する。",
+ "description": "期間等を指定して、手続に関するご案内情報を一覧で取得する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/date_from"
+ },
+ {
+ "$ref": "#/components/parameters/date_to"
+ },
+ {
+ "$ref": "#/components/parameters/limit_50"
+ },
+ {
+ "$ref": "#/components/parameters/offset"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "resultset",
+ "results",
+ "_links"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "resultset": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/result_set"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_message_lists"
+ }
+ ]
+ },
+ "_links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/links_lists"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/message/{information_id}": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "get": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "手続に関するご案内取得:お知らせ情報(手続に関するご案内)を取得する。",
+ "description": "指定したお知らせ(手続に関するご案内)の情報を取得する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/information_id"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_message"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/notice/lists": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "get": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "申請案件に関する通知一覧取得:申請案件に関する通知情報のリストを取得する。",
+ "description": "期間等を指定して、申請案件に関する通知情報を一覧で取得する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/date_from"
+ },
+ {
+ "$ref": "#/components/parameters/date_to"
+ },
+ {
+ "$ref": "#/components/parameters/limit_50"
+ },
+ {
+ "$ref": "#/components/parameters/offset"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "resultset",
+ "results",
+ "_links"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "resultset": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/result_set"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_notice_lists"
+ }
+ ]
+ },
+ "_links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/links_lists_note"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/notice/{arrive_id}/{notice_sub_id}": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "get": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "申請案件に関する通知取得:申請案件に関する通知情報を取得する。",
+ "description": "指定した申請案件に関する通知の情報を取得する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/arrive_id"
+ },
+ {
+ "$ref": "#/components/parameters/notice_sub_id"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_notice"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/official_document/{arrive_id}/{notice_sub_id}": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "get": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "公文書取得:公文書を取得する。",
+ "description": "指定された申請案件の公文書を取得する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial"
+ },
+ {
+ "$ref": "#/components/parameters/arrive_id"
+ },
+ {
+ "$ref": "#/components/parameters/notice_sub_id"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results",
+ "_links"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_official_document"
+ }
+ ]
+ },
+ "_links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/links_official_document"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/official_document": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "post": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "公文書取得完了:公文書の取得日時を登録する。",
+ "description": "指定された申請案件の公文書の取得日時を登録する。
また、申請案件に紐づくすべての公文書が取得された状態となった場合は、申請案件のステータスを手続完了に更新する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "arrive_id",
+ "notice_sub_id"
+ ],
+ "properties": {
+ "arrive_id": {
+ "description": "到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "notice_sub_id": {
+ "description": "通知通番
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 999
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_official_document_complete"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/official_document/verify": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "post": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "公文書署名検証要求:公文書に付与された官職署名の検証を行う。",
+ "description": "送信された公文書に対して署名検証を行う。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "file_name",
+ "file_data",
+ "sig_verification_xml_file_name"
+ ],
+ "properties": {
+ "file_name": {
+ "description": "ファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "file_data": {
+ "description": "ファイル圧縮データ
・半角
・鑑ファイル、添付ファイル
・バイナリデータはBase64エンコードしたものを使用する。",
+ "type": "string",
+ "format": "byte",
+ "minLength": 1
+ },
+ "sig_verification_xml_file_name": {
+ "description": "署名検証XMLファイル名
・半角英数字",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_official_document_verify"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "413": {
+ "$ref": "#/components/responses/RequestEntityTooLarge"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/payment/lists": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "get": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "国庫金電子納付取扱金融機関一覧取得:国庫金電子納付が可能な金融機関一覧を取得する。",
+ "description": "電子納付金融機関一覧取得要求を受け付け、国庫金の電子納付が可能な金融機関一覧(金融機関名、ネットバンキングのサービス名、URL 等)を応答する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_payment_lists"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/payment/{arrive_id}": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "get": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "電子納付情報一覧取得:納付情報を取得する。",
+ "description": "指定された到達番号に発行された手数料等の納付情報(到達番号、納付番号、確認番号、収納期間番号等)を応答する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/arrive_id"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_payment"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/payment": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子申請",
+ "post": {
+ "tags": [
+ "電子申請"
+ ],
+ "summary": "電子納付金融機関サイト表示:電子納付金融機関サイトのURLを取得する。",
+ "description": "電子納付金融機関サイトのURL(リダイレクト先)およびリダイレクト先へ受け渡すパラメータ情報(収納機関番号、国庫金コード、パラメータタグ名、情報リンクデータ)を応答する。
応答結果を受け、API対応ソフトウェア開発事業者側で電子納付金融機関サイトのURLへリダイレクトさせる必要がある。
・電子納付金融機関サイトのURL「応答結果.URLの値」
※リダイレクト先へは以下のパラメータを受け渡す。(POST送信)
・パラメータ名「skno」、パラメータ値「応答結果.facility_number(収納機関番号)の値」
・パラメータ名「bptn」、パラメータ値「応答結果.treasury_money_code(国庫金コード)の値」
・パラメータ名「応答結果.parameter_tag_name(パラメータタグ名)の値」、パラメータ値「応答結果.information_link_data(情報リンクデータ)をBASE64デコードした値」",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "arrive_id",
+ "pay_number",
+ "bank_name",
+ "proc_id"
+ ],
+ "properties": {
+ "arrive_id": {
+ "description": "到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "pay_number": {
+ "description": "納付番号
・半角英数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 16
+ },
+ "bank_name": {
+ "description": "金融機関名称
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "proc_id": {
+ "description": "手続識別子
・半角英数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 16
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_payment_site"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/post-apply": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子送達",
+ "post": {
+ "tags": [
+ "電子送達"
+ ],
+ "summary": "電子送達利用申込み:申請データの形式チェックと到達確認を行い、到達番号等を取得する。",
+ "description": "送信された申請データの形式チェックと電子送達の申込み処理を行い、到達番号等を応答する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial-NON"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "proc_id",
+ "send_file"
+ ],
+ "properties": {
+ "proc_id": {
+ "description": "手続識別子
・半角英数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 16
+ },
+ "send_file": {
+ "description": "申請データをZIPファイル形式で圧縮したものを設定
申請データは構成管理XMLファイル、申請書XMLファイル、添付ファイル",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/data"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results",
+ "_links"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_post_apply"
+ }
+ ]
+ },
+ "_links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/links_apply"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest_Report"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "413": {
+ "$ref": "#/components/responses/RequestEntityTooLarge_Report"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError_Report"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable_Report"
+ }
+ },
+ "operationId": ""
+ }
+ },
+ "/post-apply/{arrive_id}": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子送達",
+ "get": {
+ "tags": [
+ "電子送達"
+ ],
+ "summary": "電子送達状況確認:電子送達の申込状況を取得する。",
+ "description": "指定した電子送達の申込みの詳細情報を取得する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial-NON"
+ },
+ {
+ "$ref": "#/components/parameters/arrive_id"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_post_apply_detail"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/post/lists": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子送達",
+ "get": {
+ "tags": [
+ "電子送達"
+ ],
+ "summary": "電子送達一覧取得:電子送達のリストを取得する。",
+ "description": "期間等を指定して、電子送達に関する一覧情報を取得する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/date_from"
+ },
+ {
+ "$ref": "#/components/parameters/date_to"
+ },
+ {
+ "$ref": "#/components/parameters/limit_50"
+ },
+ {
+ "$ref": "#/components/parameters/offset"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "resultset",
+ "results",
+ "_links"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "resultset": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/result_set"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_post_lists"
+ }
+ ]
+ },
+ "_links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/links_lists"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/post/{post_id}": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子送達",
+ "get": {
+ "tags": [
+ "電子送達"
+ ],
+ "summary": "電子送達取得:電子送達を取得する。",
+ "description": "指定された電子送達の通知文書を取得する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial-NON"
+ },
+ {
+ "$ref": "#/components/parameters/post_id"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results",
+ "_links"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_post"
+ }
+ ]
+ },
+ "_links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/links_official_document"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/post": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "電子送達",
+ "post": {
+ "tags": [
+ "電子送達"
+ ],
+ "summary": "電子送達取得完了:電子送達の取得日時を登録する。",
+ "description": "指定された通知文書の取得日時を登録する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial-NON"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "post_id"
+ ],
+ "properties": {
+ "post_id": {
+ "description": "電子送達識別子
・半角英数字
・1-50桁",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 50
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_post_complete"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/share-setting/lists": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "アカウント間情報共有",
+ "get": {
+ "tags": [
+ "アカウント間情報共有"
+ ],
+ "summary": "情報共有一覧取得:アカウント間情報共有の設定中の情報を応答する。",
+ "description": "アカウント間情報共有の設定中の情報を応答する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial-NON-share"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "resultset",
+ "results",
+ "_links"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_share_setting_lists"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/share-setting": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "アカウント間情報共有",
+ "post": {
+ "tags": [
+ "アカウント間情報共有"
+ ],
+ "summary": "情報共有設定:指定されたアカウント間情報共有の設定を行う。",
+ "description": "指定されたアカウント間情報共有の設定を行う。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial-NON-share"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "gbiz_id",
+ "official_doc_permission",
+ "post_doc_permission"
+ ],
+ "properties": {
+ "gbiz_id": {
+ "description": "共有対象のgBizIDのアカウントID(メールアドレス)
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ },
+ "official_doc_permission": {
+ "description": "公文書に関する権限情報
・半角
READ:参照権限
DOWNLOAD:ダウンロード権限",
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 8
+ },
+ "post_doc_permission": {
+ "description": "電子送達の通知文書に関する権限情報
・半角
READ:参照権限
DOWNLOAD:ダウンロード権限",
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 8
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_share-setting-post"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "アカウント間情報共有"
+ ],
+ "summary": "情報共有更新:指定されたアカウント間情報共有の更新を行う。",
+ "description": "指定されたアカウント間情報共有の更新を行う。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial-NON-share"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "gbiz_id",
+ "official_doc_permission",
+ "post_doc_permission"
+ ],
+ "properties": {
+ "gbiz_id": {
+ "description": "共有中のgBizIDのアカウントID(メールアドレス)
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ },
+ "official_doc_permission": {
+ "description": "公文書に関する権限情報
・半角
READ:参照権限
DOWNLOAD:ダウンロード権限",
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 8
+ },
+ "post_doc_permission": {
+ "description": "電子送達の通知文書に関する権限情報
・半角
READ:参照権限
DOWNLOAD:ダウンロード権限",
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 8
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_share-setting-put"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "アカウント間情報共有"
+ ],
+ "summary": "情報共有解除:指定されたアカウント間情報共有の解除を行う。",
+ "description": "指定されたアカウント間情報共有の解除を行う。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial-NON-share"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "gbiz_id",
+ "official_doc_permission",
+ "post_doc_permission"
+ ],
+ "properties": {
+ "gbiz_id": {
+ "description": "共有中で解除を実施したいgBizIDのアカウントID(メールアドレス)
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_share-setting-delete"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/share-confirmation": {
+ "servers": [
+ {
+ "url": "https://api.e-gov.go.jp/shinsei/v2"
+ }
+ ],
+ "description": "アカウント間情報共有",
+ "post": {
+ "tags": [
+ "アカウント間情報共有"
+ ],
+ "summary": "共有設定確認:指定されたアカウント間情報共有の有効化設定を行う。",
+ "description": "指定されたアカウント間情報共有の有効化設定を行う。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization"
+ },
+ {
+ "$ref": "#/components/parameters/X-eGovAPI-Trial-NON-share"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "gbiz_id",
+ "share_acceptance"
+ ],
+ "properties": {
+ "gbiz_id": {
+ "description": "共有依頼元のgBizIDのアカウントID(メールアドレス)
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ },
+ "share_acceptance": {
+ "description": "共有設定の許可/不許可
・半角
ACCEPT:許可する
DENY:許可しない",
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 6
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "metadata",
+ "results"
+ ],
+ "properties": {
+ "metadata": {
+ "description": "メタデータ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/metadata_common"
+ }
+ ]
+ },
+ "results": {
+ "description": "結果データ",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_share-confirmation"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError"
+ },
+ "503": {
+ "$ref": "#/components/responses/ServiceUnavaiable"
+ }
+ }
+ }
+ },
+ "/auth": {
+ "servers": [
+ {
+ "url": "https://account.e-gov.go.jp/auth"
+ }
+ ],
+ "description": "利用者認証",
+ "get": {
+ "tags": [
+ "利用者認証"
+ ],
+ "summary": "ユーザー認可:ユーザー認可リクエストを行い、認証・同意画面を表示する。",
+ "description": "e-Gov認可サーバの認証・同意画面を返却後、ユーザーがログイン及び同意を実施することにより認可コードが発行される。
全項目指定時
例:https://account.e-gov.go.jp/auth/auth?client_id=X99XKwoHFQsFrmxR&response_type=code&scope=openid%20offline_access&redirect_uri=https%3A%2F%2Fsample.com%2F&
state=e6a7c8b9-0884-4a17-bb51-42728853e958&code_challenge=_RpfHqw8pAZIomzVUE7sjRmHSM543WVdC4o-Kc4_3C0&code_challenge_method=S256
必須項目のみ指定時
例:https://account.e-gov.go.jp/auth/auth?client_id=X99XKwoHFQsFrmxR&response_type=code&scope=openid%20offline_access&redirect_uri=https%3A%2F%2Fsample.com%2F",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "client_id",
+ "description": "API対応ソフトウェア開発事業者に発行されるソフトウェアID
・半角英数字",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "response_type",
+ "description": "レスポンス・タイプ「code」を指定する
・半角英数字",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "minLength": 4
+ }
+ },
+ {
+ "in": "query",
+ "name": "scope",
+ "description": "スコープ「openid offline_access」を指定する
・半角英数字
例:scope=openid%20offline_access",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "redirect_uri",
+ "description": "ログイン成功時にリダイレクトするURL
APIキー発行時に指定したリダイレクトするURL(API対応ソフトウェア開発事業者がログイン後に遷移させたいURL)を「URLエンコード」して指定する
・半角英数字",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "state",
+ "description": "リクエストとコールバックの間で維持されるランダムな値
API対応ソフトウェア開発事業者側で任意に生成して指定する
・半角英数字
・CSRF対策",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "code_challenge",
+ "description": "API対応ソフトウェア開発事業者側でハッシュ値を生成して指定
ハッシュアルゴリズムは、「SHA-256」とし、ハッシュ値は16進数の値として扱い、「BASE64URLエンコード」して指定する
※BASE64エンコードではないことに注意
ハッシュ値の元となる文字列の制限については「アクセストークン取得」の「code_verifier」を参照
・半角英数字
・43-128桁
・PKCE対策",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "code_challenge_method",
+ "description": "code_challengeで指定した文字列のハッシュアルゴリズムを指定
ハッシュアルゴリズム「S256」を指定する
・半角英数字
・PKCE対策",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "302": {
+ "description": "レスポンスとして、認証画面・同意画面が返される。
認証画面・同意画面においてログイン・承認の操作を行うと、ブラウザにはステータスコード302が返却され、次に指定したリダイレクトURIにリダイレクトされる。"
+ }
+ }
+ }
+ },
+ "/(リダイレクト先のURL)": {
+ "servers": [
+ {
+ "url": "https://account.e-gov.go.jp/auth"
+ }
+ ],
+ "description": "利用者認証",
+ "get": {
+ "tags": [
+ "利用者認証"
+ ],
+ "summary": "ユーザー認可(リダイレクトでの認可コード送信):リダイレクト先に認可コードを渡す。",
+ "description": "※使用者は呼び出しは行わないが、本呼び出しでリダイレクト先に認可コードが渡されることを意識する必要がある。",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "code",
+ "description": "認可コード
・半角英数字",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "state",
+ "description": "ユーザー認可リクエスト時に指定した「state」値
・半角英数字
・リクエスト時に保存していた値をコールバック時の値が一致するかAPI対応ソフトウェア開発事業者で確認する。",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "session_state",
+ "required": true,
+ "description": "セッション状態を表す識別子
・半角英数字",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest_token"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized_token"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound_token"
+ },
+ "405": {
+ "$ref": "#/components/responses/MethodNotAllowed_token"
+ },
+ "413": {
+ "$ref": "#/components/responses/RequestEntityTooLarge_token"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError_token"
+ }
+ }
+ }
+ },
+ "/token": {
+ "servers": [
+ {
+ "url": "https://account.e-gov.go.jp/auth"
+ }
+ ],
+ "description": "利用者認証",
+ "post": {
+ "tags": [
+ "利用者認証"
+ ],
+ "summary": "アクセストークン取得/再取得:アクセストークンとリフレッシュトークンを取得/再取得する。",
+ "description": "ユーザー認可リクエストで返却された認可コードを認可サーバへ送信し、アクセストークンとアクセストークン更新用のリフレッシュトークンを取得する。
アクセストークン取得リクエストで取得したリフレッシュトークンを認可サーバへ送信し、アクセストークンとリフレッシュトークンを再取得する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type_token"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization_basic"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/x-www-form-urlencoded": {
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/request_token"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_token"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest_token"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized_token"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound_token"
+ },
+ "405": {
+ "$ref": "#/components/responses/MethodNotAllowed_token"
+ },
+ "413": {
+ "$ref": "#/components/responses/RequestEntityTooLarge_token"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError_token"
+ }
+ }
+ }
+ },
+ "/token/introspect": {
+ "servers": [
+ {
+ "url": "https://account.e-gov.go.jp/auth"
+ }
+ ],
+ "description": "利用者認証",
+ "post": {
+ "tags": [
+ "利用者認証"
+ ],
+ "summary": "アクセストークン検証:アクセストークンまたはリフレッシュトークンの有効性を検証する。",
+ "description": "取得したアクセストークンまたはリフレッシュトークンの有効性を検証し、トークンに関連付けられている情報を取得する。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type_token"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization_basic"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/x-www-form-urlencoded": {
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/request_introspect"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/results_introspect"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest_token"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized_token"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound_token"
+ },
+ "405": {
+ "$ref": "#/components/responses/MethodNotAllowed_token"
+ },
+ "413": {
+ "$ref": "#/components/responses/RequestEntityTooLarge_token"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError_token"
+ }
+ }
+ }
+ },
+ "/logout": {
+ "servers": [
+ {
+ "url": "https://account.e-gov.go.jp/auth"
+ }
+ ],
+ "description": "利用者認証",
+ "post": {
+ "tags": [
+ "利用者認証"
+ ],
+ "summary": "ログアウト:ログアウトを行う。",
+ "description": "e-Gov認可サーバとの認証状態を破棄し、ログアウトを行う。取得済みのアクセストークン、リフレッシュトークンが無効化される。",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/Content-Type_token"
+ },
+ {
+ "$ref": "#/components/parameters/Authorization_basic"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/x-www-form-urlencoded": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "refresh_token"
+ ],
+ "properties": {
+ "refresh_token": {
+ "description": "アクセストークン取得リクエストで取得したリフレッシュトークン
・半角英数字",
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "204": {
+ "description": "No Content"
+ },
+ "400": {
+ "$ref": "#/components/responses/BadRequest_token"
+ },
+ "401": {
+ "$ref": "#/components/responses/Unauthorized_token"
+ },
+ "404": {
+ "$ref": "#/components/responses/NotFound_token"
+ },
+ "405": {
+ "$ref": "#/components/responses/MethodNotAllowed_token"
+ },
+ "413": {
+ "$ref": "#/components/responses/RequestEntityTooLarge_token"
+ },
+ "500": {
+ "$ref": "#/components/responses/InternalServerError_token"
+ }
+ }
+ }
+ }
+ },
+ "components": {
+ "parameters": {
+ "Content-Type": {
+ "name": "Content-Type",
+ "in": "header",
+ "description": "application/jsonを設定
JSON文書",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ "Content-Type_token": {
+ "name": "Content-Type",
+ "in": "header",
+ "description": "application/x-www-form-urlencodedを設定",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "minLength": 33
+ }
+ },
+ "Authorization": {
+ "name": "Authorization",
+ "in": "header",
+ "description": "アクセストークン取得リクエストにより取得したアクセストークン
”Bearer アクセストークン”形式で設定",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ "Authorization_basic": {
+ "name": "Authorization",
+ "in": "header",
+ "description": "Basic [client_id:client_secretをbase64でエンコードした値]
・半角英数字
client_id:API対応ソフトウェア開発事業者に発行されるソフトウェアID
client_secret:API対応ソフトウェア開発事業者に発行されるAPIキー",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ "X-eGovAPI-Trial": {
+ "name": "X-eGovAPI-Trial",
+ "in": "header",
+ "description": "トライアルでAPIを動作させる場合は\"true\"を設定
指定なしの場合は非トライアルで動作",
+ "schema": {
+ "type": "boolean"
+ }
+ },
+ "proc_id": {
+ "name": "proc_id",
+ "in": "path",
+ "description": "手続識別子
・16桁
・半角英数字",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 16
+ }
+ },
+ "send_number": {
+ "name": "send_number",
+ "in": "query",
+ "description": "送信番号
・半角数字
・18桁
・送信番号で取得する場合のみ指定",
+ "schema": {
+ "type": "string",
+ "minLength": 18,
+ "maxLength": 18
+ }
+ },
+ "date_from": {
+ "name": "date_from",
+ "in": "query",
+ "description": "取得対象期間開始日
・半角
・10桁
・YYYY-MM-DD
例:2017-09-01",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "format": "date",
+ "minLength": 10,
+ "maxLength": 10
+ }
+ },
+ "date_to": {
+ "name": "date_to",
+ "in": "query",
+ "description": "取得対象期間終了日
・半角
・10桁
・YYYY-MM-DD
例:2017-09-01",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "format": "date",
+ "minLength": 10,
+ "maxLength": 10
+ }
+ },
+ "date_from_optional": {
+ "name": "date_from",
+ "in": "query",
+ "description": "取得対象期間開始日
・半角
・10桁
・YYYY-MM-DD
例:2017-09-01
・対象期間及び取得件数/ページオフセット件数で取得する場合のみ指定",
+ "schema": {
+ "type": "string",
+ "format": "date",
+ "minLength": 10,
+ "maxLength": 10
+ }
+ },
+ "date_to_optional": {
+ "name": "date_to",
+ "in": "query",
+ "description": "取得対象期間終了日
・半角
・10桁
・YYYY-MM-DD
例:2017-09-01
・対象期間及び取得件数/ページオフセット件数で取得する場合のみ指定",
+ "schema": {
+ "type": "string",
+ "format": "date",
+ "minLength": 10,
+ "maxLength": 10
+ }
+ },
+ "limit_50": {
+ "name": "limit",
+ "in": "query",
+ "description": "取得件数
・数字
・1-2桁
・上限値50",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 50
+ }
+ },
+ "limit_30": {
+ "name": "limit",
+ "in": "query",
+ "description": "取得件数
・数字
・1-2桁
・上限値30",
+ "schema": {
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 30
+ }
+ },
+ "limit_50_optional": {
+ "name": "limit",
+ "in": "query",
+ "description": "取得件数
・数字
・1-2桁
・上限値50
・対象期間及び取得件数/ページオフセット件数で取得する場合のみ指定",
+ "schema": {
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 50
+ }
+ },
+ "limit_30_optional": {
+ "name": "limit",
+ "in": "query",
+ "description": "取得件数
・数字
・1-2桁
・上限値30
・対象期間及び取得件数/ページオフセット件数で取得する場合のみ指定",
+ "schema": {
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 30
+ }
+ },
+ "offset": {
+ "name": "offset",
+ "in": "query",
+ "description": "取得ページ番号
・数字
・1-4桁",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ }
+ },
+ "offset_optional": {
+ "name": "offset",
+ "in": "query",
+ "description": "取得ページ番号
・数字
・1-4桁
・対象期間及び取得件数/ページオフセット件数で取得する場合のみ指定",
+ "schema": {
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ }
+ },
+ "information_id": {
+ "name": "information_id",
+ "in": "path",
+ "required": true,
+ "description": "お知らせID
・半角英数字
・1-16桁",
+ "schema": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 16
+ }
+ },
+ "arrive_id": {
+ "name": "arrive_id",
+ "in": "path",
+ "required": true,
+ "description": "到達番号
・半角数字
・16-18桁",
+ "schema": {
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ }
+ },
+ "notice_sub_id": {
+ "name": "notice_sub_id",
+ "in": "path",
+ "required": true,
+ "description": "通知通番
・数字
・1-3桁",
+ "schema": {
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 999
+ }
+ },
+ "X-eGovAPI-Trial-NON": {
+ "name": "X-eGovAPI-Trial",
+ "in": "header",
+ "description": "トライアルでAPIを動作させる場合は\"true\"を設定
指定なしの場合は非トライアルで動作
※電子送達はトライアル非対応のため、設定を行ってもトライアルにはなりません。",
+ "schema": {
+ "type": "boolean"
+ }
+ },
+ "X-eGovAPI-Trial-NON-share": {
+ "name": "X-eGovAPI-Trial",
+ "in": "header",
+ "description": "トライアルでAPIを動作させる場合は\"true\"を設定
指定なしの場合は非トライアルで動作
※アカウント間情報共有はトライアル非対応のため、設定を行ってもトライアルにはなりません。",
+ "schema": {
+ "type": "boolean"
+ }
+ },
+ "post_id": {
+ "name": "post_id",
+ "in": "path",
+ "required": true,
+ "description": "電子送達識別子
・半角英数字
・1-50桁",
+ "schema": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 50
+ }
+ }
+ },
+ "responses": {
+ "BadRequest": {
+ "description": "Bad Request",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Bad Request",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "リクエスト内容に問題あり",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメント",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ }
+ }
+ },
+ "BadRequest_Report": {
+ "description": "Bad Request",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Bad Request",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "リクエスト内容に問題あり",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "report_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/report_list"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "BadRequest_Report_withdraw": {
+ "description": "Bad Request",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Bad Request",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "リクエスト内容に問題あり",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "report_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/report_list_withdraw"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "BadRequest_error": {
+ "description": "Bad Request",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance",
+ "error_count"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Bad Request",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "リクエスト内容に問題あり",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "error_count": {
+ "description": "エラー件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ },
+ "error": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/error_bulk"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "BadRequest_token": {
+ "description": "Bad Request",
+ "content": {
+ "application/json": {
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/error_token"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "Unauthorized": {
+ "description": "Unauthorized",
+ "headers": {
+ "WWW-authenticate": {
+ "schema": {
+ "type": "string"
+ },
+ "description": "未認証時に返却(RFC7235に準拠)、文字コードISO-8859-1でレスポンスされる。
・realm: レルム名、必須
・error: エラー種別(invalid_request, invalid_token, insufficient_scope)
・error_description: エラー詳細"
+ }
+ }
+ },
+ "Unauthorized_token": {
+ "description": "Unauthorized",
+ "content": {
+ "application/json": {
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/error_token"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "NotFound": {
+ "description": "Not Found
HTTPステータスのみ返却"
+ },
+ "NotFound_token": {
+ "description": "Not Found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/error_token"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "InternalServerError": {
+ "description": "Internal Server Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Internal Server Error",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "サーバ内部でエラーが発生(システムエラー等)",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ }
+ }
+ },
+ "InternalServerError_Report": {
+ "description": "Internal Server Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Internal Server Error",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "サーバ内部でエラーが発生(システムエラー等)",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "report_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/report_list"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "InternalServerError_Report_withdraw": {
+ "description": "Internal Server Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Internal Server Error",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "サーバ内部でエラーが発生(システムエラー等)",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "report_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/report_list_withdraw"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "InternalServerError_error": {
+ "description": "Internal Server Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance",
+ "error_count"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Internal Server Error",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "サーバ内部でエラーが発生(システムエラー等)",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "error_count": {
+ "description": "エラー件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ }
+ }
+ }
+ }
+ }
+ },
+ "InternalServerError_token": {
+ "description": "Internal Server Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/error_token"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "RequestEntityTooLarge": {
+ "description": "Request Entity Too Large",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Request Entity Too Large",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "アップロードサイズファイル上限オーバー",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ }
+ }
+ },
+ "RequestEntityTooLarge_Report": {
+ "description": "Request Entity Too Large",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Request Entity Too Large",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "アップロードサイズファイル上限オーバー",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "report_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/report_list"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "RequestEntityTooLarge_Report_withdraw": {
+ "description": "Request Entity Too Large",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Request Entity Too Large",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "アップロードサイズファイル上限オーバー",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "report_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/report_list_withdraw"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "RequestEntityTooLarge_error": {
+ "description": "Request Entity Too Large",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance",
+ "error_count"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Request Entity Too Large",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "アップロードサイズファイル上限オーバー",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "error_count": {
+ "description": "エラー件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ }
+ }
+ }
+ }
+ }
+ },
+ "RequestEntityTooLarge_token": {
+ "description": "Request Entity Too Large",
+ "content": {
+ "application/json": {
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/error_token"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "ServiceUnavaiable": {
+ "description": "Service Unavaiable",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Service Unavaiable",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "サービス利用不可(サーバがメンテナンス中等)",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ }
+ }
+ },
+ "ServiceUnavaiable_Report": {
+ "description": "Service Unavaiable",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Service Unavaiable",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "サービス利用不可(サーバがメンテナンス中等)",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "report_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/report_list"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "ServiceUnavaiable_Report_withdraw": {
+ "description": "Service Unavaiable",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Service Unavaiable",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "サービス利用不可(サーバがメンテナンス中等)",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "report_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/report_list_withdraw"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "ServiceUnavaiable_error": {
+ "description": "Service Unavaiable",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "title",
+ "type",
+ "instance",
+ "error_count"
+ ],
+ "properties": {
+ "title": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "example": "Service Unavaiable",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string",
+ "example": "サービス利用不可(サーバがメンテナンス中等)",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURI
・半角",
+ "type": "string",
+ "example": "APIドキュメントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "example": "エンドポイントURI",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "error_count": {
+ "description": "エラー件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ }
+ }
+ }
+ }
+ }
+ },
+ "ServiceUnavaiable_token": {
+ "description": "Service Unavaiable",
+ "content": {
+ "application/json": {
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/error_token"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "MethodNotAllowed_token": {
+ "description": "Method Not Allowed",
+ "content": {
+ "application/json": {
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/error_token"
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ "schemas": {
+ "results_procedure": {
+ "type": "object",
+ "required": [
+ "file_data",
+ "configuration_file_name",
+ "file_info"
+ ],
+ "properties": {
+ "file_data": {
+ "description": "ファイル圧縮データ
・半角
・構成管理XMLファイル、申請書XMLファイル、スタイルシートファイル、形式チェックファイル、スキーマファイル、様式記入要領ファイル
・バイナリデータはBase64エンコードしたものを使用する
※「ファイル圧縮データ」は、以下の命名規則に従って作成したルートフォルダに申請データファイルを格納し、圧縮したファイルデータとなる。
ルートフォルダの命名規則
手続ID(半角英数字16桁)
ex)9999999999999999
【構造】
ルートフォルダ
├構成管理XML
├構成管理スタイルシート
├構成管理形式チェックファイル
├申請書XML × 様式数
├申請書スタイルシート × 様式数
├申請書形式チェックファイル × 様式数
├構成情報 × 個別署名必要数
├構成情報スタイルシート(個別署名の場合のみ)
└構成情報チェックファイル(個別署名の場合のみ)",
+ "type": "string",
+ "format": "byte",
+ "minLength": 1
+ },
+ "configuration_file_name": {
+ "type": "array",
+ "items": {
+ "description": "手続識別子に紐づく構成管理XMLファイル名(または、構成情報XMLファイル名)
・全半角
・構成情報XMLファイル名は申請が個別ファイル署名形式の場合のみ出力。",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 28
+ }
+ },
+ "file_info": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/file_info"
+ }
+ ]
+ }
+ }
+ },
+ "file_info": {
+ "type": "array",
+ "description": "手続識別子に紐づく様式情報",
+ "items": {
+ "type": "object",
+ "properties": {
+ "form_id": {
+ "description": "手続識別子に紐づく様式ID
・半角英数字",
+ "type": "string",
+ "minLength": 18,
+ "maxLength": 18
+ },
+ "form_version": {
+ "description": "手続識別子に紐づく様式バージョン名
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ },
+ "form_name": {
+ "description": "手続識別子に紐づく様式名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ },
+ "apply_file_name": {
+ "description": "手続識別子に紐づく申請書XMLファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "xsl_file_name": {
+ "description": "手続識別子に紐づくスタイルシートファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "server_check_file_name": {
+ "description": "手続識別子に紐づく形式チェックファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "schema_file_name": {
+ "description": "手続識別子に紐づくスキーマファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "style_indication_file": {
+ "description": "手続識別子に紐づく様式記入要領ファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ },
+ "results_preprint": {
+ "type": "object",
+ "required": [
+ "apply_file"
+ ],
+ "properties": {
+ "apply_file": {
+ "description": "プレ印字された申請書XML",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/data_pre"
+ }
+ ]
+ }
+ }
+ },
+ "results_apply": {
+ "type": "object",
+ "required": [
+ "arrive_id",
+ "arrive_date",
+ "corporation_name",
+ "applicant_name",
+ "apply_type",
+ "proc_name",
+ "ministry_name",
+ "submission_destination",
+ "apply_form"
+ ],
+ "properties": {
+ "arrive_id": {
+ "description": "到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "arrive_date": {
+ "description": "到達日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "corporation_name": {
+ "description": "法人名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "applicant_name": {
+ "description": "申請者名
・全角",
+ "type": "string",
+ "minLength": 3,
+ "maxLength": 256
+ },
+ "apply_type": {
+ "description": "申請区分
・全角
・「新規申請」または「再提出」",
+ "type": "string",
+ "minLength": 3,
+ "maxLength": 4
+ },
+ "proc_name": {
+ "description": "手続名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "ministry_name": {
+ "description": "府省名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 12
+ },
+ "submission_destination": {
+ "description": "提出先
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "apply_form": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/apply_form"
+ }
+ ]
+ },
+ "apply_pay_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/apply_pay_list_apply"
+ }
+ ]
+ }
+ }
+ },
+ "apply_form": {
+ "description": "申請した各様式・書類の内容",
+ "type": "object",
+ "properties": {
+ "form": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/form"
+ }
+ ]
+ },
+ "attached_file": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/attached_file"
+ }
+ ]
+ }
+ }
+ },
+ "form": {
+ "description": "様式",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "form_name": {
+ "description": "様式名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ }
+ }
+ }
+ },
+ "attached_file": {
+ "description": "様式",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "attached_file_name": {
+ "description": "添付書類名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ },
+ "apply_pay_list_apply": {
+ "type": "array",
+ "description": "納付情報",
+ "items": {
+ "type": "object",
+ "properties": {
+ "pay_number": {
+ "description": "納付番号
・半角英数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 16
+ },
+ "confirm_number": {
+ "description": "確認番号
・半角数字",
+ "type": "string",
+ "minLength": 6,
+ "maxLength": 6
+ },
+ "facility_number": {
+ "description": "収納機関番号
・半角英数字",
+ "type": "string",
+ "minLength": 5,
+ "maxLength": 5
+ },
+ "pay_name_kana": {
+ "description": "納付手続名(カナ)
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 24
+ },
+ "total_fee": {
+ "description": "払込金額
・数字",
+ "type": "integer",
+ "format": "int64",
+ "minimum": 0,
+ "maximum": 9223372036854776000
+ },
+ "pay_expired": {
+ "description": "払込期限
・半角
YYYY-MM-DD
例:2017-09-01",
+ "type": "string",
+ "format": "date",
+ "minLength": 10,
+ "maxLength": 10
+ }
+ }
+ }
+ },
+ "results_bulk_apply": {
+ "type": "object",
+ "required": [
+ "send_number",
+ "send_date",
+ "file_name",
+ "apply_count"
+ ],
+ "properties": {
+ "send_number": {
+ "description": "発行した送信番号
・半角数字 ",
+ "type": "string",
+ "minLength": 18,
+ "maxLength": 18
+ },
+ "send_date": {
+ "description": "送信日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "file_name": {
+ "description": "一括申請データのファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "apply_count": {
+ "description": "申請件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ }
+ }
+ },
+ "results_apply_amend": {
+ "type": "object",
+ "required": [
+ "arrive_id",
+ "amend_date"
+ ],
+ "properties": {
+ "arrive_id": {
+ "description": "補正対象の到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "amend_date": {
+ "description": "補正受付日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ }
+ }
+ },
+ "results_apply_withdraw": {
+ "type": "object",
+ "required": [
+ "arrive_id",
+ "withdraw_date",
+ "applicant_name",
+ "proc_name",
+ "ministry_name"
+ ],
+ "properties": {
+ "arrive_id": {
+ "description": "取り下げ依頼対象の到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "withdraw_date": {
+ "description": "取り下げ依頼日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "corporation_name": {
+ "description": "法人名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "applicant_name": {
+ "description": "申請者名
・全角",
+ "type": "string",
+ "minLength": 3,
+ "maxLength": 256
+ },
+ "proc_name": {
+ "description": "手続名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "ministry_name": {
+ "description": "府省名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 12
+ },
+ "submission_destination": {
+ "description": "提出先
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ },
+ "results_apply_check": {
+ "type": "object",
+ "required": [
+ "message",
+ "error_count"
+ ],
+ "properties": {
+ "message": {
+ "description": "処理結果に基づくメッセージ
・全半角",
+ "type": "string"
+ },
+ "error_count": {
+ "description": "エラーレポート件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "report_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/report_list"
+ }
+ ]
+ }
+ }
+ },
+ "results_apply_lists": {
+ "type": "object",
+ "properties": {
+ "apply_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/package_apply_list"
+ }
+ ]
+ }
+ }
+ },
+ "package_apply_list": {
+ "type": "array",
+ "description": "申請案件一覧情報項目",
+ "items": {
+ "type": "object",
+ "properties": {
+ "no": {
+ "description": "項番
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ },
+ "send_number": {
+ "description": "送信番号
・半角数字",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 18
+ },
+ "send_date": {
+ "description": "送信日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 19
+ },
+ "status": {
+ "description": "現在の申請ステータス
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "arrive_id": {
+ "description": "到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "arrive_date": {
+ "description": "到達日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "corporation_name": {
+ "description": "法人名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "applicant_name": {
+ "description": "申請者名
・全角",
+ "type": "string",
+ "minLength": 3,
+ "maxLength": 256
+ },
+ "proc_name": {
+ "description": "申請案件の手続名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "submission_destination": {
+ "description": "提出先
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "withdraw_flag": {
+ "description": "取下げ可能フラグ",
+ "type": "boolean"
+ },
+ "pay_status": {
+ "description": "納付状況
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 6
+ },
+ "notice_count": {
+ "description": "通知件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "doc_count": {
+ "description": "公文書件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "apply_pay_count": {
+ "description": "納付情報件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "notice_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/notice_list_apply"
+ }
+ ]
+ },
+ "official_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/official_list"
+ }
+ ]
+ },
+ "apply_pay_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/apply_pay_list_apply"
+ }
+ ]
+ },
+ "applied_account": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128,
+ "description": "提出実施アカウント
・半角"
+ }
+ }
+ }
+ },
+ "results_apply_detail": {
+ "type": "object",
+ "required": [
+ "status",
+ "arrive_id",
+ "arrive_date",
+ "corporation_name",
+ "applicant_name",
+ "proc_name",
+ "submission_destination",
+ "withdraw_flag",
+ "pay_status",
+ "notice_count",
+ "doc_count",
+ "apply_pay_count"
+ ],
+ "properties": {
+ "status": {
+ "description": "現在の申請ステータス
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "arrive_id": {
+ "description": "到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "arrive_date": {
+ "description": "到達日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "corporation_name": {
+ "description": "法人名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "applicant_name": {
+ "description": "申請者名
・全角",
+ "type": "string",
+ "minLength": 3,
+ "maxLength": 256
+ },
+ "proc_name": {
+ "description": "申請案件の手続名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "submission_destination": {
+ "description": "提出先
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "withdraw_flag": {
+ "description": "取下げ可能フラグ",
+ "type": "boolean"
+ },
+ "pay_status": {
+ "description": "納付状況
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 6
+ },
+ "notice_count": {
+ "description": "通知件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "doc_count": {
+ "description": "公文書件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "apply_pay_count": {
+ "description": "納付情報件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "notice_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/notice_list_apply"
+ }
+ ]
+ },
+ "official_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/official_list"
+ }
+ ]
+ },
+ "apply_pay_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/apply_pay_list_apply"
+ }
+ ]
+ },
+ "applied_account": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128,
+ "description": "提出実施アカウント
・半角"
+ }
+ }
+ },
+ "notice_list_apply": {
+ "type": "array",
+ "description": "申請案件に関する通知",
+ "items": {
+ "type": "object",
+ "properties": {
+ "notice_sub_id": {
+ "description": "通知通番
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 999
+ },
+ "issue_date": {
+ "description": "発行日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "notice_data_type": {
+ "description": "種別
・全角
補正通知も含む",
+ "type": "string",
+ "minLength": 2,
+ "maxLength": 4
+ },
+ "notice_title": {
+ "description": "件名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "notice_sentence": {
+ "description": "本文
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 512
+ },
+ "issuer_organization": {
+ "description": "発出元
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "correct_expired_date": {
+ "description": "補正期限年月日
・半角
・YYYY-MM-DD
例:2017-09-01",
+ "type": "string",
+ "format": "date",
+ "minLength": 10,
+ "maxLength": 10
+ },
+ "correct_completed_date": {
+ "description": "補正日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "format": "date",
+ "minLength": 19,
+ "maxLength": 19
+ }
+ }
+ }
+ },
+ "official_list": {
+ "type": "array",
+ "description": "取得要求した申請案件の公文書
公文書が発行された申請案件のみ",
+ "items": {
+ "type": "object",
+ "properties": {
+ "notice_sub_id": {
+ "description": "通知通番
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 999
+ },
+ "allowed_date": {
+ "description": "発行日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "doc_title": {
+ "description": "件名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "doc_download_expired_date": {
+ "description": "取得期限
・半角
・YYYY-MM-DD
例:2017-09-01",
+ "type": "string",
+ "format": "date",
+ "minLength": 10,
+ "maxLength": 10
+ },
+ "doc_download_date": {
+ "description": "取得完了日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "format": "date",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "sign": {
+ "description": "署名有無
・全角
あり/なし",
+ "type": "string",
+ "minLength": 2,
+ "maxLength": 2
+ }
+ }
+ }
+ },
+ "results_apply_report": {
+ "type": "object",
+ "properties": {
+ "error_report_info": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/error_report_info"
+ }
+ ]
+ }
+ }
+ },
+ "error_report_info": {
+ "type": "array",
+ "description": "エラーレポート情報
送信日時の降順でソート
要素の上限回数はシステム設定値",
+ "items": {
+ "type": "object",
+ "properties": {
+ "send_number": {
+ "description": "発行した送信番号
・半角数字 ",
+ "type": "string",
+ "minLength": 18,
+ "maxLength": 18
+ },
+ "send_date": {
+ "description": "送信日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "file_name": {
+ "description": "一括申請データのファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "apply_count": {
+ "description": "一括申請データに含まれていた申請件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ },
+ "arrive_count": {
+ "description": "到達した申請件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ },
+ "error_count": {
+ "description": "エラーとなった申請件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "result": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/result_report_info_result"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "result_report_info_result": {
+ "type": "array",
+ "description": "申請結果・エラーの内容
申請フォルダ名の昇順でソート",
+ "items": {
+ "type": "object",
+ "properties": {
+ "arrive_id": {
+ "description": "到達番号
・半角数字
エラーが発生して到達されていない場合は”-”",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "arrive_date": {
+ "description": "到達日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00
エラーが発生して到達されていない場合は”-”",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "proc_name": {
+ "description": "手続名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "folder_name": {
+ "description": "一括申請データ内の申請フォルダ名
・半角英数字",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "report_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/report_list"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "detail": {
+ "description": "エラー詳細
・全半角",
+ "type": "string"
+ }
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ },
+ "results_message_lists": {
+ "type": "object",
+ "properties": {
+ "information_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/message_list"
+ }
+ ]
+ }
+ }
+ },
+ "message_list": {
+ "type": "array",
+ "description": "手続に関するご案内一覧
※発出日時の降順でソート
要素の上限回数はシステム設定値",
+ "items": {
+ "type": "object",
+ "properties": {
+ "information_id": {
+ "description": "お知らせID
・半角英数字",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 16
+ },
+ "issuer_organization": {
+ "description": "発出元
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "issue_date": {
+ "description": "発出日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "proc_first_category": {
+ "description": "手続分野大分類
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 400
+ },
+ "proc_second_category": {
+ "description": "手続分野中分類
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 400
+ },
+ "proc_third_category": {
+ "description": "手続分野小分類
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 400
+ },
+ "information_title": {
+ "description": "タイトル
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ },
+ "results_message": {
+ "type": "object",
+ "required": [
+ "information"
+ ],
+ "properties": {
+ "information": {
+ "description": "手続に関するご案内",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/message"
+ }
+ ]
+ }
+ }
+ },
+ "message": {
+ "type": "object",
+ "required": [
+ "issuer_organization",
+ "issue_date",
+ "proc_first_category",
+ "proc_second_category",
+ "proc_third_category",
+ "information_title",
+ "information_data"
+ ],
+ "properties": {
+ "issuer_organization": {
+ "description": "発出元
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "issue_date": {
+ "description": "発出日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "proc_first_category": {
+ "description": "手続分野大分類
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 400
+ },
+ "proc_second_category": {
+ "description": "手続分野中分類
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 400
+ },
+ "proc_third_category": {
+ "description": "手続分野小分類
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 400
+ },
+ "information_title": {
+ "description": "タイトル
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "information_data": {
+ "description": "本文
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "attached_file_list": {
+ "description": "添付ファイルリスト",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/data_optional"
+ }
+ ]
+ }
+ }
+ },
+ "results_notice_lists": {
+ "type": "object",
+ "properties": {
+ "notice_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/notice_list"
+ }
+ ]
+ }
+ }
+ },
+ "notice_list": {
+ "type": "array",
+ "description": "申請案件に関する通知一覧
※発出日時の降順でソート
要素の上限回数はシステム設定値",
+ "items": {
+ "type": "object",
+ "properties": {
+ "issuer_organization": {
+ "description": "発出元
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "arrive_id": {
+ "description": "到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "notice_sub_id": {
+ "description": "通知通番
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 999
+ },
+ "notice_issue_date": {
+ "description": "通知発行日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "type": {
+ "description": "種別
・全角",
+ "type": "string",
+ "minLength": 2,
+ "maxLength": 4
+ },
+ "title": {
+ "description": "タイトル
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "corporation_name_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/corporation_name_list"
+ }
+ ]
+ },
+ "applicant_name_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/applicant_name_list"
+ }
+ ]
+ },
+ "proc_name": {
+ "description": "手続名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "notified_account": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128,
+ "description": "通知対象アカウント
・半角"
+ }
+ }
+ }
+ },
+ "corporation_name_list": {
+ "description": "法人名リスト",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "corporation_name": {
+ "description": "法人名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ },
+ "applicant_name_list": {
+ "description": "申請者名リスト",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "applicant_name": {
+ "description": "申請者名
・全角",
+ "type": "string",
+ "minLength": 3,
+ "maxLength": 256
+ }
+ }
+ }
+ },
+ "results_notice": {
+ "type": "object",
+ "required": [
+ "notice"
+ ],
+ "properties": {
+ "notice": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/notice"
+ }
+ ]
+ }
+ }
+ },
+ "notice": {
+ "type": "object",
+ "description": "申請案件に関する通知",
+ "required": [
+ "issuer_organization",
+ "notice_issue_date",
+ "notice_title",
+ "proc_name"
+ ],
+ "properties": {
+ "issuer_organization": {
+ "description": "発出元
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "notice_issue_date": {
+ "description": "通知発行日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "notice_type": {
+ "description": "種別
・全角
お知らせ、納付、補正、取下げ",
+ "type": "string",
+ "minLength": 2,
+ "maxLength": 4
+ },
+ "correct_type": {
+ "description": "補正種別
※種別が\"補正\"の場合のみ以下を出力
部分補正、再提出、手続終了(再提出可)
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 10
+ },
+ "correct_expired_date": {
+ "description": "補正期限年月日
※種別が\"補正\"の場合のみ出力
・半角
・YYYY-MM-DD
例:2017-09-01",
+ "type": "string",
+ "format": "date",
+ "minLength": 10,
+ "maxLength": 10
+ },
+ "correct_completed_date": {
+ "description": "補正完了日時
※種別が\"補正\"の場合かつ既に補正を行っている場合のみ出力
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "format": "date",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "notice_title": {
+ "description": "タイトル
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "notice_sentence": {
+ "description": "本文
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 512
+ },
+ "attached_file_list": {
+ "description": "添付ファイルリスト",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/data_optional"
+ }
+ ]
+ },
+ "corporation_name_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/corporation_name_list"
+ }
+ ]
+ },
+ "applicant_name_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/applicant_name_list"
+ }
+ ]
+ },
+ "proc_name": {
+ "description": "手続名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "notified_account": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128,
+ "description": "通知対象アカウント
・半角"
+ }
+ }
+ },
+ "results_official_document": {
+ "type": "object",
+ "required": [
+ "file_data",
+ "file_name_list"
+ ],
+ "properties": {
+ "file_data": {
+ "description": "ファイル圧縮データ
・半角
・鑑ファイル、添付ファイル
・バイナリデータはBase64エンコードしたものを使用する。",
+ "type": "string",
+ "format": "byte",
+ "minLength": 1
+ },
+ "file_name_list": {
+ "description": "ファイル圧縮データに含まれている公文書のファイル名のリスト",
+ "type": "array",
+ "items": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/file_name_list_official"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "file_name_list_official": {
+ "type": "object",
+ "required": [
+ "file_name"
+ ],
+ "properties": {
+ "file_name": {
+ "description": "ファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ },
+ "results_official_document_complete": {
+ "type": "object",
+ "required": [
+ "arrive_id",
+ "notice_sub_id",
+ "proc_name",
+ "doc_title",
+ "download_date",
+ "file_name_list"
+ ],
+ "properties": {
+ "arrive_id": {
+ "description": "取得完了要求した到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "notice_sub_id": {
+ "description": "取得完了要求した通知通番
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 999
+ },
+ "proc_name": {
+ "description": "取得完了要求した公文書の手続名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "doc_title": {
+ "description": "取得完了要求した公文書の件名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "download_date": {
+ "description": "取得完了要求した公文書の取得日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "file_name_list": {
+ "description": "取得完了要求した公文書のファイル名リスト",
+ "type": "array",
+ "items": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/file_name_list"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "file_name_list": {
+ "type": "object",
+ "required": [
+ "file_name"
+ ],
+ "properties": {
+ "file_name": {
+ "description": "取得完了要求した公文書のファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ },
+ "results_official_document_verify": {
+ "type": "object",
+ "required": [
+ "sig_verification_xml_file_name",
+ "verify_result"
+ ],
+ "properties": {
+ "sig_verification_xml_file_name": {
+ "description": "署名検証XMLファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "attached_file_name": {
+ "description": "署名検証対象の添付ファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "verify_result": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/verify_result"
+ }
+ ]
+ }
+ }
+ },
+ "verify_result": {
+ "description": "検証結果",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "official": {
+ "description": "官職証明書検証結果項目
官職証明書の検証が行われた場合に表示",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/official"
+ }
+ ]
+ },
+ "government": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/government"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "official": {
+ "type": "object",
+ "properties": {
+ "validation_result": {
+ "description": "署名検証結果
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "certificate_result": {
+ "description": "証明書検証結果
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "certificate_count": {
+ "description": "証明書件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 999
+ },
+ "publisher": {
+ "description": "発行者
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "owner": {
+ "description": "所有者
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "publisher_dn": {
+ "description": "発行者[DN]
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "owner_dn": {
+ "description": "所有者[DN]
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "serial_number": {
+ "description": "シリアルナンバー
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "start_date": {
+ "description": "有効期間開始日時
・・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00'",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "end_date": {
+ "description": "有効期間終了日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ }
+ }
+ },
+ "government": {
+ "type": "array",
+ "description": "行政機関証明書検証結果
行政機関証明書書の検証が行われた場合に表示",
+ "items": {
+ "type": "object",
+ "properties": {
+ "publisher_dn": {
+ "description": "発行者[DN]
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "owner_dn": {
+ "description": "所有者[DN]
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "serial_number": {
+ "description": "シリアルナンバー
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "start_date": {
+ "description": "有効期間開始日時
・・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00'",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "end_date": {
+ "description": "有効期間終了日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ }
+ }
+ }
+ },
+ "results_payment_lists": {
+ "type": "object",
+ "required": [
+ "bank_list",
+ "financial_type_list_date"
+ ],
+ "properties": {
+ "bank_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/bank_list"
+ }
+ ]
+ },
+ "financial_type_list_date": {
+ "description": "金融機関種別一覧情報日時
・半角
YYYY-MM-DD
例:2017-09-01",
+ "type": "string",
+ "minLength": 10,
+ "maxLength": 10
+ }
+ }
+ },
+ "bank_list": {
+ "type": "object",
+ "description": "金融機関リスト",
+ "required": [
+ "trust_bank",
+ "shinkin_bank",
+ "credit_union",
+ "norinchukin_bank",
+ "labour_bank"
+ ],
+ "properties": {
+ "trust_bank": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/trust_bank"
+ }
+ ]
+ },
+ "shinkin_bank": {
+ "description": "信用金庫情報項目",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/bank_common"
+ }
+ ]
+ },
+ "credit_union": {
+ "description": "信用組合情報項目",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/bank_common"
+ }
+ ]
+ },
+ "norinchukin_bank": {
+ "description": "農林中央金庫情報項目",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/bank_common"
+ }
+ ]
+ },
+ "labour_bank": {
+ "description": "労働金庫情報項目",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/bank_common"
+ }
+ ]
+ }
+ }
+ },
+ "trust_bank": {
+ "description": "銀行・信託銀行一覧項目",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "initial_name": {
+ "description": "頭文字
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1
+ },
+ "bank": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/bank_trust"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "bank_trust": {
+ "description": "金融機関情報",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "financial_name": {
+ "description": "金融機関名称
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "service_name": {
+ "description": "ネットバンク商品名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "url": {
+ "description": "URL
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ },
+ "bank_common": {
+ "type": "object",
+ "properties": {
+ "bank": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/bank"
+ }
+ ]
+ }
+ }
+ },
+ "bank": {
+ "description": "金融機関情報",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "financial_name": {
+ "description": "金融機関名称
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "url": {
+ "description": "URL
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ },
+ "results_payment": {
+ "type": "object",
+ "required": [
+ "arrive_id",
+ "proc_name"
+ ],
+ "properties": {
+ "arrive_id": {
+ "description": "到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "proc_name": {
+ "description": "手続名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "apply_pay_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/apply_pay_list_payment"
+ }
+ ]
+ }
+ }
+ },
+ "apply_pay_list_payment": {
+ "type": "array",
+ "description": "納付情報",
+ "items": {
+ "type": "object",
+ "properties": {
+ "pay_number": {
+ "description": "納付番号
・半角英数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 16
+ },
+ "confirm_number": {
+ "description": "確認番号
・半角数字",
+ "type": "string",
+ "minLength": 6,
+ "maxLength": 6
+ },
+ "facility_number": {
+ "description": "収納機関番号
・半角英数字",
+ "type": "string",
+ "minLength": 5,
+ "maxLength": 5
+ },
+ "pay_name_kana": {
+ "description": "納付手続名(カナ)
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 24
+ },
+ "pay_expired": {
+ "description": "払込期限
・半角
YYYY-MM-DD
例:2017-09-01",
+ "type": "string",
+ "format": "date",
+ "minLength": 10,
+ "maxLength": 10
+ },
+ "total_fee": {
+ "description": "払込金額
・半角数字",
+ "type": "integer",
+ "format": "int64",
+ "minimum": 0,
+ "maximum": 9223372036854776000
+ },
+ "pay_status": {
+ "description": "納付状況
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 6
+ },
+ "pay_date": {
+ "description": "納付日
・半角
YYYY-MM-DD
例:2017-09-01",
+ "type": "string",
+ "format": "date",
+ "minLength": 10,
+ "maxLength": 10
+ },
+ "pay_memo": {
+ "description": "通信欄
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "pay_flag": {
+ "description": "納付フラグ
・半角英数字",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1
+ }
+ }
+ }
+ },
+ "results_payment_site": {
+ "type": "object",
+ "required": [
+ "URL",
+ "facility_number",
+ "treasury_money_code",
+ "parameter_tag_name",
+ "information_link_data"
+ ],
+ "properties": {
+ "URL": {
+ "description": "URL
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "facility_number": {
+ "description": "収納機関番号
・半角英数字",
+ "type": "string",
+ "minLength": 5,
+ "maxLength": 5
+ },
+ "treasury_money_code": {
+ "description": "国庫金コード
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1
+ },
+ "parameter_tag_name": {
+ "description": "パラメータタグ名
・半角英数字",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "information_link_data": {
+ "description": "情報リンクデータ
・半角
・バイナリデータはBase64エンコードしたものを使用する。",
+ "type": "string",
+ "format": "byte",
+ "minLength": 1
+ }
+ }
+ },
+ "request_introspect": {
+ "type": "object",
+ "required": [
+ "token"
+ ],
+ "properties": {
+ "token": {
+ "description": "アクセストークン取得リクエストで取得したアクセストークンまたはリフレッシュトークン
・半角英数字",
+ "type": "string"
+ },
+ "token_type_hint": {
+ "description": "「access_token」または「refresh_token」
・半角英数字
",
+ "type": "string",
+ "minLength": 12,
+ "maxLength": 13
+ }
+ }
+ },
+ "results_introspect": {
+ "type": "object",
+ "required": [
+ "active"
+ ],
+ "properties": {
+ "exp": {
+ "description": "トークンの有効期限が切れる時のUNIXタイム・スタンプ
・数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "integer",
+ "format": "int32"
+ },
+ "iat": {
+ "description": "トークンが付与された時のUNIXタイム・スタンプ
・数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "integer",
+ "format": "int32"
+ },
+ "auth_time": {
+ "description": "ユーザーが認証された時のUNIXタイム・スタンプ
・数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却
※リフレッシュトークン指定時は返却しない",
+ "type": "integer",
+ "format": "int32"
+ },
+ "jti": {
+ "description": "トークンの識別子
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "string"
+ },
+ "iss": {
+ "description": "トークンの発行者
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "string"
+ },
+ "aud": {
+ "description": "トークン発行対象の識別子
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "string"
+ },
+ "sub": {
+ "description": "ユーザーの識別子
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "string"
+ },
+ "typ": {
+ "description": "トークンのタイプ
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "string"
+ },
+ "azp": {
+ "description": "認可対象の識別子
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "string"
+ },
+ "session_state": {
+ "description": "セッション状態を表す識別子
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "string"
+ },
+ "email": {
+ "description": "ユーザーのメールアドレス
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却
※リフレッシュトークン指定時は返却しない",
+ "type": "string"
+ },
+ "email_verified": {
+ "description": "emailアドレスの確認有無
・半角英字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却
※リフレッシュトークン指定時は返却しない",
+ "type": "boolean"
+ },
+ "acr": {
+ "description": "認証コンテキストのクラス
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却
※リフレッシュトークン指定時は返却しない",
+ "type": "string"
+ },
+ "scope": {
+ "description": "アクセストークンの有効範囲
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "string"
+ },
+ "sid": {
+ "description": "セッション状態を表す識別子
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "string"
+ },
+ "egov_idp": {
+ "description": "アイデンティティプロバイダの識別子
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却
※リフレッシュトークン指定時は返却しない",
+ "type": "string"
+ },
+ "egov_extidp_auth_time": {
+ "description": "ユーザーが認証された時のUNIXタイム・スタンプ(ミリ秒)
・数字
外部IDPアカウント(GビズIDアカウント)の場合かつトークンが有効の場合のみ、RFC7662に準拠したパラメータを返却
※リフレッシュトークン指定時は返却しない",
+ "type": "integer",
+ "format": "int64"
+ },
+ "egov_gbizid_account_type": {
+ "description": "GビズIDのアカウント種別(1:gbizエントリー、2:gbizプライム、3:gbizメンバー)
・半角数字
外部IDPアカウント(GビズIDアカウント)の場合かつトークンが有効の場合のみ、RFC7662に準拠したパラメータを返却
※リフレッシュトークン指定時は返却しない",
+ "type": "string"
+ },
+ "client_id": {
+ "description": "トークンの付与先のクライアント
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "string"
+ },
+ "username": {
+ "description": "トークンを付与したユーザーのユーザー名
・半角英数字
トークンが有効の場合のみ、RFC7662に準拠したパラメータを返却",
+ "type": "string"
+ },
+ "active": {
+ "description": "トークンの有効性
・半角英字",
+ "type": "boolean"
+ }
+ }
+ },
+ "request_token": {
+ "type": "object",
+ "required": [
+ "grant_type",
+ "code",
+ "redirect_uri",
+ "refresh_token",
+ "scope"
+ ],
+ "properties": {
+ "grant_type": {
+ "description": "取得時「authorization_code」固定
再取得時「refresh_token」固定
・半角英数字",
+ "type": "string",
+ "minLength": 13,
+ "maxLength": 18
+ },
+ "code": {
+ "description": "ユーザー認可リクエストで取得済の認可コード
※取得時のみ指定
・半角英数字",
+ "type": "string"
+ },
+ "redirect_uri": {
+ "description": "ユーザー認可リクエストで指定した「redirect_uri」
※取得時のみ指定
・半角英数字",
+ "type": "string"
+ },
+ "code_verifier": {
+ "description": "ユーザー認可リクエストで指定した「code_challenge」のハッシュ値の元となった文字列を指定
※取得時のみ指定
・半角英数字
・PKCE対策",
+ "type": "string",
+ "minLength": 43,
+ "maxLength": 128
+ },
+ "refresh_token": {
+ "description": "アクセストークン取得リクエストで取得したリフレッシュトークン
※再取得時のみ指定
・半角英数字",
+ "type": "string"
+ }
+ }
+ },
+ "results_token": {
+ "type": "object",
+ "required": [
+ "access_token",
+ "expires_in",
+ "refresh_expires_in",
+ "refresh_token",
+ "token_type",
+ "scope",
+ "id_token",
+ "not-before-policy",
+ "session_state"
+ ],
+ "properties": {
+ "access_token": {
+ "description": "アクセストークン
・半角英数字",
+ "type": "string"
+ },
+ "expires_in": {
+ "description": "アクセストークンの有効期限(秒)
・数字",
+ "type": "integer",
+ "format": "int32"
+ },
+ "refresh_expires_in": {
+ "description": "リフレッシュトークンの有効期限(秒)
・数字",
+ "type": "integer",
+ "format": "int32"
+ },
+ "refresh_token": {
+ "description": "リフレッシュトークン
・半角英数字",
+ "type": "string"
+ },
+ "token_type": {
+ "description": "トークン・タイプ
・半角英数字
「Bearer」固定",
+ "type": "string",
+ "minLength": 6,
+ "maxLength": 6
+ },
+ "id_token": {
+ "description": "IDトークン
・半角英数字",
+ "type": "string"
+ },
+ "not-before-policy": {
+ "description": "アクセスが有効となる日時(UNIXタイム・スタンプ)
・数字",
+ "type": "integer",
+ "format": "int32"
+ },
+ "session_state": {
+ "description": "セッション状態を表す識別子
・半角英数字",
+ "type": "string"
+ },
+ "scope": {
+ "description": "ユーザ認可リクエストで指定したscope
・半角英数字",
+ "type": "string"
+ }
+ }
+ },
+ "report_list": {
+ "description": "エラーレポート一覧",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "form_name": {
+ "description": "様式名
・全角
・エラー内容が様式に依らない場合は”-”",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ },
+ "attached_file_name": {
+ "description": "添付書類名
・全半角
・エラー内容が添付書類に依らない場合は”-”",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "file_name": {
+ "description": "ファイル名
・全半角
・エラー内容がファイルに依らない場合は”-”
・構成管理xmlのファイル名を設定",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "item": {
+ "description": "項目名
・全半角
・エラー内容が項目に依らない場合は”-”
・様式の項目名を設定",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "content": {
+ "description": "エラー内容
・全半角",
+ "type": "string"
+ }
+ }
+ }
+ },
+ "report_list_withdraw": {
+ "description": "エラーレポート一覧",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "file_name": {
+ "description": "ファイル名
・全半角
・エラー内容がファイルに依らない場合は”-”
・構成管理xmlのファイル名を設定",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "item": {
+ "description": "項目名
・全半角
・エラー内容が項目に依らない場合は”-”
・様式の項目名を設定",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "content": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ },
+ "application_info": {
+ "description": "申請届出識別情報
繰り返し回数1~10",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "required": [
+ "label",
+ "value"
+ ],
+ "properties": {
+ "label": {
+ "description": "入力項目名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 32
+ },
+ "value": {
+ "description": "入力値
・全半角",
+ "type": "string",
+ "format": "byte",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ },
+ "metadata_common": {
+ "required": [
+ "title",
+ "detail",
+ "type",
+ "instance"
+ ],
+ "properties": {
+ "title": {
+ "description": "API名称
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "detail": {
+ "description": "詳細情報
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "type": {
+ "description": "APIドキュメントURL
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "instance": {
+ "description": "エンドポイントURI
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ },
+ "result_set": {
+ "type": "object",
+ "description": "結果セット",
+ "required": [
+ "all_count",
+ "limit",
+ "offset",
+ "count"
+ ],
+ "properties": {
+ "all_count": {
+ "description": "全件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "limit": {
+ "description": "取得件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 9999
+ },
+ "offset": {
+ "description": "オフセット件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "count": {
+ "description": "取得結果件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ }
+ }
+ },
+ "data": {
+ "type": "object",
+ "required": [
+ "file_name",
+ "file_data"
+ ],
+ "properties": {
+ "file_name": {
+ "description": "ファイル名
拡張子「.zip」も含めて設定
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "file_data": {
+ "description": "ファイルデータ
・半角
・バイナリデータはBase64エンコードしたものを使用する。",
+ "type": "string",
+ "format": "byte",
+ "minLength": 1
+ }
+ }
+ },
+ "data_pre": {
+ "type": "object",
+ "required": [
+ "file_name",
+ "file_data"
+ ],
+ "properties": {
+ "file_name": {
+ "description": "ファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "file_data": {
+ "description": "ファイルデータ
・半角
・バイナリデータはBase64エンコードしたものを使用する。",
+ "type": "string",
+ "format": "byte",
+ "minLength": 1
+ }
+ }
+ },
+ "data_optional": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "file_name": {
+ "description": "ファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "file_data": {
+ "description": "ファイルデータ
・半角
・バイナリデータはBase64エンコードしたものを使用する。",
+ "type": "string",
+ "format": "byte",
+ "minLength": 1
+ }
+ }
+ }
+ },
+ "links_lists": {
+ "type": "object",
+ "description": "接続URL情報",
+ "required": [
+ "self"
+ ],
+ "properties": {
+ "self": {
+ "description": "接続URL情報(自身)
・半角",
+ "type": "string",
+ "minLength": 1
+ },
+ "previous": {
+ "description": "接続URL情報(前頁)
・半角",
+ "type": "string",
+ "minLength": 1
+ },
+ "next": {
+ "description": "接続URL情報(次頁)
・半角",
+ "type": "string",
+ "minLength": 1
+ }
+ }
+ },
+ "links_lists_note": {
+ "type": "object",
+ "description": "接続URL情報",
+ "required": [
+ "self"
+ ],
+ "properties": {
+ "self": {
+ "description": "接続URL情報(自身)
・半角",
+ "type": "string",
+ "minLength": 1
+ },
+ "previous": {
+ "description": "接続URL情報(前頁)
・半角
・送信番号指定の場合、出力しない
・前頁が存在しない場合、出力しない",
+ "type": "string",
+ "minLength": 1
+ },
+ "next": {
+ "description": "接続URL情報(次頁)
・半角
・送信番号指定の場合、出力しない
・次頁が存在しない場合、出力しない",
+ "type": "string",
+ "minLength": 1
+ }
+ }
+ },
+ "links_apply": {
+ "type": "object",
+ "description": "接続URL情報",
+ "required": [
+ "self",
+ "status"
+ ],
+ "properties": {
+ "self": {
+ "description": "接続URL情報(自身)
・半角",
+ "type": "string",
+ "minLength": 1
+ },
+ "status": {
+ "description": "接続URL情報(申請案件取得)
・半角",
+ "type": "string",
+ "minLength": 1
+ }
+ }
+ },
+ "links_bulk_apply": {
+ "type": "object",
+ "description": "接続URL情報",
+ "required": [
+ "self",
+ "list",
+ "report"
+ ],
+ "properties": {
+ "self": {
+ "description": "接続URL情報(自身)
・半角",
+ "type": "string",
+ "minLength": 1
+ },
+ "list": {
+ "description": "接続URL情報(申請案件一覧)
・半角",
+ "type": "string",
+ "minLength": 1
+ },
+ "report": {
+ "description": "接続URL情報(エラーレポート)
・半角",
+ "type": "string",
+ "minLength": 1
+ }
+ }
+ },
+ "links_official_document": {
+ "type": "object",
+ "description": "接続URL情報",
+ "required": [
+ "self",
+ "complete"
+ ],
+ "properties": {
+ "self": {
+ "description": "接続URL情報(自身)
・半角",
+ "type": "string",
+ "minLength": 1
+ },
+ "complete": {
+ "description": "接続URL情報(取得完了)
・半角",
+ "type": "string",
+ "minLength": 1
+ }
+ }
+ },
+ "error_token": {
+ "type": "object",
+ "required": [
+ "error"
+ ],
+ "properties": {
+ "error": {
+ "description": "HTTPステータスに紐づくエラーコード
・半角英数字",
+ "type": "string"
+ },
+ "error_description": {
+ "description": "エラーコードに紐づくエラー詳細
・全角",
+ "type": "string"
+ }
+ }
+ },
+ "error_bulk": {
+ "type": "array",
+ "description": "エラー内容項目",
+ "items": {
+ "type": "object",
+ "required": [
+ "self",
+ "complete"
+ ],
+ "properties": {
+ "errorFolder": {
+ "description": "エラー申請フォルダ名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "errorFile": {
+ "description": "エラー申請ファイル名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "content": {
+ "description": "エラー内容
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ }
+ }
+ }
+ },
+ "results_post_apply": {
+ "type": "object",
+ "required": [
+ "arrive_id",
+ "arrive_date",
+ "corporation_name",
+ "applicant_name",
+ "apply_type",
+ "proc_name",
+ "ministry_name",
+ "submission_destination",
+ "apply_form",
+ "apply_pay_list"
+ ],
+ "properties": {
+ "arrive_id": {
+ "description": "到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "arrive_date": {
+ "description": "到達日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "corporation_name": {
+ "description": "法人名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "applicant_name": {
+ "description": "申込者名
・全角",
+ "type": "string",
+ "minLength": 3,
+ "maxLength": 256
+ },
+ "apply_type": {
+ "description": "申請区分
・全角
・「新規申請」または「再提出」",
+ "type": "string",
+ "minLength": 3,
+ "maxLength": 4
+ },
+ "proc_name": {
+ "description": "利用申込み対象の名称
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "ministry_name": {
+ "description": "申込み所管府省
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 12
+ },
+ "submission_destination": {
+ "description": "提出先
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "apply_form": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/post_apply_form"
+ }
+ ]
+ },
+ "apply_pay_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/apply_pay_list_apply"
+ }
+ ]
+ }
+ }
+ },
+ "post_apply_form": {
+ "description": "申込みを行った各様式・書類の内容",
+ "type": "object",
+ "properties": {
+ "form": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/form"
+ }
+ ]
+ },
+ "attached_file": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/attached_file"
+ }
+ ]
+ }
+ }
+ },
+ "results_post_apply_detail": {
+ "type": "object",
+ "required": [
+ "status",
+ "arrive_id",
+ "arrive_date",
+ "corporation_name",
+ "applicant_name",
+ "proc_name",
+ "submission_destination",
+ "withdraw_flag",
+ "pay_status",
+ "notice_count",
+ "doc_count",
+ "apply_pay_count"
+ ],
+ "properties": {
+ "status": {
+ "description": "現在の申請ステータス
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "arrive_id": {
+ "description": "到達番号
・半角数字",
+ "type": "string",
+ "minLength": 16,
+ "maxLength": 18
+ },
+ "arrive_date": {
+ "description": "到達日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "corporation_name": {
+ "description": "法人名
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "applicant_name": {
+ "description": "申込者名
・全角",
+ "type": "string",
+ "minLength": 3,
+ "maxLength": 256
+ },
+ "proc_name": {
+ "description": "申込対象の名称
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "submission_destination": {
+ "description": "提出先
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "withdraw_flag": {
+ "description": "取下げ可能フラグ",
+ "type": "boolean"
+ },
+ "pay_status": {
+ "description": "納付状況
・全角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 6
+ },
+ "notice_count": {
+ "description": "通知件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "doc_count": {
+ "description": "公文書件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "apply_pay_count": {
+ "description": "納付情報件数
・数字",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 9999
+ },
+ "notice_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/notice_list_apply"
+ }
+ ]
+ },
+ "official_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/official_list"
+ }
+ ]
+ },
+ "apply_pay_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/apply_pay_list_apply"
+ }
+ ]
+ },
+ "applied_account": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128,
+ "description": "提出実施アカウント
・半角"
+ }
+ }
+ },
+ "results_post": {
+ "type": "object",
+ "required": [
+ "notice_data_name",
+ "file_data",
+ "file_name_list"
+ ],
+ "properties": {
+ "notice_data_name": {
+ "description": "取得した通知文書一式の名称
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "file_data": {
+ "description": "ファイル圧縮データ
・半角
・鑑ファイル、添付ファイル
・バイナリデータはBase64エンコードしたものを使用する。",
+ "type": "string",
+ "format": "byte",
+ "minLength": 1
+ },
+ "file_name_list": {
+ "description": "ファイル圧縮データに含まれている通知文書のファイル名のリスト",
+ "type": "array",
+ "items": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/file_name_list_official"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "results_post_complete": {
+ "type": "object",
+ "required": [
+ "post_id",
+ "notice_data_name",
+ "download_date"
+ ],
+ "properties": {
+ "post_id": {
+ "description": "取得完了要求した電子送達識別子
・半角英数字
・1-50桁",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 50
+ },
+ "notice_data_name": {
+ "description": "取得完了要求した通知文書一式の名称
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "download_date": {
+ "description": "取得完了要求した通知文書の取得日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ }
+ }
+ },
+ "results_post_lists": {
+ "type": "object",
+ "required": [
+ "post_list"
+ ],
+ "properties": {
+ "post_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/post_list"
+ }
+ ]
+ }
+ }
+ },
+ "post_list": {
+ "type": "array",
+ "description": "電子送達一覧
※発出日時の降順でソート
要素の上限回数はシステム設定値",
+ "items": {
+ "type": "object",
+ "properties": {
+ "ministry_message_id": {
+ "description": "府省メッセージ通番
・半角英数字",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 18
+ },
+ "type": {
+ "description": "種別
・全角",
+ "type": "string",
+ "minLength": 2,
+ "maxLength": 4
+ },
+ "title": {
+ "description": "タイトル
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "message_sentence": {
+ "description": "本文
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "issuer_organization": {
+ "description": "発出元
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "issue_date": {
+ "description": "発出日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "received_account": {
+ "description": "送達対象アカウント
・半角英数字",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ },
+ "notice_data_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/notice_data_list"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "notice_data_list": {
+ "description": "通知文書リスト",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "post_id": {
+ "description": "電子送達識別子
・半角英数字
・1-50桁",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 50
+ },
+ "notice_data_name": {
+ "description": "通知文書名
・全半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "notice_issue_date": {
+ "description": "通知文書の発出日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "download_expired_date": {
+ "description": "通知文書の取得期限
・半角
・YYYY-MM-DD
例:2017-09-01",
+ "type": "string",
+ "minLength": 10,
+ "maxLength": 10
+ },
+ "download_date": {
+ "description": "通知文書の取得完了日時
・半角
・YYYY-MM-DD HH:MM:SS
例:2017-09-01 09:30:00",
+ "type": "string",
+ "minLength": 19,
+ "maxLength": 19
+ },
+ "sign": {
+ "description": "通知文書の署名有無
・全角
あり/なし",
+ "type": "string",
+ "minLength": 2,
+ "maxLength": 2
+ }
+ }
+ }
+ },
+ "results_share_setting_lists": {
+ "type": "object",
+ "required": [
+ "share_setting_list"
+ ],
+ "properties": {
+ "share_setting_list": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/share_setting_lists"
+ }
+ ]
+ }
+ }
+ },
+ "share_setting_lists": {
+ "type": "object",
+ "required": [
+ "gbiz_id",
+ "official_doc_permission",
+ "post_doc_permission"
+ ],
+ "properties": {
+ "gbiz_id": {
+ "description": "共有中のgBizIDのアカウントID(メールアドレス)
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ },
+ "official_doc_permission": {
+ "description": "公文書に関する権限情報
・半角
READ:参照権限
DOWNLOAD:ダウンロード権限",
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 8
+ },
+ "post_doc_permission": {
+ "description": "電子送達の通知文書に関する権限情報
・半角
READ:参照権限
DOWNLOAD:ダウンロード権限",
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 8
+ }
+ }
+ },
+ "results_share-setting-post": {
+ "type": "object",
+ "required": [
+ "gbiz_id",
+ "official_doc_permission",
+ "post_doc_permission"
+ ],
+ "properties": {
+ "gbiz_id": {
+ "description": "共有対象のgBizIDのアカウントID(メールアドレス)
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ },
+ "official_doc_permission": {
+ "description": "公文書に関する権限情報
・半角
READ:参照権限
DOWNLOAD:ダウンロード権限",
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 8
+ },
+ "post_doc_permission": {
+ "description": "電子送達の通知文書に関する権限情報
・半角
READ:参照権限
DOWNLOAD:ダウンロード権限",
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 8
+ }
+ }
+ },
+ "results_share-setting-put": {
+ "type": "object",
+ "required": [
+ "gbiz_id",
+ "official_doc_permission",
+ "post_doc_permission"
+ ],
+ "properties": {
+ "gbiz_id": {
+ "description": "共有中のgBizIDのアカウントID(メールアドレス)
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ },
+ "official_doc_permission": {
+ "description": "公文書に関する権限情報
・半角
READ:参照権限
DOWNLOAD:ダウンロード権限",
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 8
+ },
+ "post_doc_permission": {
+ "description": "電子送達の通知文書に関する権限情報
・半角
READ:参照権限
DOWNLOAD:ダウンロード権限",
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 8
+ }
+ }
+ },
+ "results_share-setting-delete": {
+ "type": "object",
+ "required": [
+ "gbiz_id"
+ ],
+ "properties": {
+ "gbiz_id": {
+ "description": "解除したgBizIDのアカウントID(メールアドレス)
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ }
+ }
+ },
+ "results_share-confirmation": {
+ "type": "object",
+ "required": [
+ "gbiz_id",
+ "share_acceptance"
+ ],
+ "properties": {
+ "gbiz_id": {
+ "description": "共有依頼元のgBizIDのアカウントID(メールアドレス)
・半角",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ },
+ "share_acceptance": {
+ "description": "共有設定の許可/不許可
・半角
ACCEPT:許可する
DENY:許可しない",
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 6
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/frontend/egov.html b/frontend/egov.html
new file mode 100644
index 0000000..3d547b3
--- /dev/null
+++ b/frontend/egov.html
@@ -0,0 +1,672 @@
+
+
+
GビズID プレミアムで e-Gov にログインします。
+ + + + + +
+ 公式 e-Gov API を使用してGビズIDで認証します。
+ ボタンを押すとGビズIDのログインページに移動します。認証後、自動でここに戻ります。
+
給与・賞与の計算や従業員管理を行います。
+ +
+ 年金事務所からの電子送達書類(社会保険通知など)を取得・管理します。
+ GビズIDでe-Govにログインし、毎月の電子通知CSVを確認できます。
+
+ e-Gov 連携を開く +
+