Skip to main content

Setup 3DS authentication

POST/api/v1/bank/public/setup-authentication
Public endpoint

This endpoint is called by the A55Pay SDK from the payer's browser. No Bearer token required. It initializes the 3DS Device Data Collection (DDC) process before card payment.


Request headers

HeaderValueRequired
Content-Typeapplication/jsonYes

Request body

FieldTypeRequiredDescription
card_binstringYesFirst 6-8 digits of the card number
wallet_uuidstring (UUID)YesWallet associated with the charge
merchant_idstring (UUID)YesMerchant identifier

Response fields

FieldTypeDescription
session_idstringDDC session identifier — pass to device_info.session_id
ddc_urlstringURL of the issuer's DDC iframe
ddc_jwtstringJWT token for the DDC iframe
providerstring3DS provider handling authentication
expires_atstringISO 8601 session expiration

HTTP status codes

StatusDescription
2003DS setup initialized
400Invalid BIN or missing required fields
404Wallet or merchant not found
422Card BIN not eligible for 3DS
429Rate limit exceeded
500Internal server error

Code examples

curl -s -X POST https://core-manager.a55.tech/api/v1/bank/public/setup-authentication \
-H "Content-Type: application/json" \
-d '{
"card_bin": "402400",
"wallet_uuid": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"merchant_id": "11111111-1111-1111-1111-111111111111"
}'

Error response example

{
"status": "error",
"message": [
{
"code": "BIN_NOT_3DS_ELIGIBLE",
"source": "authentication",
"description": "Card BIN 999999 is not eligible for 3DS authentication"
}
]
}