curl --request POST \
--url https://api.qbank.cl/platform/v1/payouts/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/pdf' \
--data '<string>'import requests
url = "https://api.qbank.cl/platform/v1/payouts/documents"
payload = "<string>"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/pdf"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/pdf'},
body: '<string>'
};
fetch('https://api.qbank.cl/platform/v1/payouts/documents', 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.qbank.cl/platform/v1/payouts/documents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "<string>",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/pdf"
],
]);
$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.qbank.cl/platform/v1/payouts/documents"
payload := strings.NewReader("<string>")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/pdf")
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.qbank.cl/platform/v1/payouts/documents")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/pdf")
.body("<string>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/payouts/documents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/pdf'
request.body = "<string>"
response = http.request(request)
puts response.read_bodyUpload a payout supporting document
Uploads the supporting document (invoice/receipt) that the US/USD corridor requires on EVERY outbound transfer (ach, wire and swift). Send the raw binary body with its Content-Type (PDF, PNG, JPEG, WEBP, TXT, CSV, DOC(X) or XLS(X), up to 50 MB) and the filename in the name query param. The returned document_key travels as options.supporting_document_key when creating the payout (POST /v1/payouts); the optional options.document_reference_number is sent to the bank on ach/wire only. A US/USD payout created without the document fails with 400 supporting_document_required; a key uploaded by another account fails with 400 invalid_document_key.
curl --request POST \
--url https://api.qbank.cl/platform/v1/payouts/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/pdf' \
--data '<string>'import requests
url = "https://api.qbank.cl/platform/v1/payouts/documents"
payload = "<string>"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/pdf"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/pdf'},
body: '<string>'
};
fetch('https://api.qbank.cl/platform/v1/payouts/documents', 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.qbank.cl/platform/v1/payouts/documents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "<string>",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/pdf"
],
]);
$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.qbank.cl/platform/v1/payouts/documents"
payload := strings.NewReader("<string>")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/pdf")
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.qbank.cl/platform/v1/payouts/documents")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/pdf")
.body("<string>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/payouts/documents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/pdf'
request.body = "<string>"
response = http.request(request)
puts response.read_bodyAuthorizations
Session JWT (from register/login) or API key (pk_...).
X-API-Key: <token> is accepted as an alternative header.
Query Parameters
Original filename (max 200 chars, no path separators).
Body
The body is of type file.
Response
Document stored; use document_key as options.supporting_document_key of the payout.