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
- Call
POST /api/v2.0/strong-authentication-requestwith yourstrongAuthentificationRequestId. See the request reference for the request contract and HTTP errors. - Handle the synchronous HTTP response separately from incoming webhooks. For an accepted request, the endpoint returns HTTP
200withstatus: Approvedand Xpollens also sends an initial webhook with that status. - Match webhooks to your request using
strongAuthentificationRequestId. Keep this exact spelling: it is the JSON field name. - Wait for the authentication outcome. Treat
Completedas successful authentication andRejectedas rejection or failure. Do not execute the business action based onApprovedalone. - 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.
| Status | Meaning in this flow | What you should do |
|---|---|---|
Approved | Xpollens has accepted the request for launch; the user has not yet completed authentication. | Wait for the outcome. The initial authenticationProof and authenticationDate are null. |
Completed | The user has authenticated successfully. | Continue with your business action. |
Rejected | Xpollens 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.
Updated 1 day ago