Server-initiated SCA
Use server-initiated strong customer authentication (SCA) when a protected Xpollens business endpoint must authenticate the user before executing an action.
You call the protected business endpoint. Xpollens starts authentication and, if it succeeds, invokes the business action. Your backend receives the result through callback 36.
This is different from on-demand SCA, which authenticates the user independently of a business action.
Call a protected endpoint
The following actions are documented:
| Action | Endpoint |
|---|---|
| Create a beneficiary for an outgoing SEPA Credit Transfer (SCT OUT) | POST /api/sca/vX.Y/users/appUserId/beneficiary |
| Activate a card | POST /api/sca/vX.Y/cards/cardId/activate/appUserId |
| Declare Foreign Account Tax Compliance Act (FATCA) and US tax status information | PATCH /api/sca/vX.Y/users/appUserId/fatca-eai |
| Accept the terms and conditions (CGU) | POST /api/sca/vX.Y/users/appUserId/cgu |
| Modify a user's information | PUT /api/sca/vX.Y/users/appUserId |
Use the request format and API version documented for the business endpoint. The table uses vX.Y as a version placeholder.
The presence of /sca/ alone does not identify this flow: /sca/normal/ is used for front-initiated SCA.
General sequence diagram
sequenceDiagram
autonumber
actor User
participant Partner as Your backend
participant XPO as Xpollens
participant Provider as SCA provider
User->>Partner: Request a sensitive action
Partner->>XPO: Call the protected business endpoint
XPO-->>Partner: Initial acceptance and authenticationId
XPO->>Provider: Request authentication
Provider->>User: Prompt for authentication
User-->>Provider: Confirm or reject the request
Provider-->>XPO: Authentication outcome
alt Authentication succeeded
XPO->>XPO: Invoke the business action
Note right of XPO: Record the business response or forwarding failure
else Authentication failed
Note right of XPO: Do not execute the business action
end
XPO-->>Partner: Callback 36 with authentication and business results
The diagram shows a request accepted for authentication. A request can also be rejected during synchronous checks, before an authentication challenge is started.
Handle the initial response
The initial acceptance response does not mean that the user has authenticated or that the business action has succeeded.
Save the returned authenticationId with your own operation record. Keep the action pending in your application until you have processed its result.
If the initial request returns an HTTP error, handle that response directly. Do not assume that every HTTP error will also produce a callback 36.
Status diagram
This diagram describes the authentication outcome, not the business action outcome. "Awaiting authentication" is a diagram label, not a callback status value.
stateDiagram-v2
state "Awaiting authentication" as Waiting
[*] --> Waiting
Waiting --> Succeeded: Authentication succeeds
Waiting --> Failed: Authentication fails
Succeeded --> [*]
Failed --> [*]
If SCA fails, Xpollens does not perform the requested business action. This applies to the HTTP methods supported by the protected endpoint, including PATCH.
The authentication lifetime is configurable. Xpollens uses a positive operation-specific lifetime when provided, otherwise a positive partner-configured lifetime, otherwise the provider default. Do not assume that one fixed lifetime applies to every SCA flow.
Callback 36 structure
Callback 36 contains two parts:
Header: SCA attributes, includingrequestDateandStatus.Payload: The request result after successful SCA validation.
Link between request and webhook
Use authenticationId to match the original request to callback 36, which reports the SCA result.
Authentication and business results
Evaluate the authentication outcome and the business result separately:
| Information | How to interpret it |
|---|---|
Status | Authentication result: Succeeded or Failed. It is not the business action's status. |
RequestResponseCode | Recorded business response code or forwarding failure code. The value 0 means that no response code was recorded; it is not an HTTP success code. |
Payload | Business response text, when available. It can be empty or null. |
Reason | Authentication or provider explanation, when available. It can be null even when Status is Failed. |
RequestProcessDate | Start of the business invocation, not its completion time. |
When Status is Succeeded, check RequestResponseCode and interpret any Payload according to the business endpoint's reference. For example, authentication can succeed while the business endpoint returns HTTP 400.
The HTTP response returned by your webhook receiver is a separate acknowledgement. It does not change the business result reported in callback 36. Follow Webhook manager for delivery handling.
Do not automatically repeat a non-idempotent business request after a timeout: its final business outcome can be uncertain. Follow the business endpoint's recovery and idempotency guidance.
See the callback 36 reference for the documented fields.
Functional aspects
Depending on the endpoint, Xpollens runs technical or business checks before or after SCA validation.
For example, Xpollens checks email uniqueness before SCA validation for PUT /sca/v2.0/users/appUserId.
For POST /sca/v2.0/users/appUserId/beneficiary, Xpollens checks the Bank Identifier Code (BIC) and International Bank Account Number (IBAN) after SCA validation.
Payload examples for successful SCA (callback 36)
These snippets show only the business-response Payload member, not a complete webhook. JSON business responses are encoded as strings, not nested objects. Do not attempt to parse an empty string as a JSON document.
PATCH fatca eai
{
"Payload": "{\"VraisemblanceStatus\":\"OK\",\"FatcaEaiStatus\":\"OK\",\"RequiredDocuments\":[]}"
}POST beneficiary
{
"Payload": "{\"id\":1562417,\"beneficiaryId\":\"7e6bcd81-eab5-41ea-a806-cef3328bbbb8\",\"displayName\":\"John Doe nathalie\",\"bic\":\"SMOEFRP1\",\"iban\":\"FR7612869000940001215321034\",\"creationDate\":\"2025-04-01T08:45:35Z\",\"modificationDate\":\"2025-04-01T08:45:35Z\"}"
}The callback includes the full BIC and IBAN. The values in this example are mock data for sandbox testing, not real banking details.
POST CGU
{
"Payload": "{\"card\":true,\"partner\":true,\"account\":true}"
}POST card activation
{
"Payload": ""
}PUT user
{
"Payload": ""
}Payload for failed SCA
| Action or condition | Reason field | Callback 36 payload |
|---|---|---|
| The user cancels SCA | "Reason": "CANCELED" | "Payload": null |
| Wallet not activated | "Reason": "UnprocessableEntity " | "Payload": null |
| Wallet not found | "Reason": "NotFound " | "Payload": null |
| SCA | "Reason": null | "Payload": null |
| SCA expires before the user completes it | "Reason": "TIMEOUT" | "Payload": null |
The listed reasons are examples, not a closed error-code vocabulary. Handle unknown, empty, or null reasons. Determine authentication success from Status, not from the presence or absence of a reason.
Related guidance
Updated 1 day ago