Retrieving adverse actions

How to retrieve adverse actions for a credit application that fails.

To retrieve adverse actions for a credit application, use the GET /credit/applications/{application_id}/adverse-actions operation with no further parameters.

An example of a request to retrieve adverse actions for a credit application is shown below.

curl --request GET \
     --url https://sandbox.bond.tech/api/v0.1/credit/applications/559084d0-0a19-46b9-bd77-daaed9745667/adverse-actions \
     --header 'Accept: application/json' \
     --header 'Authorization: YOUR-AUTHORIZATION' \
     --header 'Identity: YOUR-IDENTITY'
require 'uri'
require 'net/http'
require 'openssl'

url = URI("https://sandbox.bond.tech/api/v0.1/credit/applications/559084d0-0a19-46b9-bd77-daaed9745667/adverse-actions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Accept"] = 'application/json'
request["Identity"] = 'YOUR-IDENTITY'
request["Authorization"] = 'YOUR-AUTHORIZATION'

response = http.request(request)
puts response.read_body
const options = {
  method: 'GET',
  headers: {
    Accept: 'application/json',
    Identity: 'YOUR-IDENTITY',
    Authorization: 'YOUR-AUTHORIZATION'
  }
};

fetch('https://sandbox.bond.tech/api/v0.1/credit/applications/559084d0-0a19-46b9-bd77-daaed9745667/adverse-actions', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
import requests

url = "https://sandbox.bond.tech/api/v0.1/credit/applications/559084d0-0a19-46b9-bd77-daaed9745667/adverse-actions"

headers = {
    "Accept": "application/json",
    "Identity": "YOUR-IDENTITY",
    "Authorization": "YOUR-AUTHORIZATION"
}

response = requests.get(url, headers=headers)

print(response.text)
var client = new RestClient("https://sandbox.bond.tech/api/v0.1/credit/applications/559084d0-0a19-46b9-bd77-daaed9745667/adverse-actions");
var request = new RestRequest(Method.GET);
request.AddHeader("Accept", "application/json");
request.AddHeader("Identity", "YOUR-IDENTITY");
request.AddHeader("Authorization", "YOUR-AUTHORIZATION");
IRestResponse response = client.Execute(request);
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://sandbox.bond.tech/api/v0.1/credit/applications/559084d0-0a19-46b9-bd77-daaed9745667/adverse-actions")
  .get()
  .addHeader("Accept", "application/json")
  .addHeader("Identity", "YOUR-IDENTITY")
  .addHeader("Authorization", "YOUR-AUTHORIZATION")
  .build();

Response response = client.newCall(request).execute();

An example of a response to a successful request to retrieve adverse actions for a credit application is shown below.

{
  "id": "8d633bf6-cc1b-4ecb-9776-d4cbf591b2b4",
  "application_id": "38d90f38-4ce1-4c10-9380-c0fd1e8e00d7",
  "date_created": "2021-12-21T14:14:37.277862Z",
  "date_updated": "2021-12-21T14:14:37.277882Z",
  "service": "underwriting",
  "reasons": [
    "Unable to verify identity",
    "Incomplete identity information"
  ]
}

For a complete specification and interactive examples, see Retrieving adverse actions in the Bond API Reference.