Skip to main content

Review a person as a freee employee (a draft transfer).

POST/api/v1/freee-employee-transfers/previewconnectors:write

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.

Scopeconnectors:write (sensitive)
AsynchronousNo
MCP toolpreview_freee_employee_transfers
Portal permissionspreview_freee_employee_transfers

Parameters​

NameInTypeRequiredDescription
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonFreeeEmployeeTransferPreviewRequestInput

Responses​

StatusDescriptionBody
200Success.application/json FreeeEmployeeTransfer or 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

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

FreeeEmployeeTransfer​

FieldTypeRequiredDescription
created_atstring (date-time) or nullRequired
employeeFreeeNewEmployee or nullRequiredThe employee as reviewed. Null in a task's result: the Portal keeps the details in its own journal.
freee_company_idstringRequired
freee_employee_idstring or nullRequiredfreee's ID of the employee once it was created.
freee_employee_transfer_idstringRequired
freee_personFreeePersonRequired
provider_request_referencestring or nullRequiredfreee's request reference of the create call, which freee's support needs to reconcile an employee.
statusstringRequireddraft (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) or nullRequired

FreeeEmployeeTransferPreviewRequestInput​

FieldTypeRequiredDescription
employeeFreeeNewEmployeeInputRequiredThe employee as reviewed: the register values, corrected or completed.
freee_person_idstringRequired
source_revisionstringRequiredFrom get_freee_person_employee_source.

FreeeNewEmployee​

FieldTypeRequiredDescription
account_namestring or nullRequiredThe holder's name in katakana or Latin letters, up to 50 characters.
account_numberstring or nullRequiredUp to 7 digits.
account_typestring or nullRequiredordinary, current or saving.
addressstring or nullRequired
address_kanastring or nullRequired
bank_codestring or nullRequired4 digits. A salary account needs bank_code, branch_code, account_type, account_number and account_name together.
bank_namestring or nullRequired
bank_name_kanastring or nullRequired
base_pension_numstring or nullRequired10 digits.
birth_datestringRequiredYYYY-MM-DD, not in the future.
branch_codestring or nullRequired3 digits.
branch_namestring or nullRequired
branch_name_kanastring or nullRequired
company_reference_date_rule_namestring or nullRequiredUp to 15 characters.
emailstring or nullRequired
employment_insurance_reference_numberstring or nullRequired11 digits.
employment_typestring or nullRequiredboard-member, regular, fixed-term, part-time or temporary.
entry_datestringRequiredThe joining date, YYYY-MM-DD, between 2000 and 2100 and not before the birth date.
first_namestringRequired
first_name_kanastringRequired
genderstring or nullRequiredunselected, male or female.
last_namestringRequired
last_name_kanastringRequired
marriedboolean or nullRequired
no_payroll_calculationbooleanRequiredTrue for an employee outside payroll calculation, who takes only the basic fields. False (the default) for a payroll employee.
numstringRequiredfreee's employee number.
pay_amountinteger or nullRequiredBase pay, 0 to 99999999. Required for a payroll employee.
pay_calc_typestring or nullRequiredmonthly, daily or hourly. Required for a payroll employee.
phonestring or nullRequiredThree groups of digits, 03-1234-5678.
prefecturestring or nullRequiredA prefecture in Japanese, 北海道 to 沖縄県; an address needs it.
residential_addressstring or nullRequired
residential_address_kanastring or nullRequired
residential_prefecturestring or nullRequired
residential_zipcodestring or nullRequired7 digits.
titlestring or nullRequired
working_hours_system_namestring or nullRequiredUp to 30 characters.
zipcodestring or nullRequired7 digits.

FreeeNewEmployeeInput​

FieldTypeRequiredDescription
account_namestring or nullOptionalThe holder's name in katakana or Latin letters, up to 50 characters.
account_numberstring or nullOptionalUp to 7 digits.
account_typestring or nullOptionalordinary, current or saving.
addressstring or nullOptional
address_kanastring or nullOptional
bank_codestring or nullOptional4 digits. A salary account needs bank_code, branch_code, account_type, account_number and account_name together.
bank_namestring or nullOptional
bank_name_kanastring or nullOptional
base_pension_numstring or nullOptional10 digits.
birth_datestringRequiredYYYY-MM-DD, not in the future.
branch_codestring or nullOptional3 digits.
branch_namestring or nullOptional
branch_name_kanastring or nullOptional
company_reference_date_rule_namestring or nullOptionalUp to 15 characters.
emailstring or nullOptional
employment_insurance_reference_numberstring or nullOptional11 digits.
employment_typestring or nullOptionalboard-member, regular, fixed-term, part-time or temporary.
entry_datestringRequiredThe joining date, YYYY-MM-DD, between 2000 and 2100 and not before the birth date.
first_namestringRequired
first_name_kanastringRequired
genderstring or nullOptionalunselected, male or female.
last_namestringRequired
last_name_kanastringRequired
marriedboolean or nullOptional
no_payroll_calculationbooleanOptionalTrue for an employee outside payroll calculation, who takes only the basic fields. False (the default) for a payroll employee.
numstringRequiredfreee's employee number.
pay_amountinteger or nullOptionalBase pay, 0 to 99999999. Required for a payroll employee.
pay_calc_typestring or nullOptionalmonthly, daily or hourly. Required for a payroll employee.
phonestring or nullOptionalThree groups of digits, 03-1234-5678.
prefecturestring or nullOptionalA prefecture in Japanese, 北海道 to 沖縄県; an address needs it.
residential_addressstring or nullOptional
residential_address_kanastring or nullOptional
residential_prefecturestring or nullOptional
residential_zipcodestring or nullOptional7 digits.
titlestring or nullOptional
working_hours_system_namestring or nullOptionalUp to 30 characters.
zipcodestring or nullOptional7 digits.

FreeePerson​

FieldTypeRequiredDescription
freee_person_idstringRequiredThe person's row in the person register.
namestring or nullRequired
referencestring or nullRequired