Create fact find session
This endpoint allows you to create a new fact find session for a client.
Path parameters
-
The BackOfficeID of the client.
Body
-
SessionType must be either 'client', 'adviser' or 'prefill'.
-
BackOfficeAccountID string(uuid) | null
The BackOfficeAccountID of the client(s)
POST
/api/v2/clients/backoffice/{BackOfficeID}/factfind/session
curl \
-X POST https://api.fincalc.co.uk/api/v2/clients/backoffice/{BackOfficeID}/factfind/session \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"SessionType":"client","BackOfficeAccountID":"E93EE908-5FF2-4D4C-9723-D8E1D7F805F5"}'
Request examples
{
"SessionType": "client",
"BackOfficeAccountID": "E93EE908-5FF2-4D4C-9723-D8E1D7F805F5"
}
Response examples (200)
{
"success": true,
"data": {
"URL": "https://fincalc.co.uk/portal/login/factfind/AB8A075D-F481-4056-AF3D-67C75F4600B2/256",
"ExpiryDate": "2023-05-04 12:10:01"
}
}
Response examples (422)
{
"success": false,
"message": "Validation Error",
"data": {
"SessionType": [
"The session type is required."
]
}
}
Response examples (403)
{
"success": false,
"message": "You do not have permission to view that client."
}
Response examples (404)
{
"success": false,
"message": "Client not found."
}
Response examples (500)
{
"success": false,
"message": "Internal server error."
}