RFIs
Answer 1 to N items
Answer one or more of the request’s items in a single call, each element of items[] naming its own item_id. Answering only some of them is the normal case.
An item is marked answered on receipt, not when anything downstream accepts it.
PATCH
/
v1
/
rfis
/
{rfi_id}
/
items
Answer 1 to N items
curl --request PATCH \
--url https://api.balampay.com/sandbox/v1/rfis/{rfi_id}/items \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"items": [
{
"item_id": "0198f2c2-0000-0000-0000-000000000000",
"answer_value": "12-3456789"
},
{
"item_id": "0198f2c3-0000-0000-0000-000000000000",
"answer_value": "Export sales to three LATAM customers"
}
]
}
'import requests
url = "https://api.balampay.com/sandbox/v1/rfis/{rfi_id}/items"
payload = { "items": [
{
"item_id": "0198f2c2-0000-0000-0000-000000000000",
"answer_value": "12-3456789"
},
{
"item_id": "0198f2c3-0000-0000-0000-000000000000",
"answer_value": "Export sales to three LATAM customers"
}
] }
headers = {
"Authorization": "Bearer <token>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
items: [
{item_id: '0198f2c2-0000-0000-0000-000000000000', answer_value: '12-3456789'},
{
item_id: '0198f2c3-0000-0000-0000-000000000000',
answer_value: 'Export sales to three LATAM customers'
}
]
})
};
fetch('https://api.balampay.com/sandbox/v1/rfis/{rfi_id}/items', 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.balampay.com/sandbox/v1/rfis/{rfi_id}/items",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'items' => [
[
'item_id' => '0198f2c2-0000-0000-0000-000000000000',
'answer_value' => '12-3456789'
],
[
'item_id' => '0198f2c3-0000-0000-0000-000000000000',
'answer_value' => 'Export sales to three LATAM customers'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"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.balampay.com/sandbox/v1/rfis/{rfi_id}/items"
payload := strings.NewReader("{\n \"items\": [\n {\n \"item_id\": \"0198f2c2-0000-0000-0000-000000000000\",\n \"answer_value\": \"12-3456789\"\n },\n {\n \"item_id\": \"0198f2c3-0000-0000-0000-000000000000\",\n \"answer_value\": \"Export sales to three LATAM customers\"\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.balampay.com/sandbox/v1/rfis/{rfi_id}/items")
.header("Authorization", "Bearer <token>")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"items\": [\n {\n \"item_id\": \"0198f2c2-0000-0000-0000-000000000000\",\n \"answer_value\": \"12-3456789\"\n },\n {\n \"item_id\": \"0198f2c3-0000-0000-0000-000000000000\",\n \"answer_value\": \"Export sales to three LATAM customers\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.balampay.com/sandbox/v1/rfis/{rfi_id}/items")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"items\": [\n {\n \"item_id\": \"0198f2c2-0000-0000-0000-000000000000\",\n \"answer_value\": \"12-3456789\"\n },\n {\n \"item_id\": \"0198f2c3-0000-0000-0000-000000000000\",\n \"answer_value\": \"Export sales to three LATAM customers\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"item_id": "1a2b3c4d-5e6f-4708-9a1b-2c3d4e5f6a7b",
"ordinal": 1,
"prompt": "Upload the certificate of good standing issued in the last 90 days.",
"answer_type": "text_short",
"answer_spec": {
"max_length": 120
},
"target_key": null,
"subject": null,
"status": "answered",
"answer_value": "Northwind Trading LLC",
"documents": [],
"review_note": null,
"updated_at": "2026-09-02T09:15:00.000Z",
"returned_at": null
}
]
}{
"code": "validation_error",
"message": "Invalid request body"
}{
"code": "invalid_request",
"message": "The request could not be authenticated. Check the x-api-key and Authorization headers."
}{
"code": "not_found",
"message": "RFI not found"
}{
"code": "conflict",
"message": "This RFI is closed and no longer accepts answers"
}{
"errors": [
{
"item_id": "1a2b3c4d-5e6f-4708-9a1b-2c3d4e5f6a7b",
"message": "The answer is longer than the 120 characters this item accepts."
}
]
}Headers
Version applied to this request. It wins over your account's pinned version — see Versioning.
Example:
"2026-06-01"
Path Parameters
RFI UUID.
Body
application/json
Answering a returned item is answering it again with the same item_id. A document item is not answered here; upload files to it instead.
One or more items to answer, each naming its item_id.
Minimum array length:
1Show child attributes
Show child attributes
Response
The items were answered.
The items named in the request, each reflecting the write (status: "answered", answer_value/documents, updated_at).
Show child attributes
Show child attributes
⌘I
Answer 1 to N items
curl --request PATCH \
--url https://api.balampay.com/sandbox/v1/rfis/{rfi_id}/items \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"items": [
{
"item_id": "0198f2c2-0000-0000-0000-000000000000",
"answer_value": "12-3456789"
},
{
"item_id": "0198f2c3-0000-0000-0000-000000000000",
"answer_value": "Export sales to three LATAM customers"
}
]
}
'import requests
url = "https://api.balampay.com/sandbox/v1/rfis/{rfi_id}/items"
payload = { "items": [
{
"item_id": "0198f2c2-0000-0000-0000-000000000000",
"answer_value": "12-3456789"
},
{
"item_id": "0198f2c3-0000-0000-0000-000000000000",
"answer_value": "Export sales to three LATAM customers"
}
] }
headers = {
"Authorization": "Bearer <token>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
items: [
{item_id: '0198f2c2-0000-0000-0000-000000000000', answer_value: '12-3456789'},
{
item_id: '0198f2c3-0000-0000-0000-000000000000',
answer_value: 'Export sales to three LATAM customers'
}
]
})
};
fetch('https://api.balampay.com/sandbox/v1/rfis/{rfi_id}/items', 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.balampay.com/sandbox/v1/rfis/{rfi_id}/items",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'items' => [
[
'item_id' => '0198f2c2-0000-0000-0000-000000000000',
'answer_value' => '12-3456789'
],
[
'item_id' => '0198f2c3-0000-0000-0000-000000000000',
'answer_value' => 'Export sales to three LATAM customers'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"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.balampay.com/sandbox/v1/rfis/{rfi_id}/items"
payload := strings.NewReader("{\n \"items\": [\n {\n \"item_id\": \"0198f2c2-0000-0000-0000-000000000000\",\n \"answer_value\": \"12-3456789\"\n },\n {\n \"item_id\": \"0198f2c3-0000-0000-0000-000000000000\",\n \"answer_value\": \"Export sales to three LATAM customers\"\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.balampay.com/sandbox/v1/rfis/{rfi_id}/items")
.header("Authorization", "Bearer <token>")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"items\": [\n {\n \"item_id\": \"0198f2c2-0000-0000-0000-000000000000\",\n \"answer_value\": \"12-3456789\"\n },\n {\n \"item_id\": \"0198f2c3-0000-0000-0000-000000000000\",\n \"answer_value\": \"Export sales to three LATAM customers\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.balampay.com/sandbox/v1/rfis/{rfi_id}/items")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"items\": [\n {\n \"item_id\": \"0198f2c2-0000-0000-0000-000000000000\",\n \"answer_value\": \"12-3456789\"\n },\n {\n \"item_id\": \"0198f2c3-0000-0000-0000-000000000000\",\n \"answer_value\": \"Export sales to three LATAM customers\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"item_id": "1a2b3c4d-5e6f-4708-9a1b-2c3d4e5f6a7b",
"ordinal": 1,
"prompt": "Upload the certificate of good standing issued in the last 90 days.",
"answer_type": "text_short",
"answer_spec": {
"max_length": 120
},
"target_key": null,
"subject": null,
"status": "answered",
"answer_value": "Northwind Trading LLC",
"documents": [],
"review_note": null,
"updated_at": "2026-09-02T09:15:00.000Z",
"returned_at": null
}
]
}{
"code": "validation_error",
"message": "Invalid request body"
}{
"code": "invalid_request",
"message": "The request could not be authenticated. Check the x-api-key and Authorization headers."
}{
"code": "not_found",
"message": "RFI not found"
}{
"code": "conflict",
"message": "This RFI is closed and no longer accepts answers"
}{
"errors": [
{
"item_id": "1a2b3c4d-5e6f-4708-9a1b-2c3d4e5f6a7b",
"message": "The answer is longer than the 120 characters this item accepts."
}
]
}