German eID Solution Integration

Integration Guides (API v2)

App Drop-in guide

This guide provides step-by-step instructions on how to integrate the German eID Solution using the App Drop-in.

Before you begin, make sure you have completed the following:


Flow

Click to magnify

German eID App Drop-in flow

German eID App Drop-in flow


1. Authenticate

Create an access token to authenticate your API requests:

  • You provide your client_id and client_secret.
  • You receive an access_token.

API Reference: Create access token

Important

For security, access tokens are valid for 1 hour only. If your token expires, create a new one by making another Create access token request.


2. Create workflow

Create a workflow:

  • You specify the workflowName and provide your unique identifier for the client.
  • You receive a workflowId and a Fourthline client_id.

API Reference: Create workflow


3. Create the SDK session

Create the App Drop-in session:

  • Provide the workflowId.
  • Receive a validationCode to pass to the SDK in your backend.

API Reference: Create SDK session

Important

  • SDK validation codes are single-use and expire after 2 hours.
  • If the client stops partway through the workflow, create a new SDK session.
  • When the client closes the app, the validationCode is invalidated and removed from the cache.

4. Download report

When the workflow status is completed, retrieve the report:

  • You provide the workflowId.
  • A successful response returns the report as a JSON format.

API Reference: Get report as JSON
Recipe


Statuses

Important

Prevent duplicate submissions by following the recommended handling described here.

Possible notifications include:

StatusGuidance
newDescription: The workflow is successfully created.

Action:
• SDK integration: Wait for the next status.
pendingDescription: We are validating the data.

Action: Wait for the next status.

Status code: 1000
inconsistent_dataDescription: We found inconsistent data (rare scenario).

Action: Create a new workflow.

Status code: 3710
rejectedDescription: We concluded that the electronic ID document is not valid.
Status code: 4500

completedDescription: We have processed the case.

Action: Download the CDD Report zipfile.

3710: Sendback

This status code can accompany inconsistent_data status and includes:

Status codeGuidance
3001Description: German eID: the electronic identification process was not completed.

Action: Create a new workflow.

4500: Rejection

Fatal

The client cannot retry.

This status code can accompany completed status and includes: