メインコンテンツまでスキップ

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-Versionheaderstring (date)任意
Idempotency-Keyheaderstring任意max 255

リクエスト本文​

Content-Type型
application/jsonFreeeEmployeeTransferPreviewRequestInput

応答​

ステータス説明本文
200Success.application/json FreeeEmployeeTransfer または object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409conflict, idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

FreeeEmployeeTransfer​

フィールド型必須説明
created_atstring (date-time) または null必須
employeeFreeeNewEmployee または null必須The employee as reviewed. Null in a task's result: the Portal keeps the details in its own journal.
freee_company_idstring必須
freee_employee_idstring または null必須freee's ID of the employee once it was created.
freee_employee_transfer_idstring必須
freee_personFreeePerson必須
provider_request_referencestring または null必須freee's request reference of the create call, which freee's support needs to reconcile an employee.
statusstring必須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_atstring (date-time) または null必須

FreeeEmployeeTransferPreviewRequestInput​

フィールド型必須説明
employeeFreeeNewEmployeeInput必須The employee as reviewed: the register values, corrected or completed.
freee_person_idstring必須
source_revisionstring必須From get_freee_person_employee_source.

FreeeNewEmployee​

フィールド型必須説明
account_namestring または null必須The holder's name in katakana or Latin letters, up to 50 characters.
account_numberstring または null必須Up to 7 digits.
account_typestring または null必須ordinary, current or saving.
addressstring または null必須
address_kanastring または null必須
bank_codestring または null必須4 digits. A salary account needs bank_code, branch_code, account_type, account_number and account_name together.
bank_namestring または null必須
bank_name_kanastring または null必須
base_pension_numstring または null必須10 digits.
birth_datestring必須YYYY-MM-DD, not in the future.
branch_codestring または null必須3 digits.
branch_namestring または null必須
branch_name_kanastring または null必須
company_reference_date_rule_namestring または null必須Up to 15 characters.
emailstring または null必須
employment_insurance_reference_numberstring または null必須11 digits.
employment_typestring または null必須board-member, regular, fixed-term, part-time or temporary.
entry_datestring必須The joining date, YYYY-MM-DD, between 2000 and 2100 and not before the birth date.
first_namestring必須
first_name_kanastring必須
genderstring または null必須unselected, male or female.
last_namestring必須
last_name_kanastring必須
marriedboolean または null必須
no_payroll_calculationboolean必須True for an employee outside payroll calculation, who takes only the basic fields. False (the default) for a payroll employee.
numstring必須freee's employee number.
pay_amountinteger または null必須Base pay, 0 to 99999999. Required for a payroll employee.
pay_calc_typestring または null必須monthly, daily or hourly. Required for a payroll employee.
phonestring または null必須Three groups of digits, 03-1234-5678.
prefecturestring または null必須A prefecture in Japanese, 北海道 to 沖縄県; an address needs it.
residential_addressstring または null必須
residential_address_kanastring または null必須
residential_prefecturestring または null必須
residential_zipcodestring または null必須7 digits.
titlestring または null必須
working_hours_system_namestring または null必須Up to 30 characters.
zipcodestring または null必須7 digits.

FreeeNewEmployeeInput​

フィールド型必須説明
account_namestring または null任意The holder's name in katakana or Latin letters, up to 50 characters.
account_numberstring または null任意Up to 7 digits.
account_typestring または null任意ordinary, current or saving.
addressstring または null任意
address_kanastring または null任意
bank_codestring または null任意4 digits. A salary account needs bank_code, branch_code, account_type, account_number and account_name together.
bank_namestring または null任意
bank_name_kanastring または null任意
base_pension_numstring または null任意10 digits.
birth_datestring必須YYYY-MM-DD, not in the future.
branch_codestring または null任意3 digits.
branch_namestring または null任意
branch_name_kanastring または null任意
company_reference_date_rule_namestring または null任意Up to 15 characters.
emailstring または null任意
employment_insurance_reference_numberstring または null任意11 digits.
employment_typestring または null任意board-member, regular, fixed-term, part-time or temporary.
entry_datestring必須The joining date, YYYY-MM-DD, between 2000 and 2100 and not before the birth date.
first_namestring必須
first_name_kanastring必須
genderstring または null任意unselected, male or female.
last_namestring必須
last_name_kanastring必須
marriedboolean または null任意
no_payroll_calculationboolean任意True for an employee outside payroll calculation, who takes only the basic fields. False (the default) for a payroll employee.
numstring必須freee's employee number.
pay_amountinteger または null任意Base pay, 0 to 99999999. Required for a payroll employee.
pay_calc_typestring または null任意monthly, daily or hourly. Required for a payroll employee.
phonestring または null任意Three groups of digits, 03-1234-5678.
prefecturestring または null任意A prefecture in Japanese, 北海道 to 沖縄県; an address needs it.
residential_addressstring または null任意
residential_address_kanastring または null任意
residential_prefecturestring または null任意
residential_zipcodestring または null任意7 digits.
titlestring または null任意
working_hours_system_namestring または null任意Up to 30 characters.
zipcodestring または null任意7 digits.

FreeePerson​

フィールド型必須説明
freee_person_idstring必須The person's row in the person register.
namestring または null必須
referencestring または null必須