Redemption
Redeem an invitation token
Public endpoint that the recipient's invite page posts the token to. The server validates the token, loads the bound batch row, and returns the next step as a flat result discriminated by type:
- RENDER_QR: issuance is ready. Render a QR for credentialOfferUrl (an openid-credential-offer:// URI) for the wallet to scan. correlationId and credentialType are included so the page can poll issuance progress and name the credential without re-parsing the URI.
- IDV_REDIRECT: identity verification is required first. Navigate the user-agent to dispatchUrl.
- ERROR: the flow halted with a message safe to show the recipient in publicMessage.
post/redeem
Request body
Example request
{
"redemptionBaseUrl": "https://wallet.example.com"
}Response
Redemption proceeded; the result type indicates the next step.
Example response
{
"credentialOfferUrl": "openid-credential-offer://?credential_offer_uri=https%3A%2F%2Fissuer.example.com%2Foffers%2Fabc123",
"correlationId": "abc123",
"credentialType": "EmployeeID"
}