On-demand SCA

Create a strong customer authentication (SCA) request on demand, then check its result before you call the endpoint for your business action.

This SCA request does not link to a subsequent action and does not execute your business action automatically. This flow uses the StrongAuthenticationRequestCreatedOrUpdated webhook, not callback 36.

Request authentication and handle the result

  1. Call POST /api/v2.0/strong-authentication-request with your strongAuthentificationRequestId. See the request reference for the request contract and HTTP errors.
  2. Handle the synchronous HTTP response separately from incoming webhooks. For an accepted request, the endpoint returns HTTP 200 with status: Approved and Xpollens also sends an initial webhook with that status.
  3. Match webhooks to your request using strongAuthentificationRequestId. Keep this exact spelling: it is the JSON field name.
  4. Wait for the authentication outcome. Treat Completed as successful authentication and Rejected as rejection or failure. Do not execute the business action based on Approved alone.
  5. After successful authentication, call the endpoint for your business action.

Webhook lifecycle

Your server receives HTTP webhooks of type StrongAuthenticationRequestCreatedOrUpdated. You do not consume an internal message bus.

StatusMeaning in this flowWhat you should do
ApprovedXpollens has accepted the request for launch; the user has not yet completed authentication.Wait for the outcome. The initial authenticationProof and authenticationDate are null.
CompletedThe user has authenticated successfully.Continue with your business action.
RejectedXpollens rejected the initial request, or authentication subsequently failed.Do not treat authentication as successful. Inspect reason.

The reference also lists Created and Processing. Do not assume that this flow sends a webhook for every listed state.

reason can describe acceptance as well as failure. For example, initial acceptance uses Authentication request approved. Some fields can be null, including respondingWalletId, authenticationProof, reason, and authenticationDate.

See the webhook reference and contract notes.

Sequence diagram

sequenceDiagram
Title: SCA on demand
autoNumber
Actor User
Participant Partner
Participant SCA.Provider
Participant XPO as Xpollens

Partner ->> XPO: POST /api/v2.0/strong-authentication-request
XPO -->> Partner: HTTP 200, status Approved
XPO -->> Partner: Webhook StrongAuthenticationRequestCreatedOrUpdated, status Approved
Note over Partner, XPO: HTTP response and webhook are separate messages; delivery order is not guaranteed here
XPO ->> SCA.Provider: push SCA
SCA.Provider ->> User: SCA requested
alt Authentication succeeds
User -->> SCA.Provider: Validate authentication
SCA.Provider -->> XPO: Authentication succeeded
XPO -->> Partner: Webhook StrongAuthenticationRequestCreatedOrUpdated, status Completed
else Authentication fails
SCA.Provider -->> XPO: Authentication failed
XPO -->> Partner: Webhook StrongAuthenticationRequestCreatedOrUpdated, status Rejected
end

Status diagram

stateDiagram

[*] --> Rejected : Xpollens checks failed
[*] --> Approved : Xpollens checks passed
Approved --> Completed: Authentication succeeded
Approved --> Rejected: Authentication failed

Rejected --> [*]
Completed --> [*]

Technical details

  • context: Specify the reason for SCA.
  • data: Provide details to display in the mobile application.

Related guidance

See SCA notification handling for the shared integration guidance.


Did this page help you?