Skip to main content

Get the freee connection.

GET/api/v1/freee-connectionconnectors:read

Whether the organisation is connected to freee, for which product and company and with which scopes, whether you may send employee data, the operator's switch for it, and the freee company approved to receive employee data (approving it is a Portal action). Always answers: is_connected false when there is no connection. Needs View Freee Connection.

Scopeconnectors:read (sensitive)
AsynchronousNo
MCP toolget_freee_connection
Portal permissionsview_freee_connection

Parameters​

NameInTypeRequiredDescription
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json FreeeConnection
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_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​

FreeeConnection​

FieldTypeRequiredDescription
can_send_employeesbooleanRequiredYou hold Submit Freee Employee Transfers, which sending employee data needs.
destinationFreeeDestination or nullRequiredThe freee company approved to receive employee data. Approving and revoking are done in the Portal; null when none is approved.
freee_company_idstring or nullRequired
freee_company_namestring or nullRequired
freee_company_rolestring or nullRequiredThe connecting user's role in the freee company.
has_write_scopebooleanRequiredThe connection may write employees (hr:employees:write).
is_connectedbooleanRequired
is_employee_creation_enabledbooleanRequiredThe operator's switch for creating employees in freee for this organisation; on unless an operator switched it off.
productstring or nullRequiredaccounting or hr: what the connection was authorised for; null when not connected.
scopestring or nullRequiredThe scopes freee granted, space separated.

FreeeDestination​

FieldTypeRequiredDescription
approved_atstring (date-time)Required
approved_byUserRefRequired
consent_versioninteger or nullRequiredThe version of the opt-in wording the approver agreed to; null when approved before versioning.
freee_company_idstringRequired
freee_company_namestringRequired

UserRef​

FieldTypeRequiredDescription
display_namestringRequired
kindstring: user, system, integration or stringRequired
user_idstring or nullRequired