計画認定 - 各書類 - 新規登録・編集 API
概要
{primary} 計画認定の各書類のデータ新規登録・更新を行うAPIです。
監理団体アカウントのみ利用できます。
エンドポイント
| メソッド |
URI |
Headers |
| POST |
/api/application/document/{document_code}/{appdoc_project_id}/{appdoc_trainee_id?} |
Default |
ROUTEパラメータ
| パラメーター名 |
型 |
内容 |
特記 |
| document_code |
int |
書類コード |
|
| appdoc_project_id |
int |
計画認定プロジェクトID |
|
| appdoc_trainee_id |
int |
計画認定技能実習生ID |
「共通」の書類等、技能実習生毎に作成しない書類の場合はこのパラーメタは不要です。 |
リクエストパラメータ
| パラメーター名 |
必須 |
型 |
内容 |
特記 |
| ※パラメータは書類による |
|
json |
|
|
※例 No.4 技能実習計画
---
{
"companies": {
"receipt_number": "1111111111",
"company_name": "テスト実習実施先 CSVインポート",
"kana": "てすとじっしゅうじっしさき",
"zip1": "101",
"zip2": "0031",
"address": "東京都千代田区1-2-3 松浦ビル1階",
"phone1": "03",
"phone2": "5809",
"phone3": "1497",
"representative_name": "てすと たろー",
"representative_kana": "テスト タロー",
"corporate_number": "08011101052087"
},
"organizations": {
"license_number": "099999999999999",
"license_type": 1,
"kana": "テストきょうどうくみあい",
"name": "テスト協同組合",
"zip1": "101",
"zip2": "0031",
"address": "港区",
"phone1": "03",
"phone2": "5809",
"phone3": "1497",
"representative_name": "絆田 一郎",
"representative_kana": "きずなだ いちろう"
},
"appdoc_trainees": {
"trainee_class": 2
},
"company_offices": {
"industry_large_category": "A",
"industry_large_category_name": null,
"industry_small_category": "010",
"industry_small_category_name": null,
"name": "名古屋事業所",
"kana": "なごやじぎょうしょ",
"zip1": "460",
"zip2": "0031",
"address": "愛知県名古屋市中区本丸1-1",
"phone1": "052",
"phone2": "231",
"phone3": "1700",
"job_category": 1,
"job_occupation": 1,
"job_operation": 1,
"sub_job_category": 2,
"sub_job_occupation": 1,
"sub_job_operation": 1,
"job_detail": null
},
"trainees": {
"romaji": "山岸 陽一",
"kanji": "自動生成氏名漢字",
"nationality": "カンボジア",
"birthday_year": "2003",
"birthday_month": "3",
"birthday_day": "15",
"age": null,
"sex": 1,
"intern_period_from_year": null,
"intern_period_from_month": null,
"intern_period_from_day": null,
"intern_period_until_year": null,
"intern_period_until_month": null,
"intern_period_until_day": null
},
"trainee_employments": {
"wage_type": null,
"wage_amount": null,
"total_benefits": null,
"contract_period_from_year": null,
"contract_period_from_month": null,
"contract_period_from_day": null,
"contract_period_until_year": null,
"contract_period_until_month": null,
"contract_period_until_day": null,
"opening_hours": null,
"opening_minutes": null,
"closing_hours": null,
"closing_minutes": null,
"working_hours_per_year": null,
"regular_holiday_week": null,
"vacation_days_after_passed_month": null,
"accommodation": null,
"food_expense": null,
"accommodation_expense": null,
"other_costs": null
},
"trainee_treatments": {
"lecture_allowance": null
},
"sending_agencies": {
"name": "テストフィリピン",
"sending_agency_number": null,
"reference_number": null
}
}
レスポンス
成功時
| パラメーター名 |
型 |
内容 |
特記 |
| data |
array |
特に何も設定しません 空配列が返ってきます |
|
| result |
boolean |
リクエスト結果 |
true |
| error |
array |
失敗した理由を配列 |
|
| alert |
array |
特に何も設定しません 空配列が返ってきます |
|
{
"data": [],
"result": true,
"errors": [],
"alert": []
}
失敗時
ステータスコード:200
| パラメーター名 |
型 |
内容 |
特記 |
| data |
array |
特に何も設定しません 空配列が返ってきます |
|
| result |
boolean |
リクエスト結果 |
false |
| error |
array |
失敗した理由を配列 |
|
| alert |
array |
特に何も設定しません 空配列が返ってきます |
|
{
"data": [],
"result": false,
"errors": [],
"alert": []
}