Review a person as a freee employee (a draft transfer).
POST/api/v1/freee-employee-transfers/previewconnectors:write
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
Validates the employee against freee's rules and records it as the person's draft transfer, replacing an earlier draft or rejected one. Nothing is sent to freee. 409 when the sources changed since source_revision, when the person already has a freee employee link, or when the person already has a transfer that is not a draft or rejected. Needs the same as get_freee_person_employee_source (an approved destination). Needs Preview Freee Employee Transfers.
| スコープ | connectors:write (機密性の高いスコープ) |
| 非同期 | いいえ |
| MCP ツール | preview_freee_employee_transfers |
| Portal の権限 | preview_freee_employee_transfers |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
Docwize-Version | header | string (date) | 任意 | |
Idempotency-Key | header | string | 任意 | max 255 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | FreeeEmployeeTransferPreviewRequestInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json FreeeEmployeeTransfer または object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | conflict, idempotency_in_progress | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | idempotency_key_reused, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
FreeeEmployeeTransfer
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
created_at | string (date-time) または null | 必須 | |
employee | FreeeNewEmployee または null | 必須 | The employee as reviewed. Null in a task's result: the Portal keeps the details in its own journal. |
freee_company_id | string | 必須 | |
freee_employee_id | string または null | 必須 | freee's ID of the employee once it was created. |
freee_employee_transfer_id | string | 必須 | |
freee_person | FreeePerson | 必須 | |
provider_request_reference | string または null | 必須 | freee's request reference of the create call, which freee's support needs to reconcile an employee. |
status | string | 必須 | draft (reviewed, nothing sent), sending, created (the employee exists in freee), details (created and linked; a section freee did not accept waits for correct-details), verified (done), rejected (freee refused: nothing was created) or unknown (the outcome could not be confirmed: inspect freee before anything is sent again). Open. |
submitted_at | string (date-time) または null | 必須 |
FreeeEmployeeTransferPreviewRequestInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
employee | FreeeNewEmployeeInput | 必須 | The employee as reviewed: the register values, corrected or completed. |
freee_person_id | string | 必須 | |
source_revision | string | 必須 | From get_freee_person_employee_source. |
FreeeNewEmployee
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
account_name | string または null | 必須 | The holder's name in katakana or Latin letters, up to 50 characters. |
account_number | string または null | 必須 | Up to 7 digits. |
account_type | string または null | 必須 | ordinary, current or saving. |
address | string または null | 必須 | |
address_kana | string または null | 必須 | |
bank_code | string または null | 必須 | 4 digits. A salary account needs bank_code, branch_code, account_type, account_number and account_name together. |
bank_name | string または null | 必須 | |
bank_name_kana | string または null | 必須 | |
base_pension_num | string または null | 必須 | 10 digits. |
birth_date | string | 必須 | YYYY-MM-DD, not in the future. |
branch_code | string または null | 必須 | 3 digits. |
branch_name | string または null | 必須 | |
branch_name_kana | string または null | 必須 | |
company_reference_date_rule_name | string または null | 必須 | Up to 15 characters. |
email | string または null | 必須 | |
employment_insurance_reference_number | string または null | 必須 | 11 digits. |
employment_type | string または null | 必須 | board-member, regular, fixed-term, part-time or temporary. |
entry_date | string | 必須 | The joining date, YYYY-MM-DD, between 2000 and 2100 and not before the birth date. |
first_name | string | 必須 | |
first_name_kana | string | 必須 | |
gender | string または null | 必須 | unselected, male or female. |
last_name | string | 必須 | |
last_name_kana | string | 必須 | |
married | boolean または null | 必須 | |
no_payroll_calculation | boolean | 必須 | True for an employee outside payroll calculation, who takes only the basic fields. False (the default) for a payroll employee. |
num | string | 必須 | freee's employee number. |
pay_amount | integer または null | 必須 | Base pay, 0 to 99999999. Required for a payroll employee. |
pay_calc_type | string または null | 必須 | monthly, daily or hourly. Required for a payroll employee. |
phone | string または null | 必須 | Three groups of digits, 03-1234-5678. |
prefecture | string または null | 必須 | A prefecture in Japanese, 北海道 to 沖縄県; an address needs it. |
residential_address | string または null | 必須 | |
residential_address_kana | string または null | 必須 | |
residential_prefecture | string または null | 必須 | |
residential_zipcode | string または null | 必須 | 7 digits. |
title | string または null | 必須 | |
working_hours_system_name | string または null | 必須 | Up to 30 characters. |
zipcode | string または null | 必須 | 7 digits. |
FreeeNewEmployeeInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
account_name | string または null | 任意 | The holder's name in katakana or Latin letters, up to 50 characters. |
account_number | string または null | 任意 | Up to 7 digits. |
account_type | string または null | 任意 | ordinary, current or saving. |
address | string または null | 任意 | |
address_kana | string または null | 任意 | |
bank_code | string または null | 任意 | 4 digits. A salary account needs bank_code, branch_code, account_type, account_number and account_name together. |
bank_name | string または null | 任意 | |
bank_name_kana | string または null | 任意 | |
base_pension_num | string または null | 任意 | 10 digits. |
birth_date | string | 必須 | YYYY-MM-DD, not in the future. |
branch_code | string または null | 任意 | 3 digits. |
branch_name | string または null | 任意 | |
branch_name_kana | string または null | 任意 | |
company_reference_date_rule_name | string または null | 任意 | Up to 15 characters. |
email | string または null | 任意 | |
employment_insurance_reference_number | string または null | 任意 | 11 digits. |
employment_type | string または null | 任意 | board-member, regular, fixed-term, part-time or temporary. |
entry_date | string | 必須 | The joining date, YYYY-MM-DD, between 2000 and 2100 and not before the birth date. |
first_name | string | 必須 | |
first_name_kana | string | 必須 | |
gender | string または null | 任意 | unselected, male or female. |
last_name | string | 必須 | |
last_name_kana | string | 必須 | |
married | boolean または null | 任意 | |
no_payroll_calculation | boolean | 任意 | True for an employee outside payroll calculation, who takes only the basic fields. False (the default) for a payroll employee. |
num | string | 必須 | freee's employee number. |
pay_amount | integer または null | 任意 | Base pay, 0 to 99999999. Required for a payroll employee. |
pay_calc_type | string または null | 任意 | monthly, daily or hourly. Required for a payroll employee. |
phone | string または null | 任意 | Three groups of digits, 03-1234-5678. |
prefecture | string または null | 任意 | A prefecture in Japanese, 北海道 to 沖縄県; an address needs it. |
residential_address | string または null | 任意 | |
residential_address_kana | string または null | 任意 | |
residential_prefecture | string または null | 任意 | |
residential_zipcode | string または null | 任意 | 7 digits. |
title | string または null | 任意 | |
working_hours_system_name | string または null | 任意 | Up to 30 characters. |
zipcode | string または null | 任意 | 7 digits. |
FreeePerson
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
freee_person_id | string | 必須 | The person's row in the person register. |
name | string または null | 必須 | |
reference | string または null | 必須 |