Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel
titleColorwhite
titleBGColor#ccc
borderStyledashed
titleDefinition

The following information defines the API call developed solely for Duferco so that we can identify and register users in our QERDS service without sending a first communication.

Duferco asks us through the API call to initiate a registration process of a user with some mandatory data (name, surname and email) in the QERDS qualified notifications service, once registered in the service, Duferco may send  through the general API (EviNoticeSubmit) or the web portal  certified communications to this user. 


Request Method

...

PUT
Request

...

 URL    : 

...

 https://verifid.ecertia.com/api/v1/Enrollments
Authentication

...

 :  This API requires via an API key. They key must be included in the request header. 

Request Headers

Header NameValueDescription
X-VerifiD-ApiTokenyour_api_key_hereThe API key for authenticating the request

...

FieldTypeDescriptionExample
Profilestring

Required profile to identify how to enroll the user

Bit4Id::SPIDOnly::Duferco

Languagestring

Language preference for UI and documents to be generated on enrollment. Typically uses ISO 639-1 codes.

it

Emailstring

The email address of the user. Must be a valid email format.

j.doe@namirial.com

FirstNamestringThe first name of the user.

John

LastNamestring

The last name of the user.

Doe

ReturnUrlstring

The URL to which the user will be redirected after enrollment. Must be a valid URL.

https://duferco.com/{id}/enroll


Panel
titleExample of request in JSON

{
        "Profile": "Bit4Id::SPIDOnly::Duferco",
        "Language": "it",
        "Email": "correo@dominioj.doe@namirial.com",
        "FirstName": "DaniJohn",
        "LastName": "CrespoDoe",
        "ReturnUrl": "https://duferco.com/{id}/enroll/

}

Request Response

...

Status 200 OK

Panel
titleExample of response in JSON

{
        "Id": "018fa01b-1c42-4588-90da-dcaa52a8a236",
        "Kinds": ["Email"],
        "State": "New",
        "Outcome": null,
        "Name": "John",
        "LastName": "Doe",
        "DocumentNumber": null,
        "Email": "j.doe@namirial.com",
        "Phone": null,
        "Language": "it",
        "Provider": "bit4id",

        "Consumer": "duferco",
        "IdentificationUrl": null,
        "EnrollUrl": "https://verifid.ecertia.com/enrollment/start/018fa01b-1c42-4588-90da-dcaa52a8a236",
        "ReturnUrl": "https://duferco.com/a9474480-ffbe-4382-b2f0-9a7d7592fec2/enroll"
}

Response Schema 

FieldTypeDescriptionExample
IdstringUnique identifier for the enrollment018fa01b-1c42-4588-90da-dcaa52a8a236
Kindsarray

Types of communication channels added on the enrollment (Email, Phone).

["Email"]
Statestring

Current state of the enrollment process.

New

Outcome

string

Outcome of the enrollment process, if available.

null
Namestring

First name of the user.

John

LastNamestring

Last name of the user.

Doe

DocumentNumberstring

Document number associated with the user, if available.

null
Emailstring

Email address of the user.

j.doe@namirial.com

Phonestring

Phone number of the user, if available.

null
Languagestring

Language preference of the enrollment process

it

Providerstring

Identity provider that will validate the enrollment.

bit4id

IdentificationUrlstring

Identification Provider URL to start the identification, if available.

null

EnrollUrlstring

Landing URL for starting the enrollment process.

https://verifid.ecertia.com/enrollment/start/018fa01b-1c42-4588-90da-dcaa52a8a236

ReturnUrl

more info at the bottom

string

URL to which the user will be redirected after enrollment.
Result will be informed on "verifidResult" querystring param

OK =>  https://duferco.com/{dufercoId}/enroll?verifidResult=success
KO =>  https://duferco.com/{dufercoId}/enroll?verifidResult=error&verifidError=UnexpectedFailure

I.e. https://duferco.com/{dufercoId}/enroll


Status 401 Unauthorized

Panel
titleExample of response in JSON

{
        "IdType": "018fa01b-1c42-4588-90da-dcaa52a8a236https://verif.id/error/-authn",
        "KindsTitle": [
            "Email"
        ],
    "There was a problem authenticating the request",
    "StateDetails": "New",
    Authentication failed: bad token."
}

Status 400 Bad Request

Panel
titleExample of response in JSON

{
    "OutcomeType": null,
        "Name": "John"https://verif.id/error/-bad-request",
        "LastNameTitle": "DoeThe request is invalid",
        "DocumentNumberDetails": null,
        "Email": "j.doe@namirial.com"Bit4Id::SPIDOnly::Duferco can't enroll requests with an empty lastname"
}

Status 503 Service Unavailable

Panel
titleExample of response in JSON

{
    "Type",
        "Phone": null,
        "Language": "it",
        "Provider": "bit4id",
        "IdentificationUrl": null,
        "EnrollUrl": "https://verifidverif.ecertia.com/enrollment/start/018fa01b-1c42-4588-90da-dcaa52a8a236id/error/-service-unavailable",
    "Title": "The server is currently unable to handle the request",
    "ReturnUrlDetails": "Problems found trying to contact with OnBoarding Today API"
}

Return URL 


https://

...

{returnUrl}?{verifIdResult=}&{verifIdError=}

QueryString Values:

  • verifidResult (string) : success | error 
  • verifidError (string) : errorcode 

verifidError Codes

CodeDescription
NotSupportedDocumentIdentity Document provided during validation is not supported
RequestAlteredInfoProvided verification info as been altered during OnBoarding process
RequestIsExpiredCurrent request is expired
RequestInvalidInfoEnrollment request data is not correct
UnexpectedFailureUnexpected failure while processing the Enrollment
OnBoardingProviderErrorProblems occured with Onboarding Provider
PdfValidationErrorPdf Certificate validation has failed