Skip to main content
After you registered devices for Strong Customer Authentication (SCA), you can use our API to:

Requirements

Ensure that your API credential has the following role:
  • Bank SCA Webservice Role

Get the device registered for a card

After the device is registered, you use the API to get information about the SCA device connected to a specific card such as the device ID, the name of the device, and the type of the device. You can use this information to build user interfaces or to check the payment instrument’s devices before associating more. To get the SCA device registered for a specific card:
  1. Make a GET /registeredDevices request. Include the following query parameter: The following example shows a GET /registeredDevices request for the paymentInstrumentId PI00000000000000000000001. Example GET /registeredDevices request

    curl

    Java

    PHP

    C#

    NodeJS (JavaScript)

    Go

    Python

    Ruby

    NodeJS (TypeScript)

  2. In the response, note the following parameters: Example GET /registeredDevices response

Associate cards to a registered device

After you register a device, you can connect additional payment instruments to the device using the Configuration API. This enables a single device to handle authentication for multiple payment instruments. You can associate up to five payment instruments to a device per /registeredDevices/{deviceId}/associations API request. Each payment instrument can only be linked to one device. To add payment instruments to a registered device:
  1. From your server, initiate the association by making a POST /registeredDevices/{deviceId}/associations request with the user’s device ID as a path parameter. In the request body, specify up to five payment instrument IDs in the ids array. Initiate the association

    curl

    Java

    PHP

    C#

    NodeJS (JavaScript)

    Go

    Python

    Ruby

    NodeJS (TypeScript)

    The response contains a Base64-encoded string, which our Authentication SDKs uses to authenticate the requested association. You do not need to decode or validate this string. POST /association response
  2. Pass the resulting sdkInput to your client.
  3. On your client, initialize the SDK and call the authenticate() method using the sdkInput from your server as an argument. The authenticate() method prompts the user to respond to a challenge, for example, Touch ID, Face ID, or the device password.
If successful, the SDK generates a Base64-encoded sdkOutput data blob.