Initiate OOB Authentication

Initiate Out-of-Band Authentication

This end point is to be implemented by BaaS Client. Nium will call this endpoint in order to initiate the process of OOB (Out Of Band) authentication.

POST https://<EComAuthCodeValidationBaseURL>/oob

📘

NOTE

EComAuthCodeValidationBaseURL is the URL provided by client during setup which will be used further by NIUM as a base URL.

Headers

HeaderParameter
content-typeapplication/JSON
x-request-idUUID
x-client-nameString

Example Request

curl -X POST \
  https://<EComAuthCodeValidationBaseURL>/oob \
  -H 'content-type: application/json' \
  -H 'x-request-id: 123e4567-e89b-12d3-a456-426655440000' \
  -H 'x-client-name: Cards-Customer-Service' \
  -d '{
    "authTransactionId" : "e5610bdf-12b1-9807-4ccf-09b70bcff776",
    "clientHashId" : "e2710bdf-25b1-4535-9ccf-09b70bcff684",
    "cardHashId" : "e3008bdf-25b1-4535-9ccf-09b70bcff684",
    "customerHashId" : "e2708eef-25b1-4535-9ccf-09b70bcff684",
    "walletHashId" : "e2708bdf-25b1-4535-9ccf-09b70bcdd684",
    "merchantName" : "Test Merchant",
    "maskedCardNumber" : "4611-35xx-xxxx-1234",
    "transactionAmount" : "1.10",
    "transactionCurrency" : "EUR"
}'
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\r\n    \"authTransactionId\" : \"e5610bdf-12b1-9807-4ccf-09b70bcff776\",\r\n    \"clientHashId\" : \"e2710bdf-25b1-4535-9ccf-09b70bcff684\",\r\n    \"cardHashId\" : \"e3008bdf-25b1-4535-9ccf-09b70bcff684\",\r\n    \"customerHashId\" : \"e2708eef-25b1-4535-9ccf-09b70bcff684\",\r\n    \"walletHashId\" : \"e2708bdf-25b1-4535-9ccf-09b70bcdd684\",\r\n    \"merchantName\" : \"Test Merchant\",\r\n    \"maskedCardNumber\" : \"4611-35xx-xxxx-1234\",\r\n    \"transactionAmount\" : \"1.10\",\r\n    \"transactionCurrency\" : \"EUR\"\r\n}");
Request request = new Request.Builder()
  .url("https://<EComAuthCodeValidationBaseURL>/oob")
  .post(body)
  .addHeader("content-type", "application/json")
  .addHeader("x-request-id", "123e4567-e89b-12d3-a456-426655440000")
  .addHeader("x-client-name", "Cards-Customer-Service")
  .build();

Response response = client.newCall(request).execute();
var settings = {
  "https://<EComAuthCodeValidationBaseURL>/oob",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Content-Type": "application/json",
    "x-request-id": "123e4567-e89b-12d3-a456-426655440000",
    "x-client-name": "Cards-Customer-Service"
  },
  "data": JSON.stringify({
    "authTransactionId": "e5610bdf-12b1-9807-4ccf-09b70bcff776",
    "clientHashId": "e2710bdf-25b1-4535-9ccf-09b70bcff684",
    "cardHashId": "e3008bdf-25b1-4535-9ccf-09b70bcff684",
    "customerHashId": "e2708eef-25b1-4535-9ccf-09b70bcff684",
    "walletHashId": "e2708bdf-25b1-4535-9ccf-09b70bcdd684",
    "merchantName": "Test Merchant",
    "maskedCardNumber": "4611-35xx-xxxx-1234",
    "transactionAmount": "1.10",
    "transactionCurrency": "EUR"
  }),
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
import requests

url = "https://<EComAuthCodeValidationBaseURL>/oob"

payload = json.dumps({
  "authTransactionId": "e5610bdf-12b1-9807-4ccf-09b70bcff776",
  "clientHashId": "e2710bdf-25b1-4535-9ccf-09b70bcff684",
  "cardHashId": "e3008bdf-25b1-4535-9ccf-09b70bcff684",
  "customerHashId": "e2708eef-25b1-4535-9ccf-09b70bcff684",
  "walletHashId": "e2708bdf-25b1-4535-9ccf-09b70bcdd684",
  "merchantName": "Test Merchant",
  "maskedCardNumber": "4611-35xx-xxxx-1234",
  "transactionAmount": "1.10",
  "transactionCurrency": "EUR"
})
headers = {
    'content-type': "application/json",
    'x-request-id': "123e4567-e89b-12d3-a456-426655440000",
    'x-client-name': "Cards-Customer-Service"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Request Body

FieldDescriptionTypeRequired
authTransactionIdUnique ID generated for a transaction.UUIDRequired
clientHashIdUnique client identifier generated and shared before API handshake.UUIDRequired
cardHashIdUnique card identifier generated while new/add-on card issuance.UUIDRequired
customerHashIdUnique customer identifier generated on customer creation.UUIDRequired
walletHashIdUnique wallet identifier generated during customer creation.UUIDRequired
merchantNameThis field accepts the merchant name.StringRequired
maskedCardNumberThis field accepts the mask card number.StringRequired
transactionAmountThis field accepts the transaction amount up to 2 decimals.StringRequired
transactionCurrencyThe 3-letter ISO currency code for the transaction.StringRequired

Example Response

200 OK

Response Body

NIUM shall respond with HTTP response code 200.