Cancel a card
curl --request POST \
--url https://api.qbank.cl/platform/v1/cards/{cardID}/cancel \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.qbank.cl/platform/v1/cards/{cardID}/cancel"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.qbank.cl/platform/v1/cards/{cardID}/cancel', 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/cards/{cardID}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.qbank.cl/platform/v1/cards/{cardID}/cancel"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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/cards/{cardID}/cancel")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/cards/{cardID}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"card_id": "3c2b1a09-8d7e-6f5a-4b3c-2d1e0f9a8b7c",
"account_id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"physical": false,
"cardholder_kind": "account",
"status": "cancelled",
"limits": {},
"created_at": "2026-07-08T12:00:00Z",
"updated_at": "2026-07-09T10:00:00Z",
"cancellation_fee": "1.000000"
}{
"error": "insufficient_funds",
"message": "account balance is not enough for this operation"
}{
"error": "not_found",
"message": "resource not found"
}Cancel a card
Cancels the card permanently (irreversible). Bills the card_cancellation fee when configured (0 = free); refunded if the cancellation fails upstream.
POST
/
v1
/
cards
/
{cardID}
/
cancel
Cancel a card
curl --request POST \
--url https://api.qbank.cl/platform/v1/cards/{cardID}/cancel \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.qbank.cl/platform/v1/cards/{cardID}/cancel"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.qbank.cl/platform/v1/cards/{cardID}/cancel', 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/cards/{cardID}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.qbank.cl/platform/v1/cards/{cardID}/cancel"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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/cards/{cardID}/cancel")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/cards/{cardID}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"card_id": "3c2b1a09-8d7e-6f5a-4b3c-2d1e0f9a8b7c",
"account_id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"physical": false,
"cardholder_kind": "account",
"status": "cancelled",
"limits": {},
"created_at": "2026-07-08T12:00:00Z",
"updated_at": "2026-07-09T10:00:00Z",
"cancellation_fee": "1.000000"
}{
"error": "insufficient_funds",
"message": "account balance is not enough for this operation"
}{
"error": "not_found",
"message": "resource not found"
}Authorizations
Session JWT (from register/login) or API key (pk_...).
X-API-Key: <token> is accepted as an alternative header.
Path Parameters
Response
Cancelled card.
Available options:
account, person Available options:
pending_activation, active, frozen, cancelled Balance the card's purchases spend from. USDT/USDC 1:1 with the USD; BTC/GOLD/SILVER/PLATINUM converted at the price of the moment of each event. Changing it only affects future purchases.
Available options:
USD, USDT, USDC, BTC, GOLD, SILVER, PLATINUM Spending limits, always measured in USD regardless of the spending asset.
Show child attributes
Show child attributes