curl --request GET \
--url https://api.despezzas.com/v1/credit-card \
--header 'Authorization: Basic <encoded-value>'const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.despezzas.com/v1/credit-card', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.despezzas.com/v1/credit-card"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.despezzas.com/v1/credit-card"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}[
{
"account_id": "3a9e7d21-4b5c-4d6e-8f70-1a2b3c4d5e6f",
"closing_date": "3",
"connection": {
"bank_name": "Nubank",
"id": "f7a8b9c0-d1e2-4f3a-8b4c-5d6e7f8a9b0c",
"status": "CONNECTED",
"bank_icon": "https://cdn.despezzas.com/banks/nubank.png",
"import_date": "2026-09-01T09:00:00.000Z",
"last_update": "2026-09-15T14:32:10.000Z",
"need_update": false
},
"expiring_date": "10",
"id": "c4d5e6f7-0a1b-4c2d-9e3f-4a5b6c7d8e9f",
"logo": "https://cdn.despezzas.com/banks/nubank.png",
"name": "Nubank Mastercard",
"user_id": "0d6b923c-3392-424e-a152-2ee32474e8d5",
"available_limit": 1315000,
"createdAt": "2026-09-01T09:00:00.000Z",
"is_unlimited": false,
"last_synced_at": null,
"limit": 1500000,
"need_update": false,
"needs_closing_date_review": false,
"profile_id": null,
"sync_count": 0,
"sync_limit": 3,
"syncs_remaining": 3,
"updatedAt": "2026-09-15T14:32:10.000Z"
}
]{
"message": "Credenciais de API inválidas",
"statusCode": 401,
"error": "Unauthorized"
}{
"message": "Credenciais de API inválidas",
"statusCode": 401,
"error": "Unauthorized"
}{
"message": "Credenciais de API inválidas",
"statusCode": 401,
"error": "Unauthorized"
}Listar cartões
Escopo necessário: read.
curl --request GET \
--url https://api.despezzas.com/v1/credit-card \
--header 'Authorization: Basic <encoded-value>'const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.despezzas.com/v1/credit-card', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.despezzas.com/v1/credit-card"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.despezzas.com/v1/credit-card"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}[
{
"account_id": "3a9e7d21-4b5c-4d6e-8f70-1a2b3c4d5e6f",
"closing_date": "3",
"connection": {
"bank_name": "Nubank",
"id": "f7a8b9c0-d1e2-4f3a-8b4c-5d6e7f8a9b0c",
"status": "CONNECTED",
"bank_icon": "https://cdn.despezzas.com/banks/nubank.png",
"import_date": "2026-09-01T09:00:00.000Z",
"last_update": "2026-09-15T14:32:10.000Z",
"need_update": false
},
"expiring_date": "10",
"id": "c4d5e6f7-0a1b-4c2d-9e3f-4a5b6c7d8e9f",
"logo": "https://cdn.despezzas.com/banks/nubank.png",
"name": "Nubank Mastercard",
"user_id": "0d6b923c-3392-424e-a152-2ee32474e8d5",
"available_limit": 1315000,
"createdAt": "2026-09-01T09:00:00.000Z",
"is_unlimited": false,
"last_synced_at": null,
"limit": 1500000,
"need_update": false,
"needs_closing_date_review": false,
"profile_id": null,
"sync_count": 0,
"sync_limit": 3,
"syncs_remaining": 3,
"updatedAt": "2026-09-15T14:32:10.000Z"
}
]{
"message": "Credenciais de API inválidas",
"statusCode": 401,
"error": "Unauthorized"
}{
"message": "Credenciais de API inválidas",
"statusCode": 401,
"error": "Unauthorized"
}{
"message": "Credenciais de API inválidas",
"statusCode": 401,
"error": "Unauthorized"
}Authorizations
HTTP Basic com o token como usuário e o secret como senha: curl -u dpz_tk_…:dpz_sk_…. Crie a chave em https://despezzas.com/settings/api-keys.
Response
Sucesso.
Conta de pagamento.
"3a9e7d21-4b5c-4d6e-8f70-1a2b3c4d5e6f"
Dia do fechamento (1–31).
"3"
Conexão Open Finance, ou null em cartões manuais.
Show child attributes
Show child attributes
Dia do vencimento (1–31).
"10"
Id do cartão.
"c4d5e6f7-0a1b-4c2d-9e3f-4a5b6c7d8e9f"
Bandeira/logo (URL).
"https://cdn.despezzas.com/banks/nubank.png"
Nome.
"Nubank Mastercard"
Dono.
"0d6b923c-3392-424e-a152-2ee32474e8d5"
Limite disponível. Em centavos.
1315000
Criação.
"2026-09-01T09:00:00.000Z"
Sem limite definido.
false
Última sincronização (Open Finance).
null
Limite total. Em centavos.
1500000
Só presente quando há conexão.
false
Se o dia de fechamento importado precisa de confirmação.
false
Perfil de Acesso / empresa.
null
Sincronizações manuais usadas hoje.
0
Limite diário de sincronizações manuais.
3
Sincronizações manuais restantes hoje.
3
Última alteração.
"2026-09-15T14:32:10.000Z"