Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 1.66 KB

KBAs.md

File metadata and controls

53 lines (41 loc) · 1.66 KB

High-Level Examples (KBA)

Source Code: KbaApi

Initiate a KBA Session for a Customer (API Reference)

$customerUrl = "https://api.dwolla.com/customers/ca22d192-48f1-4b72-b29d-681e9e20795d"
$customersApi = new DwollaSwagger\CustomersApi($apiClient);

$kba = $customersApi->initiateKba($customerUrl);
$kba; # => "https://api-sandbox.dwolla.com/kba/70b0e9cc-020d-4de2-9a82-a2281afa4c31"

Retrieve KBA Questions (API Reference)

$kbaUrl = "https://api-sandbox.dwolla.com/kba/70b0e9cc-020d-4de2-9a82-a2281afa4c31";
$kbaApi = new DwollaSwagger\KbaApi($apiClient);

$kbaQuestions = $kbaApi->getKbaQuestions($kbaUrl);
print $kbaQuestions->id; # => "70b0e9cc-020d-4de2-9a82-a2281afa4c31"

Verify KBA Questions (API Reference)

$kbaUrl = "https://api-sandbox.dwolla.com/kba/70b0e9cc-020d-4de2-9a82-a2281afa4c31";
$kbaApi = new DwollaSwagger\KbaApi($apiClient);

$kbaAnswers = $kbaApi->answerKbaQuestions([
    "answers" => [
         [
             "questionId" => "2355953375",
             "answerId" => "2687969335"
         ],
         [
             "questionId" => "2355953385",
             "answerId" => "2687969385"
         ],
         [
             "questionId" => "2355953395",
             "answerId" => "2687969435"
         ],
         [
             "questionId" => "2355953405",
             "answerId" => "2687969485"
         ]
    ]
  ], $kbaUrl);