curl --request POST \
--url https://api.qbank.cl/platform/v1/payins/collect \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"method": "c2p",
"amount": "1200.00",
"description": "Order 5512",
"payer_document": "V12345678",
"payer_phone": "04141234567",
"payer_bank": "0102",
"otp": "12345678",
"idempotency_key": "collect-2026-07-07-a"
}
'import requests
url = "https://api.qbank.cl/platform/v1/payins/collect"
payload = {
"method": "c2p",
"amount": "1200.00",
"description": "Order 5512",
"payer_document": "V12345678",
"payer_phone": "04141234567",
"payer_bank": "0102",
"otp": "12345678",
"idempotency_key": "collect-2026-07-07-a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'c2p',
amount: '1200.00',
description: 'Order 5512',
payer_document: 'V12345678',
payer_phone: '04141234567',
payer_bank: '0102',
otp: '12345678',
idempotency_key: 'collect-2026-07-07-a'
})
};
fetch('https://api.qbank.cl/platform/v1/payins/collect', 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/payins/collect",
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([
'method' => 'c2p',
'amount' => '1200.00',
'description' => 'Order 5512',
'payer_document' => 'V12345678',
'payer_phone' => '04141234567',
'payer_bank' => '0102',
'otp' => '12345678',
'idempotency_key' => 'collect-2026-07-07-a'
]),
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/payins/collect"
payload := strings.NewReader("{\n \"method\": \"c2p\",\n \"amount\": \"1200.00\",\n \"description\": \"Order 5512\",\n \"payer_document\": \"V12345678\",\n \"payer_phone\": \"04141234567\",\n \"payer_bank\": \"0102\",\n \"otp\": \"12345678\",\n \"idempotency_key\": \"collect-2026-07-07-a\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.qbank.cl/platform/v1/payins/collect")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"method\": \"c2p\",\n \"amount\": \"1200.00\",\n \"description\": \"Order 5512\",\n \"payer_document\": \"V12345678\",\n \"payer_phone\": \"04141234567\",\n \"payer_bank\": \"0102\",\n \"otp\": \"12345678\",\n \"idempotency_key\": \"collect-2026-07-07-a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/payins/collect")
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/json'
request.body = "{\n \"method\": \"c2p\",\n \"amount\": \"1200.00\",\n \"description\": \"Order 5512\",\n \"payer_document\": \"V12345678\",\n \"payer_phone\": \"04141234567\",\n \"payer_bank\": \"0102\",\n \"otp\": \"12345678\",\n \"idempotency_key\": \"collect-2026-07-07-a\"\n}"
response = http.request(request)
puts response.read_body{
"payin_id": "7b3c9e2f-1a2b-3c4d-5e6f-7a8b9c0d1e2f",
"account_id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"kind": "collect",
"country": "VE",
"currency": "VES",
"method": "c2p",
"local_amount": "1200.00",
"status": "credited",
"reference": "REF-102030",
"fx_rate": "36.50",
"usdt_gross": "32.876712",
"fee": "0.300000",
"usdt_credited": "32.576712",
"paid": true,
"provider_reference": "PRV-889911",
"status_code": "00",
"status_message": "approved",
"created_at": "2026-07-07T12:00:00Z",
"updated_at": "2026-07-07T12:00:02Z"
}{
"error": "invalid_request",
"message": "method is required (e.g. c2p, debito_inmediato)"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "account_blocked",
"message": "account is not active"
}{
"error": "core_unavailable",
"message": "could not execute the collection"
}Active collection (pull)
Charges the payer directly in corridors that support pull collections (e.g. Venezuela c2p / debito_inmediato). Synchronous: if the charge is approved the deposit converts at your current payin_rate and is credited in the same call, net of the payin fee. If the payer declines, paid is false, the payin is marked failed and nothing is charged.
curl --request POST \
--url https://api.qbank.cl/platform/v1/payins/collect \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"method": "c2p",
"amount": "1200.00",
"description": "Order 5512",
"payer_document": "V12345678",
"payer_phone": "04141234567",
"payer_bank": "0102",
"otp": "12345678",
"idempotency_key": "collect-2026-07-07-a"
}
'import requests
url = "https://api.qbank.cl/platform/v1/payins/collect"
payload = {
"method": "c2p",
"amount": "1200.00",
"description": "Order 5512",
"payer_document": "V12345678",
"payer_phone": "04141234567",
"payer_bank": "0102",
"otp": "12345678",
"idempotency_key": "collect-2026-07-07-a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'c2p',
amount: '1200.00',
description: 'Order 5512',
payer_document: 'V12345678',
payer_phone: '04141234567',
payer_bank: '0102',
otp: '12345678',
idempotency_key: 'collect-2026-07-07-a'
})
};
fetch('https://api.qbank.cl/platform/v1/payins/collect', 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/payins/collect",
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([
'method' => 'c2p',
'amount' => '1200.00',
'description' => 'Order 5512',
'payer_document' => 'V12345678',
'payer_phone' => '04141234567',
'payer_bank' => '0102',
'otp' => '12345678',
'idempotency_key' => 'collect-2026-07-07-a'
]),
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/payins/collect"
payload := strings.NewReader("{\n \"method\": \"c2p\",\n \"amount\": \"1200.00\",\n \"description\": \"Order 5512\",\n \"payer_document\": \"V12345678\",\n \"payer_phone\": \"04141234567\",\n \"payer_bank\": \"0102\",\n \"otp\": \"12345678\",\n \"idempotency_key\": \"collect-2026-07-07-a\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.qbank.cl/platform/v1/payins/collect")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"method\": \"c2p\",\n \"amount\": \"1200.00\",\n \"description\": \"Order 5512\",\n \"payer_document\": \"V12345678\",\n \"payer_phone\": \"04141234567\",\n \"payer_bank\": \"0102\",\n \"otp\": \"12345678\",\n \"idempotency_key\": \"collect-2026-07-07-a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/payins/collect")
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/json'
request.body = "{\n \"method\": \"c2p\",\n \"amount\": \"1200.00\",\n \"description\": \"Order 5512\",\n \"payer_document\": \"V12345678\",\n \"payer_phone\": \"04141234567\",\n \"payer_bank\": \"0102\",\n \"otp\": \"12345678\",\n \"idempotency_key\": \"collect-2026-07-07-a\"\n}"
response = http.request(request)
puts response.read_body{
"payin_id": "7b3c9e2f-1a2b-3c4d-5e6f-7a8b9c0d1e2f",
"account_id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"kind": "collect",
"country": "VE",
"currency": "VES",
"method": "c2p",
"local_amount": "1200.00",
"status": "credited",
"reference": "REF-102030",
"fx_rate": "36.50",
"usdt_gross": "32.876712",
"fee": "0.300000",
"usdt_credited": "32.576712",
"paid": true,
"provider_reference": "PRV-889911",
"status_code": "00",
"status_message": "approved",
"created_at": "2026-07-07T12:00:00Z",
"updated_at": "2026-07-07T12:00:02Z"
}{
"error": "invalid_request",
"message": "method is required (e.g. c2p, debito_inmediato)"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "account_blocked",
"message": "account is not active"
}{
"error": "core_unavailable",
"message": "could not execute the collection"
}Authorizations
Session JWT (from register/login) or API key (pk_...).
X-API-Key: <token> is accepted as an alternative header.
Headers
Alternative to the idempotency_key body field.
Body
Collection method (e.g. c2p, debito_inmediato).
Local amount as a positive decimal string.
Required — a collect executes a real charge; retries with the same key never re-charge.
Response
Collection result. paid: true means the deposit was credited.
Present only when the payin is failed on active collections: where the rejection originated (provider = the payer's bank, core = pre-charge validation) plus the concrete code and message.
Show child attributes
Show child attributes