Obtener un estado de cuenta de tarjeta
curl --request GET \
--url https://api.tupana.ai/v2/card-statements/{card_statement_id}/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.tupana.ai/v2/card-statements/{card_statement_id}/"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.tupana.ai/v2/card-statements/{card_statement_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.tupana.ai/v2/card-statements/{card_statement_id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <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.tupana.ai/v2/card-statements/{card_statement_id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.tupana.ai/v2/card-statements/{card_statement_id}/")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tupana.ai/v2/card-statements/{card_statement_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "cstm_Rb5829104736251",
"account_id": "bacc_7Hk2938475610293",
"period_end": "2026-10-25",
"due_date": "2026-11-05",
"currency": "CLP",
"total_billed": "968146.00",
"minimum_payment": "48407.00",
"check_status": "unchecked",
"check_difference": "0.00",
"total_source": "bank",
"locked_at": "2026-10-26T08:40:11Z",
"movements": [
{
"id": "cmov_Vx4810293847561",
"account_id": "bacc_7Hk2938475610293",
"company_id": "ment_3672486436546233854",
"state": "pending",
"provisional": false,
"kind": "purchase",
"transaction_date": "2026-10-14",
"post_date": "2026-10-16",
"description": "AMAZON WEB SERVICES",
"amount": "-45990.00",
"currency": "CLP",
"original_amount": null,
"original_currency": null,
"installment": {
"number": 2,
"total": 6
},
"card_last4": "2105",
"statement_id": "cstm_Rb5829104736251",
"superseded_by_id": null,
"reversal_of_id": null,
"parent_id": null,
"missing_since": null,
"needs_review": false,
"locked": true,
"created_at": "2026-10-15T09:12:03Z",
"updated_at": "2026-10-26T08:40:11Z"
}
]
}Estados de cuenta de tarjeta
Obtener un estado de cuenta de tarjeta
GET
/
card-statements
/
{card_statement_id}
/
Obtener un estado de cuenta de tarjeta
curl --request GET \
--url https://api.tupana.ai/v2/card-statements/{card_statement_id}/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.tupana.ai/v2/card-statements/{card_statement_id}/"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.tupana.ai/v2/card-statements/{card_statement_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.tupana.ai/v2/card-statements/{card_statement_id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <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.tupana.ai/v2/card-statements/{card_statement_id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.tupana.ai/v2/card-statements/{card_statement_id}/")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tupana.ai/v2/card-statements/{card_statement_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "cstm_Rb5829104736251",
"account_id": "bacc_7Hk2938475610293",
"period_end": "2026-10-25",
"due_date": "2026-11-05",
"currency": "CLP",
"total_billed": "968146.00",
"minimum_payment": "48407.00",
"check_status": "unchecked",
"check_difference": "0.00",
"total_source": "bank",
"locked_at": "2026-10-26T08:40:11Z",
"movements": [
{
"id": "cmov_Vx4810293847561",
"account_id": "bacc_7Hk2938475610293",
"company_id": "ment_3672486436546233854",
"state": "pending",
"provisional": false,
"kind": "purchase",
"transaction_date": "2026-10-14",
"post_date": "2026-10-16",
"description": "AMAZON WEB SERVICES",
"amount": "-45990.00",
"currency": "CLP",
"original_amount": null,
"original_currency": null,
"installment": {
"number": 2,
"total": 6
},
"card_last4": "2105",
"statement_id": "cstm_Rb5829104736251",
"superseded_by_id": null,
"reversal_of_id": null,
"parent_id": null,
"missing_since": null,
"needs_review": false,
"locked": true,
"created_at": "2026-10-15T09:12:03Z",
"updated_at": "2026-10-26T08:40:11Z"
}
]
}Un estado de cuenta de tarjeta por su id (
Si el estado de cuenta no existe, o la tarjeta no es de tu integración,
responde
cstm_…), con la misma forma que en
el listado más sus líneas en
movements. Cada línea es un movimiento de tarjeta
completo, con statement_id apuntando a este estado de cuenta.
curl https://api.tupana.ai/v2/card-statements/cstm_Rb5829104736251/ \
-H "Authorization: Api-Key TU_API_KEY"
{
"id": "cstm_Rb5829104736251",
"account_id": "bacc_Tc5520193847261",
"period_end": "2026-10-25",
"due_date": "2026-11-05",
"currency": "CLP",
"total_billed": "968146.00",
"minimum_payment": "48407.00",
"check_status": "ok",
"check_difference": "0.00",
"total_source": "bank",
"locked_at": "2026-10-26T08:40:11Z",
"movements": [
{
"id": "cmov_Vx4810293847561",
"account_id": "bacc_Tc5520193847261",
"company_id": "ment_3672486436546233854",
"state": "billed",
"provisional": false,
"kind": "purchase",
"transaction_date": "2026-10-14",
"post_date": "2026-10-16",
"description": "RESTAURANT LA PICADA",
"amount": "-41500.00",
"currency": "CLP",
"original_amount": null,
"original_currency": null,
"installment": null,
"card_last4": "2105",
"statement_id": "cstm_Rb5829104736251",
"superseded_by_id": null,
"reversal_of_id": null,
"parent_id": null,
"missing_since": null,
"needs_review": false,
"locked": true,
"created_at": "2026-10-15T09:12:03Z",
"updated_at": "2026-10-26T08:40:11Z"
},
{
"id": "cmov_Vx4810293847640",
"account_id": "bacc_Tc5520193847261",
"company_id": "ment_3672486436546233854",
"state": "billed",
"provisional": false,
"kind": "purchase",
"transaction_date": "2026-10-19",
"post_date": "2026-10-21",
"description": "AMAZON WEB SERVICES",
"amount": "-91342.00",
"currency": "CLP",
"original_amount": "96.40",
"original_currency": "USD",
"installment": null,
"card_last4": "2105",
"statement_id": "cstm_Rb5829104736251",
"superseded_by_id": null,
"reversal_of_id": null,
"parent_id": null,
"missing_since": null,
"needs_review": false,
"locked": true,
"created_at": "2026-10-20T09:03:51Z",
"updated_at": "2026-10-26T08:40:11Z"
}
]
}
404.Authorizations
Response
Estado de cuenta con sus líneas
Un estado de cuenta con sus líneas.
