{primary} 計画認定 各書類の対象箇所を最新のマスターの値で上書きするためのデータ取得を行うAPIです。
監理団体アカウントのみ利用できます。
| メソッド | URI | Headers |
|---|---|---|
/api/application/reflect_from/{document_code}/{appdoc_project_id}/{appdoc_trainee_id?} |
Default |
| パラメーター名 | 型 | 内容 | 特記 |
|---|---|---|---|
| document_code | int | 書類コード | |
| appdoc_project_id | int | 計画認定プロジェクトID | |
| appdoc_trainee_id | int | 計画認定技能実習生ID |
成功時
| パラメーター名 | 型 | 内容 | 特記 |
|---|---|---|---|
| data | json | 最新のマスターデータから取得した、反映対象の項目の値 | |
| result | string | true | |
| errors | array | 成功のためエラーがないので空配列が返ってきます | |
| alert | array | 特に何も設定しません 空配列が返ってきます |
例)計画認定 No.4 技能実習計画
---
{
"data": {
"companies": {
"receipt_number": "9876543210",
"company_name": "テスト実習実施先",
"kana": "てすとじっしゅうじっしさき",
"zip1": "101",
"zip2": "0031",
"address": "東京都千代田区東神田2-7-9UYビル4階",
"phone1": "03",
"phone2": "1234",
"phone3": "5678",
"representative_name": "阿部 晋三",
"representative_kana": "あべ しんぞう",
"corporate_number": "9876543210987"
},
"organizations": {
"license_number": "987654321032145",
"license_type": 1,
"kana": "かねこきょうどうくみあい",
"name": "金子協同組合",
"zip1": "123",
"zip2": "0853",
"address": "東京都足立区元木1-2-3",
"phone1": "03",
"phone2": "9876",
"phone3": "5432",
"representative_name": "テスト 監理団体代表者",
"representative_kana": "てすと かんりだんたいだいひょうしゃ"
},
"appdoc_trainees": {
"trainee_class": 1
},
"company_offices": {
"industry_large_category": "B",
"industry_large_category_name": "漁業",
"industry_small_category": "032",
"industry_small_category_name": "内水面漁業",
"name": "テスト事業所支社",
"kana": "てすとじぎょうしょししゃ",
"zip1": "350",
"zip2": "1213",
"address": "埼玉県日高市高萩1-2-3",
"phone1": "0429",
"phone2": "85",
"phone3": "1234",
"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": "SAI MYO SETT",
"kanji": "最 妙 説",
"nationality": "ミャンマー",
"birthday_year": "2023",
"birthday_month": "4",
"birthday_day": "6",
"age": 1,
"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": 1,
"wage_amount": 320000,
"total_benefits": null,
"contract_period_from_year": "2023",
"contract_period_from_month": "4",
"contract_period_from_day": "6",
"contract_period_until_year": "2023",
"contract_period_until_month": "4",
"contract_period_until_day": "6",
"opening_hours": null,
"opening_minutes": null,
"closing_hours": null,
"closing_minutes": null,
"working_hours_per_year": "1920",
"regular_holiday_week": "金 土",
"vacation_days_after_passed_month": null,
"accommodation": null,
"food_expense": null,
"accommodation_expense": 2000,
"other_costs": []
},
"trainee_treatments": {
"lecture_allowance": null
},
"sending_agency": {
"id": 9,
"name": "テスト送出国1",
"sending_agency_number": "MON123456",
"reference_number": "1234"
}
},
"result": true,
"errors": [],
"alert": []
}
ステータスコード:200
| パラメーター名 | 型 | 内容 | 特記 |
|---|---|---|---|
| result | boolean | リクエスト結果 | |
| error | List |
失敗した理由を配列 |
{
"result" : false,
"errors" : {
'error' : ['失敗しました'],
},
"data" : "",
}
{danger} 失敗時は200以外のエラーコードが返却されます。共通ルールのレスポンスをチェック。