Create 3DS2 Setup
Register the 3D Secure 2 setup data your integration has collected: the cardholder’s browser environment and any pre-computed device fingerprints. In return, receive a three_d_secure_setup_id to reference on the subsequent POST /v1/payments.
Server-to-server integrations only
Use this endpoint when you operate a server-to-server (B2B) integration and collect 3DS2 device data on your side, through your own SDK, a fraud-screening provider’s collector, or a 3DS2 server you call directly.
If you integrate through the WHITELABEL Web/Mobile SDK and a checkout session, you can skip this endpoint entirely. The SDK collects the device data and registers it automatically as part of the checkout flow.
Registration step only
This endpoint does not call the issuer, does not render a challenge, and does not bind to a specific card. The card and the three_d_secure_setup_id travel together on the payment call.
Device-data quality matters
The payment provider uses browser_info and device_fingerprints to score risk and decide between frictionless flow and challenge when the payment is submitted. Missing or stale fields raise the challenge rate. Send the values exactly as observed in the cardholder’s browser at the moment you call this endpoint.
How the merchant supplies device data
The type field tells WHITELABEL where the device data was gathered. MERCHANT_PROVIDED, currently the only supported value, means you collected the browser environment and device fingerprints on your side and are passing them in directly. WHITELABEL does not run its own collector for this endpoint. If you need WHITELABEL to capture the browser/device data, use the SDK variant instead.
How to use the response
- Store the id. Keep
three_d_secure_setup_idagainst the order on your side. - Reference it on the payment. On the subsequent Create Payment, pass it under
payment_method.detail.card.three_d_secure.three_d_secure_setup_idalongside the card or vaulted token. WHITELABEL attaches the registeredbrowser_infoanddevice_fingerprintsto the request it sends to the payment provider.
Note that this request requires an X-Idempotency-Key. The same key with the same payload returns the original setup id within a 24-hour replay window. Check the Authentication page for more information.
Field rules and edge cases
| Rule | Behavior |
|---|---|
type set to a value other than MERCHANT_PROVIDED | 400 INVALID_PARAMETERS. Other values are reserved for future use. |
browser_info.platform set to an unsupported value | 400 INVALID_PARAMETERS. Allowed: WEB, IOS, ANDROID. |
device_fingerprints omitted | Accepted. WHITELABEL will skip device-fingerprint enrichment for any provider that wasn’t pre-supplied. |
device_fingerprints[*].provider_id not found in your account | Entry is dropped silently; setup proceeds with the remaining entries. |
account_id not owned by the API key | Treated as an authorization failure (403). |
/three-d-secure/setupsRegister the 3D Secure 2 setup data your integration has collected — the cardholder’s browser environment and any pre-computed device fingerprints — and receive a three_d_secure_setup_id to reference on the subsequent POST /v1/payments.
Body application/json
Account UUID that owns this 3DS2 setup.
Source of the device data. MERCHANT_PROVIDED means you collected the browser/device data on your side and are passing it in directly.
Browser environment captured from the cardholder’s session. Forwarded verbatim to the 3DS2 server for risk scoring and frictionless decisioning.
One or more provider-scoped device fingerprints already collected on your side. WHITELABEL will not run device collection again for any provider_id you include here.
Response
201
Generated identifier of the 3DS2 setup. Pass this under payment_method.detail.card.three_d_secure.three_d_secure_setup_id on the subsequent POST /v1/payments.
Echo of the request account_id.
Echo of the request type.
Echo of the request browser_info.
Echo of the request device_fingerprints.
400
401
403