> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gnosispay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Identity document renewal

> Notify users about an expiring identity document and help them renew it before card use is restricted.

Gnosis Pay monitors the expiry date of each approved proof-of-identity document. When a document approaches expiry, webhook events tell you when to notify the user and when to request a replacement.

The user has 180 days after the document expires to complete the renewal. Card use is not restricted because of the renewal before this deadline.

## Renewal timeline

| Time | Renewal webhook stage | Other webhook | Card use | What to do |
| - | - | - | - | - |
| 30 days before expiry | `first_notice` | None | Available | Tell the user that their document will expire. Do not ask them to submit a replacement yet. |
| On the expiry date | `expired` | None | Available | Ask the user to submit a replacement document. A renewal session is now available. |
| 90 days after expiry | `reminder` | None | Available | Remind the user to complete the renewal. |
| 180 days after expiry | `restricted` | `kyc.profile.resubmission_requested` for each restricted profile | Restricted | Keep showing the renewal action until an acceptable replacement is approved. |
| After approval | `completed` | `kyc.profile.approved` when an affected profile returns to `approved` | Restored | Stop renewal reminders. Gnosis Pay automatically removes restrictions caused by this renewal. |

`Available` means that document renewal does not restrict card use. Another account or card restriction can still prevent card use. `Restored` applies only to restrictions caused by document renewal.

Each renewal stage in the table is a `kyc.document.renewal` event. Webhook deliveries are independent and can arrive out of order. Use the `completed` stage, not `kyc.profile.approved`, as the final renewal signal.

The replacement document must expire after the document that started the renewal. If it does not, the renewal remains open.

## Get the renewal state

Use the dedicated renewal endpoint. Do not use onboarding status to detect document renewal.

| Integration | Request |
| - | - |
| Platform | `GET /v1/kyc/profiles/{kycProfileId}/document-renewal` |
| Embedded | `GET /kyc/document-renewal` in the User API |

The response always includes `status` and `canCreateSession`. It includes the expiry dates when a renewal is active:

```json theme={null}
{
  "status": "action_required",
  "documentExpiresAt": "2027-02-10T00:00:00Z",
  "graceExpiresAt": "2027-08-09T00:00:00Z",
  "canCreateSession": true
}
```

| Status | Meaning |
| - | - |
| `not_required` | No renewal is active. |
| `upcoming` | The first notice was sent, but the document has not expired. |
| `action_required` | The document expired. The user can start renewal. |
| `in_progress` | A linked profile already started the shared renewal. |
| `restricted` | The renewal deadline passed and card use is restricted. |

## Create a renewal session

When `canCreateSession` is `true`, call the session endpoint:

| Integration | Request |
| - | - |
| Platform | `POST /v1/kyc/profiles/{kycProfileId}/document-renewal/session` |
| Embedded | `POST /kyc/document-renewal/session` in the User API |

Request only the credential that your client uses:

```json theme={null}
{
  "credentials": ["web_sdk_url"]
}
```

The response contains `webSdkUrl`, `mobileSdkToken`, or both, depending on the requested credentials. Open the verification session and ask the user to submit a replacement document.

The user can submit the replacement at any time from the expiry date. If approval happens after the 180-day deadline, access is restored automatically when the renewal completes. Neither the partner nor the user needs to request restoration.

## Users linked to more than one partner

Each partner receives separate webhook events for the KYC profile that it owns. The event always contains that partner's `profileId`.

The user completes the renewal only once. The first profile that creates a renewal session owns the shared document-collection flow. Other linked profiles return `in_progress` with `canCreateSession: false`. When the replacement is approved, each linked partner receives a `completed` event.

## Handle renewal webhooks

The `kyc.document.renewal` payload has this shape:

```json theme={null}
{
  "id": "evt_019cbf61a2557aada6e82020cbe5021f",
  "type": "kyc.document.renewal",
  "createdAt": "2027-01-11T03:30:00Z",
  "data": {
    "profileId": "019cbf57-758a-7589-8676-835804fa8c44",
    "stage": "first_notice",
    "documentExpiresAt": "2027-02-10T00:00:00Z",
    "graceExpiresAt": "2027-08-09T00:00:00Z"
  }
}
```

| Field | Description |
| - | - |
| `data.profileId` | Your KYC profile for the user. |
| `data.stage` | The current renewal stage: `first_notice`, `expired`, `reminder`, `restricted`, or `completed`. |
| `data.documentExpiresAt` | The expiry of the document that started the renewal. |
| `data.graceExpiresAt` | The deadline for completing the renewal before card use is restricted. |

Use the event `id` as an idempotency key. Events can arrive more than once or out of order. Store the dates from the latest state and stop reminders after `completed`.

At the 180-day deadline, handle both `kyc.document.renewal` with `stage: restricted` and `kyc.profile.resubmission_requested`. After approval, handle `kyc.document.renewal` with `stage: completed`. You can also receive `kyc.profile.approved` when an affected profile returns to `approved`.

See [Configure webhooks](https://docs.gnosispay.com/platform-integration/webhook/setup-webhook.md) for signature verification and delivery guidance. See [Webhook events](https://docs.gnosispay.com/api-reference/webhooks) for the complete schemas.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.