Simulate a sandbox RFI decision
curl --request POST \
--url https://api.sandbox.iron.xyz/api/sandbox/rfis/{rfi_id}/decision \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'IDEMPOTENCY-KEY: <idempotency-key>' \
--header 'X-API-Key: <api-key>' \
--data '
{
"decision": "approve",
"partner_note": "<string>"
}
'import requests
url = "https://api.sandbox.iron.xyz/api/sandbox/rfis/{rfi_id}/decision"
payload = {
"decision": "approve",
"partner_note": "<string>"
}
headers = {
"IDEMPOTENCY-KEY": "<idempotency-key>",
"X-API-Key": "<api-key>",
"Content-Type": "application/json; charset=utf-8"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'IDEMPOTENCY-KEY': '<idempotency-key>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json; charset=utf-8'
},
body: JSON.stringify({decision: 'approve', partner_note: '<string>'})
};
fetch('https://api.sandbox.iron.xyz/api/sandbox/rfis/{rfi_id}/decision', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.iron.xyz/api/sandbox/rfis/{rfi_id}/decision",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'decision' => 'approve',
'partner_note' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json; charset=utf-8",
"IDEMPOTENCY-KEY: <idempotency-key>",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.iron.xyz/api/sandbox/rfis/{rfi_id}/decision"
payload := strings.NewReader("{\n \"decision\": \"approve\",\n \"partner_note\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("IDEMPOTENCY-KEY", "<idempotency-key>")
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json; charset=utf-8")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sandbox.iron.xyz/api/sandbox/rfis/{rfi_id}/decision")
.header("IDEMPOTENCY-KEY", "<idempotency-key>")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json; charset=utf-8")
.body("{\n \"decision\": \"approve\",\n \"partner_note\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.iron.xyz/api/sandbox/rfis/{rfi_id}/decision")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["IDEMPOTENCY-KEY"] = '<idempotency-key>'
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json; charset=utf-8'
request.body = "{\n \"decision\": \"approve\",\n \"partner_note\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"created_at": "2023-11-07T05:31:56Z",
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rfi_type": "probing_questions",
"rounds": [
{
"documents": [
{
"content_type": "<string>",
"file_name": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"size_bytes": 123,
"uploaded_at": "2023-11-07T05:31:56Z"
}
],
"documents_requested": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"questions": [
{
"answer_type": "text",
"id": "<string>",
"prompt": "<string>",
"required": true,
"transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"round_number": 123,
"sent_at": "2023-11-07T05:31:56Z",
"answers": [
{
"question_id": "<string>",
"boolean_value": true,
"explanation": "<string>",
"text_value": "<string>"
}
],
"document_instructions": "<string>",
"document_link_opened_at": "2023-11-07T05:31:56Z",
"document_upload_url": "<string>",
"response_received_at": "2023-11-07T05:31:56Z"
}
],
"sent_at": "2023-11-07T05:31:56Z",
"status": "waiting_on_response",
"updated_at": "2023-11-07T05:31:56Z",
"closed_at": "2023-11-07T05:31:56Z",
"liveness_url": "<string>",
"partner_note": "<string>",
"response_received_at": "2023-11-07T05:31:56Z",
"transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}"<string>"Sandbox
Simulate a sandbox RFI decision
Requires needs_review. Clarification appends a round; approval/rejection closes the request.
POST
/
sandbox
/
rfis
/
{rfi_id}
/
decision
Simulate a sandbox RFI decision
curl --request POST \
--url https://api.sandbox.iron.xyz/api/sandbox/rfis/{rfi_id}/decision \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'IDEMPOTENCY-KEY: <idempotency-key>' \
--header 'X-API-Key: <api-key>' \
--data '
{
"decision": "approve",
"partner_note": "<string>"
}
'import requests
url = "https://api.sandbox.iron.xyz/api/sandbox/rfis/{rfi_id}/decision"
payload = {
"decision": "approve",
"partner_note": "<string>"
}
headers = {
"IDEMPOTENCY-KEY": "<idempotency-key>",
"X-API-Key": "<api-key>",
"Content-Type": "application/json; charset=utf-8"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'IDEMPOTENCY-KEY': '<idempotency-key>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json; charset=utf-8'
},
body: JSON.stringify({decision: 'approve', partner_note: '<string>'})
};
fetch('https://api.sandbox.iron.xyz/api/sandbox/rfis/{rfi_id}/decision', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.iron.xyz/api/sandbox/rfis/{rfi_id}/decision",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'decision' => 'approve',
'partner_note' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json; charset=utf-8",
"IDEMPOTENCY-KEY: <idempotency-key>",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.iron.xyz/api/sandbox/rfis/{rfi_id}/decision"
payload := strings.NewReader("{\n \"decision\": \"approve\",\n \"partner_note\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("IDEMPOTENCY-KEY", "<idempotency-key>")
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json; charset=utf-8")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sandbox.iron.xyz/api/sandbox/rfis/{rfi_id}/decision")
.header("IDEMPOTENCY-KEY", "<idempotency-key>")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json; charset=utf-8")
.body("{\n \"decision\": \"approve\",\n \"partner_note\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.iron.xyz/api/sandbox/rfis/{rfi_id}/decision")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["IDEMPOTENCY-KEY"] = '<idempotency-key>'
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json; charset=utf-8'
request.body = "{\n \"decision\": \"approve\",\n \"partner_note\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"created_at": "2023-11-07T05:31:56Z",
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rfi_type": "probing_questions",
"rounds": [
{
"documents": [
{
"content_type": "<string>",
"file_name": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"size_bytes": 123,
"uploaded_at": "2023-11-07T05:31:56Z"
}
],
"documents_requested": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"questions": [
{
"answer_type": "text",
"id": "<string>",
"prompt": "<string>",
"required": true,
"transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"round_number": 123,
"sent_at": "2023-11-07T05:31:56Z",
"answers": [
{
"question_id": "<string>",
"boolean_value": true,
"explanation": "<string>",
"text_value": "<string>"
}
],
"document_instructions": "<string>",
"document_link_opened_at": "2023-11-07T05:31:56Z",
"document_upload_url": "<string>",
"response_received_at": "2023-11-07T05:31:56Z"
}
],
"sent_at": "2023-11-07T05:31:56Z",
"status": "waiting_on_response",
"updated_at": "2023-11-07T05:31:56Z",
"closed_at": "2023-11-07T05:31:56Z",
"liveness_url": "<string>",
"partner_note": "<string>",
"response_received_at": "2023-11-07T05:31:56Z",
"transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}"<string>"Headers
Body
application/json; charset=utf-8
Response
Partner-visible RFI state. Internal analyst and resolution details are deliberately excluded, and so is the outcome: a failed FIU or fraud RFI can tip off the customer.
Was this page helpful?