Download the IDV report for a representative
code examples curl request get \\ \ url https //api detected app/api/v2/public/representatives/{uuid}/verifications/{type}/report \\ \ header 'accept application/octet stream'var myheaders = new headers(); myheaders append("accept", "application/octet stream"); myheaders append("content type", "application/json"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //api detected app/api/v2/public/representatives/{uuid}/verifications/{type}/report", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api detected app/api/v2/public/representatives/{uuid}/verifications/{type}/report") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/octet stream" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //api detected app/api/v2/public/representatives/{uuid}/verifications/{type}/report" payload = {} headers = { 'accept' 'application/octet stream', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // idv report file returned by the provider // unauthorized { "message" "unauthorized " }// not found { "message" "not found" }// gone — the idv report is no longer available (31 day retention window has passed) { "message" "the idv report is no longer available for download " }// unprocessable content { "message" "the example field code is required ", "example field" \[ "the example field has already been taken " ] }