HSID
Use this guide to integrate HealthSafe ID system for customer journeys that depend on merchant-level authenticationStrategy configuration at the time of merchant onboarding see Merchant Settings Authentication Strategy. The strategy determines whether identity-provider authentication is mandatory (IDP_REQUIRED) or not (IDP_NOT_REQUIRED) before wallet-sensitive actions continue.
- Merchant Strategies:
IDP_REQUIRED,IDP_NOT_REQUIRED - Where strategy is set: Merchant onboarding/configuration
- Where strategy is enforced: Session creation API resolution flows
- Session creation URL (staging):
https://api-stg.uhg.com/api/financial/commerce/nonprodcheckout/v2/sessions
Overviewβ
This integration pattern ensures the customer identity requirement is applied consistently for each merchant.
IDP_REQUIRED: Identity authentication must be completed before protected actions proceed.IDP_NOT_REQUIRED: Wallet flows will continue without mandatory identity login; customer identity will be based on request input.
Typical usage:
- Merchant configures
authenticationStrategyduring onboarding. - Merchant creates Session.
- CCG evaluates strategy and customer identity context.
- Flow continues, blocks, or prompts for next-step identity action.
π InternalInternal information β not visible in the public (merchant) site.
IDP Processing Flowβ
Internal Session LifeCycleβ
Merchant facing Session LifeCycleβ
API Requestβ
Use Session creation with your configured authenticationStrategy behavior.
API Responseβ
The authentication strategy affects the response path and next actions.
FAQβ
What should an IDP_REQUIRED merchant do after creating a session?β
Open the hostedURL returned by POST /v2/sessions so the customer enters the hosted flow and completes HSID authentication.
What is the response of GET /v2/checkout-sessions/{sessionId} and GET /v2/sessions/{sessionId} when session status is AWAITING_AUTHN?β
- When session status is
AWAITING_AUTHN, Response ofGET /v2/checkout-sessions/{sessionId}is HTTP 401 - When session status is
AWAITING_AUTHN, Response ofGET /v2/sessions/{sessionId}is HTTP 202 with statusPENDING
What should happen after the customer completes HSID authentication?β
Call GET /v2/sessions/{sessionId} again to retrieve the latest public session status.
What status should I expect while the customer is authenticating?β
During HSID authentication, GET /v2/sessions/{sessionId} can return PENDING until the session reaches a final status.
Which final statuses can be returned for the public merchant session?β
The public final statuses are COMPLETED, FAILED, and CANCELED.
Do I need to send HSID in the session request for IDP_REQUIRED?β
No. For IDP_REQUIRED, customer identity is resolved through the hosted HSID authentication flow.
Can IDP_NOT_REQUIRED still use customer identifiers from the request?β
Yes. For IDP_NOT_REQUIRED, customer identity can be resolved using merchant-provided identifiers.
Integration Checklistβ
- Confirm merchant
authenticationStrategyis configured in merchant settings as expected. - Calling POST /v2/sessions
- Opening the returned hostedURL
- Test both
IDP_REQUIREDandIDP_NOT_REQUIREDpaths in staging.