RFIs
Remove one file
Take one file out of the item’s set. The set that still held it stays readable in the request’s history.
DELETE
/
v1
/
rfis
/
{rfi_id}
/
items
/
{item_id}
/
documents
/
{document_id}
Remove one file
curl --request DELETE \
--url https://api.balampay.com/sandbox/v1/rfis/{rfi_id}/items/{item_id}/documents/{document_id} \
--header 'Authorization: Bearer <token>' \
--header 'x-api-key: <api-key>'import requests
url = "https://api.balampay.com/sandbox/v1/rfis/{rfi_id}/items/{item_id}/documents/{document_id}"
headers = {
"Authorization": "Bearer <token>",
"x-api-key": "<api-key>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'x-api-key': '<api-key>'}
};
fetch('https://api.balampay.com/sandbox/v1/rfis/{rfi_id}/items/{item_id}/documents/{document_id}', 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/{item_id}/documents/{document_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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"
"net/http"
"io"
)
func main() {
url := "https://api.balampay.com/sandbox/v1/rfis/{rfi_id}/items/{item_id}/documents/{document_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.balampay.com/sandbox/v1/rfis/{rfi_id}/items/{item_id}/documents/{document_id}")
.header("Authorization", "Bearer <token>")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.balampay.com/sandbox/v1/rfis/{rfi_id}/items/{item_id}/documents/{document_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"item": {
"item_id": "1a2b3c4d-5e6f-4708-9a1b-2c3d4e5f6a7b",
"ordinal": 1,
"prompt": "Upload the certificate of good standing issued in the last 90 days.",
"answer_type": "document",
"answer_spec": {
"max_files": 3
},
"target_key": null,
"subject": null,
"status": "pending",
"answer_value": null,
"documents": [],
"review_note": null,
"updated_at": null,
"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"
}{
"code": "unprocessable",
"message": "The answer does not satisfy the item's answer_spec"
}Headers
Version applied to this request. It wins over your account's pinned version — see Versioning.
Example:
"2026-06-01"
Path Parameters
RFI UUID.
Item UUID. The item must be a document item of this RFI.
The file's own id, as returned in documents[].
Response
The file was removed.
One thing being asked for. The addressable unit of an RFI — a PATCH or a document upload always names an item_id, never the parent RFI.
Show child attributes
Show child attributes
⌘I
Remove one file
curl --request DELETE \
--url https://api.balampay.com/sandbox/v1/rfis/{rfi_id}/items/{item_id}/documents/{document_id} \
--header 'Authorization: Bearer <token>' \
--header 'x-api-key: <api-key>'import requests
url = "https://api.balampay.com/sandbox/v1/rfis/{rfi_id}/items/{item_id}/documents/{document_id}"
headers = {
"Authorization": "Bearer <token>",
"x-api-key": "<api-key>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'x-api-key': '<api-key>'}
};
fetch('https://api.balampay.com/sandbox/v1/rfis/{rfi_id}/items/{item_id}/documents/{document_id}', 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/{item_id}/documents/{document_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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"
"net/http"
"io"
)
func main() {
url := "https://api.balampay.com/sandbox/v1/rfis/{rfi_id}/items/{item_id}/documents/{document_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.balampay.com/sandbox/v1/rfis/{rfi_id}/items/{item_id}/documents/{document_id}")
.header("Authorization", "Bearer <token>")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.balampay.com/sandbox/v1/rfis/{rfi_id}/items/{item_id}/documents/{document_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"item": {
"item_id": "1a2b3c4d-5e6f-4708-9a1b-2c3d4e5f6a7b",
"ordinal": 1,
"prompt": "Upload the certificate of good standing issued in the last 90 days.",
"answer_type": "document",
"answer_spec": {
"max_files": 3
},
"target_key": null,
"subject": null,
"status": "pending",
"answer_value": null,
"documents": [],
"review_note": null,
"updated_at": null,
"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"
}{
"code": "unprocessable",
"message": "The answer does not satisfy the item's answer_spec"
}