Initiate collection
Initiate an insurance data collection for a given individual based on the CollectionRequestInput with the specified login method.
Request
Header Parameters
Specifies the API version to use. Must match the version of the endpoint you are targeting.
2023-03-15.Request Body
A set of consents provided by the end user.
Key-value object specifying additional input required for the insurance collection. What values should be included depends on context.Possible keys are SWEDISH_PERSONAL_NUMBER, NORWEGIAN_PERSONAL_NUMBER, NORWEGIAN_PHONE_NUMBER,USERNAME, PASSWORD, LASTNAME, ACCOUNT_OWNER_NAME.
The name of the insurance company to trigger the insurance collection from
Login method that will be used to authenticate the user. Available login methods for a company is specified in the /insurance-company/status response.
DANISH_NEMID, DANISH_MITID, DANISH_MITID_SAME_DEVICE, ESTONIAN_MOBILE_ID, ESTONIAN_SMART_ID, ESTONIAN_MOBILE_ID_USERNAME, ESTONIAN_SMART_ID_USERNAME, LATVIAN_MOBILE_EPARAKSTS, LATVIAN_SMART_ID, LATVIAN_MOBILE_EPARAKSTS_USERNAME, LATVIAN_SMART_ID_USERNAME, LITHUANIAN_SMART_ID, LITHUANIAN_MOBILE_ID, LITHUANIAN_SMART_ID_USERNAME, LITHUANIAN_MOBILE_ID_USERNAME, NORWEGIAN_BANKID_ON_MOBILE, NORWEGIAN_BANKID_ON_MOBILE_FULL_PERSONAL_NUMBER, SWEDISH_MOBILE_BANKID_OTHER_DEVICE, SWEDISH_MOBILE_BANKID_OTHER_DEVICE_MOCK, SWEDISH_MOBILE_BANKID_SAME_DEVICE, SWEDISH_MOBILE_BANKID_SAME_DEVICE_CLIENT_SIDE_AUTHENTICATION, SWEDISH_MOBILE_BANKID_SAME_DEVICE_CLIENT_SIDE_AUTHENTICATION_MOCK, SWEDISH_MOBILE_BANKID_OTHER_DEVICE_TEST, SWEDISH_MOBILE_BANKID_SAME_DEVICE_TEST, SWEDISH_SECURITY_TOKEN, UK_DOB_USERNAME_PASSWORD, UK_LASTNAME_MEMBERSHIP_NUMBER, UK_USERNAME_POSTCODE, USERNAME_AND_PASSWORD, EMAIL, PDF_UPLOAD, AUTHENTICATION_APP_URL or MANUAL_SELECT.Responses
Data collection successfully initiated.
Body
The UUID of the external user this collection belongs to, when it is linked to one (null otherwise). Can be used to build a Hub deep-link of the form /collections/user/{externalUserUuid}.
A key-value map containing potential extra information, depending on the company the collection is getting data from.
The collection ID of the request
Insurance company that this collection is from
The recommended interval in milliseconds at which to poll the /status endpoint for a collection. The endpoint can be polled less often, but latest by the value indicated by pollingTimeout to ensure that the collection is not terminated.
The collection status must be polled before this timestamp. Failure to do so may result in the termination of the collection.
Current status of the collection request. Possible values are: RUNNING, LOGIN,CONTACT FORM PENDING, COLLECTING, COMPLETED, COMPLETED PARTIAL, COMPLETED EMPTY, FAILED, FAILED PDF PARSE, FAILED PDF USER INPUT WAITING FOR AUTHENTICATION, INCORRECT CREDENTIALS, KYC FORM, CUSTOMER ENROLLMENT REQUIRED, CONTACT FORM, AUTHENTICATION CONFLICT, AUTHENTICATION MISMATCH, TWO FACTOR PENDING.
curl https://api.insurely.com/insurance-collection/collect-info \
-H "client-id: <client-id>" \
-H "Content-Type: application/json" \
-d '{
"consents": [
{
"type": "TRADE_UNION_MEMBERSHIP"
}
],
"filter": {
"rules": []
},
"input": {
"SWEDISH_PERSONAL_NUMBER": "192101010101"
},
"insuranceCompany": "se-lansforsakringar",
"loginMethod": "SWEDISH_MOBILE_BANKID_OTHER_DEVICE"
}' \
-X POST