Update an organization rail variant
curl --request PUT \
--url https://api.qbank.cl/platform/v1/corridor-variants \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"direction": "payout",
"country": "BO",
"currency": "BOB",
"method": "bank_transfer",
"variant": "v2",
"source_account": "configured-source",
"reason": "Controlled rail migration"
}
'import requests
url = "https://api.qbank.cl/platform/v1/corridor-variants"
payload = {
"direction": "payout",
"country": "BO",
"currency": "BOB",
"method": "bank_transfer",
"variant": "v2",
"source_account": "configured-source",
"reason": "Controlled rail migration"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
direction: 'payout',
country: 'BO',
currency: 'BOB',
method: 'bank_transfer',
variant: 'v2',
source_account: 'configured-source',
reason: 'Controlled rail migration'
})
};
fetch('https://api.qbank.cl/platform/v1/corridor-variants', 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/corridor-variants",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'direction' => 'payout',
'country' => 'BO',
'currency' => 'BOB',
'method' => 'bank_transfer',
'variant' => 'v2',
'source_account' => 'configured-source',
'reason' => 'Controlled rail migration'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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/corridor-variants"
payload := strings.NewReader("{\n \"direction\": \"payout\",\n \"country\": \"BO\",\n \"currency\": \"BOB\",\n \"method\": \"bank_transfer\",\n \"variant\": \"v2\",\n \"source_account\": \"configured-source\",\n \"reason\": \"Controlled rail migration\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.put("https://api.qbank.cl/platform/v1/corridor-variants")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"direction\": \"payout\",\n \"country\": \"BO\",\n \"currency\": \"BOB\",\n \"method\": \"bank_transfer\",\n \"variant\": \"v2\",\n \"source_account\": \"configured-source\",\n \"reason\": \"Controlled rail migration\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/corridor-variants")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"direction\": \"payout\",\n \"country\": \"BO\",\n \"currency\": \"BOB\",\n \"method\": \"bank_transfer\",\n \"variant\": \"v2\",\n \"source_account\": \"configured-source\",\n \"reason\": \"Controlled rail migration\"\n}"
response = http.request(request)
puts response.read_body{
"org_id": "org_123",
"direction": "payout",
"country": "BO",
"currency": "BOB",
"method": "bank_transfer",
"variant": "v2",
"source_account": "configured-source"
}{
"error": "invalid_rail_variant",
"message": "variant must be legacy or v2"
}{
"error": "rail_source_admin_required",
"message": "source account routing is platform-admin controlled"
}{
"error": "rail_source_unavailable",
"message": "the selected source account is not configured for this organization"
}Update an organization rail variant
PUT
/
v1
/
corridor-variants
Update an organization rail variant
curl --request PUT \
--url https://api.qbank.cl/platform/v1/corridor-variants \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"direction": "payout",
"country": "BO",
"currency": "BOB",
"method": "bank_transfer",
"variant": "v2",
"source_account": "configured-source",
"reason": "Controlled rail migration"
}
'import requests
url = "https://api.qbank.cl/platform/v1/corridor-variants"
payload = {
"direction": "payout",
"country": "BO",
"currency": "BOB",
"method": "bank_transfer",
"variant": "v2",
"source_account": "configured-source",
"reason": "Controlled rail migration"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
direction: 'payout',
country: 'BO',
currency: 'BOB',
method: 'bank_transfer',
variant: 'v2',
source_account: 'configured-source',
reason: 'Controlled rail migration'
})
};
fetch('https://api.qbank.cl/platform/v1/corridor-variants', 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/corridor-variants",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'direction' => 'payout',
'country' => 'BO',
'currency' => 'BOB',
'method' => 'bank_transfer',
'variant' => 'v2',
'source_account' => 'configured-source',
'reason' => 'Controlled rail migration'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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/corridor-variants"
payload := strings.NewReader("{\n \"direction\": \"payout\",\n \"country\": \"BO\",\n \"currency\": \"BOB\",\n \"method\": \"bank_transfer\",\n \"variant\": \"v2\",\n \"source_account\": \"configured-source\",\n \"reason\": \"Controlled rail migration\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.put("https://api.qbank.cl/platform/v1/corridor-variants")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"direction\": \"payout\",\n \"country\": \"BO\",\n \"currency\": \"BOB\",\n \"method\": \"bank_transfer\",\n \"variant\": \"v2\",\n \"source_account\": \"configured-source\",\n \"reason\": \"Controlled rail migration\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/corridor-variants")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"direction\": \"payout\",\n \"country\": \"BO\",\n \"currency\": \"BOB\",\n \"method\": \"bank_transfer\",\n \"variant\": \"v2\",\n \"source_account\": \"configured-source\",\n \"reason\": \"Controlled rail migration\"\n}"
response = http.request(request)
puts response.read_body{
"org_id": "org_123",
"direction": "payout",
"country": "BO",
"currency": "BOB",
"method": "bank_transfer",
"variant": "v2",
"source_account": "configured-source"
}{
"error": "invalid_rail_variant",
"message": "variant must be legacy or v2"
}{
"error": "rail_source_admin_required",
"message": "source account routing is platform-admin controlled"
}{
"error": "rail_source_unavailable",
"message": "the selected source account is not configured for this organization"
}Authorizations
会话 JWT(来自注册/登录)或 API key(pk_...)。
也接受 X-API-Key: <token> 作为替代请求头。
Body
application/json
Last modified on September 10, 2026