# Use Case 3.3 Renew PID
## Overview
| Aspect | Description |
|------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **Summary** | The user renews Person Identification Data (PID) by first authenticating themselves using DigiD (with ID card or driver's license),
checking the offered PID and entering their PIN to complete the process. |
| **Goal** | Renewing the Person Identification Data (PID). |
| **Preconditions** | *None* |
| **Postconditions** |
- Renewed PID is issued to and stored in the App.
- The PID renewal event is added in the history.
|
| **Triggered by** | - User selects 'Replace card via DigiD' in screen 'PID Card detail'
|
| **Additional Documentation** | - [Issuance](../../architecture/use-cases/issuance-with-openid4vci.md)
|
| **Possible errors** | - [No Internet](../errors.md#no-internet)
- [Server Unreachable](../errors.md#server-unreachable)
- [Generic Error](../errors.md#generic-error)
|
| **Logical test cases** | - [LTC66 Renew PID](../logical-test-cases.md#ltc66)
|
---
## Flow
| # | Description | Next |
|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------|
| **1** | **PRIMARY SCENARIO** | |
| **1.1** | **System displays screen 'Renew cards via DigiD'**- Message: Use DigiD to prove who you are
- Actions: Open the DigiD app, Go to DigiD website, Help, Close
| |
| 1.1a | User selects Open the DigiD app | 1.2 |
| 1.1b | User selects Go to DigiD website
→ System opens DigiD website in browser and suspends app | |
| 1.1c | User selects Help | Show placeholder 'under construction' |
| 1.1d | User selects Close | 5 |
| **1.2** | **System awaits DigiD response and displays screen 'Continue with DigiD'**- Message: Continue in DigiD app to get your data
- Actions: Stop
| |
| 1.2a | Event: DigiD returns control to System, authentication successful | 1.3 |
| 1.2b | Event: DigiD returns control to System, authentication failed | 2 |
| 1.2c | Event: DigiD returns control to System, login stopped or session expired | 3 |
| 1.2d | User selects Stop | 4 |
| **1.3** | **System executes PID renewal until preview**- Data is being retrieved
- Actions: Stop
- Duration: 0.1 - 1.5 seconds
| |
| 1.3a | Event: PID issuance completes successfully | 1.4 |
| 1.3b | Error: PID could not be issued successfully | Error flow: [Generic](../errors.md#generic-error) |
| 1.3c | Error: No internet | Error flow: [No Internet](../errors.md#no-internet) |
| 1.3d | Error: Server unreachable | Error flow: [Server Unreachable](../errors.md#server-unreachable) |
| **1.4** | **System displays screen 'Verify your data'**- Message: Are your details correct?
- Actions: Yes continue, No
| |
| 1.4a | User selects Yes, continue | 1.5 |
| 1.4b | User selects No | 6 |
| **1.5** | **System executes partial flow [PF2.4 Confirm a protected action](../partial-flows/PF2.4_ConfirmProtectedAction.md)** | |
| 1.5a | Result: Confirm | 1.6 |
| 1.5b | Result: Back | 1.4 |
| **1.6** | **System executes rest of PID renewal**- Duration: 0.1 - 1.5 seconds
| |
| 1.6a | Event: PID issuance completes successfully | 1.7 |
| 1.6b | Error: No internet | Error flow: [No Internet](../errors.md#no-internet) |
| 1.6c | Error: Server unreachable | Error flow: [Server Unreachable](../errors.md#server-unreachable) |
| **1.7** | **System displays screen 'Cards replaced'**- Message: You have replaced your PID
- Actions: To my overview, Help
| |
| 1.7a | User selects To my overview | Go to: [UC7.1 Show all available cards](./UC7.1_ShowAllAvailableCards) |
| 1.7a | User selects Help | Show placeholder 'under construction' |
| **2** | **WHEN DIGID AUTHENTICATION FAILS** | |
| **2.1** | **System displays screen 'Login failed'**- Message: Login again to get data
- Actions: Login again, Go to DigiD website
| |
| 2.1a | User selects Login again | 1.2 |
| 2.2b | User selects Go to DigiD website
→ System opens DigiD website in browser and suspends app | |
| **3** | **WHEN USER ABORTS DIGID OR EXPIRES** | |
| **3.1** | **System displays screen 'Login stopped'**- Message: To continue login again
- Actions: Login again, Go to DigiD website
| |
| 3.1a | User selects Login again | Back |
| 3.1b | User selects Go to DigiD website | |
| **4** | **WHEN USER ABORTS DIGID FROM APP** | |
| **4.1** | **System displays prompt 'Are you sure?'**- Actions: Back, Stop Login
| |
| 4.1a | User selects Back | Back |
| 4.1b | User selects Stop Login | 4.2 |
| **4.2** | **System displays screen 'Login stopped'**- Actions: Login again, Go to DigiD website
| |
| 4.2a | User selects Login again | 1.2 |
| 4.2b | User selects Go to DigiD website
→ System opens browser and suspends app | |
| **5** | **WHEN USER STOPS RENEWAL** | |
| **5.1** | **System displays bottom sheet 'Are you sure you want to stop?'** | |
| 5.1a | User selects Yes stop | 2.2 |
| 5.1b | User selects No | Back |
| **5.2** | **System displays screen 'Stopped'**- Message: You have stopped
- Actions: Close, Help
| |
| 5.2a | User selects Close | Go to: [UC7.2 Show card details](UC7.2_ShowCardDetails.md) |
| 5.2b | User selects Help | Show placeholder 'under construction' |
| **6** | **WHEN USER REJECTS RENEWED PID** | |
| **6.1** | **System displays screen 'Are your details incorrect?'**- Message: Incorrect details can cause problems
- Actions: Do not add details, Back
| |
| 6.1a | User selects Do not add details | 6.2 |
| 6.1b | User selects Back | Back |