Snabber · Schema

CreditCardInvoice

FintechPersonal FinanceOpen FinanceArtificial IntelligenceBrazil

Properties

Name Type Description
account string
cycle object
source string pluggy_bill = total real do emissor; manual_bill = fatura de cartão manual marcada como paga (total congelado no pagamento); estimated_payment_date = estimativa local por data de pagamento
bill object Dados da fatura real; null quando source é estimated_payment_date
categories array
total number Total da fatura, incluindo as categorias ignorable
ignored_total number Parte do total nas categorias ignorable
effective_total number total - ignored_total: o gasto pessoal efetivo da fatura
transaction_count integer
meta object
View JSON Schema on GitHub

JSON Schema

snabber-com-br-credit-card-invoice-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/snabber-com-br/json-schema/snabber-com-br-credit-card-invoice-schema.json",
  "title": "CreditCardInvoice",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/snabber-com-br-openapi.json#/components/schemas/CreditCardInvoice",
  "type": "object",
  "properties": {
    "account": {
      "type": "string"
    },
    "cycle": {
      "type": "object",
      "properties": {
        "month": {
          "type": "string"
        },
        "closing_day": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Dia do mês em que o ciclo fecha, configurado na conta"
        },
        "due_day": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Dia do mês do vencimento, configurado na conta"
        }
      }
    },
    "source": {
      "type": "string",
      "enum": [
        "pluggy_bill",
        "manual_bill",
        "estimated_payment_date"
      ],
      "description": "pluggy_bill = total real do emissor; manual_bill = fatura de cartão manual marcada como paga (total congelado no pagamento); estimated_payment_date = estimativa local por data de pagamento"
    },
    "bill": {
      "description": "Dados da fatura real; null quando source é estimated_payment_date",
      "oneOf": [
        {
          "$ref": "#/$defs/CreditCardBill"
        },
        {
          "type": "null"
        }
      ]
    },
    "categories": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CreditCardInvoiceCategory"
      }
    },
    "total": {
      "type": "number",
      "description": "Total da fatura, incluindo as categorias ignorable"
    },
    "ignored_total": {
      "type": "number",
      "description": "Parte do total nas categorias ignorable"
    },
    "effective_total": {
      "type": "number",
      "description": "total - ignored_total: o gasto pessoal efetivo da fatura"
    },
    "transaction_count": {
      "type": "integer"
    },
    "meta": {
      "type": "object",
      "properties": {
        "workspace_id": {
          "type": "integer"
        }
      }
    }
  },
  "$defs": {
    "CreditCardBill": {
      "type": "object",
      "description": "Fatura de cartão: do emissor via Open Finance (`source` pluggy/plaid) ou de cartão manual (`source` manual).",
      "properties": {
        "source": {
          "type": "string",
          "enum": [
            "pluggy",
            "plaid",
            "manual"
          ],
          "description": "pluggy/plaid = fatura real do emissor; manual = cartão manual, total somado pelo Snabber (id `manual:<conta>:<YYYY-MM>`)"
        },
        "id": {
          "type": "string",
          "description": "Identificador da fatura na instituição. Casa com `bill_id` das transações em /v1/transactions — é o vínculo transação↔fatura mais confiável. Opaco: não presuma formato"
        },
        "account_id": {
          "type": "integer"
        },
        "account": {
          "type": "string"
        },
        "cycle_month": {
          "type": "string",
          "description": "Mês de vencimento — a chave que identifica a fatura"
        },
        "closing_month": {
          "type": "string",
          "description": "Mês de FECHAMENTO do ciclo (\"YYYY-MM\"). Casa com `bill_forecast_date` das transações. Distinto de `cycle_month` (vencimento): quando o dia de vencimento é anterior ao de fechamento, o vencimento cai no mês seguinte"
        },
        "due_date": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "closing_date": {
          "type": [
            "string",
            "null"
          ],
          "format": "date",
          "description": "null enquanto a fatura não fechou"
        },
        "is_closed": {
          "type": "boolean"
        },
        "total_amount": {
          "type": [
            "number",
            "null"
          ],
          "description": "Valor total cobrado pelo emissor"
        },
        "currency_code": {
          "type": [
            "string",
            "null"
          ]
        },
        "minimum_payment_amount": {
          "type": [
            "number",
            "null"
          ]
        },
        "finance_charges_total": {
          "type": [
            "number",
            "null"
          ],
          "description": "Soma dos encargos/juros reportados"
        },
        "allows_installments": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "payment_status": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "paid",
            "partial",
            "open",
            "due",
            "no_charge",
            "unknown",
            null
          ],
          "description": "paid = quitada, partial = paga parcialmente, open = ainda aberta, due = fechada e a vencer, no_charge = sem cobrança, unknown = sem evidência de pagamento"
        },
        "paid_amount": {
          "type": [
            "number",
            "null"
          ]
        },
        "paid_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "payment_mode": {
          "type": [
            "string",
            "null"
          ]
        },
        "payment_value_type": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "CreditCardInvoiceCategory": {
      "type": "object",
      "properties": {
        "category": {
          "type": "string"
        },
        "total": {
          "type": "number",
          "description": "Soma das despesas da categoria nessa fatura, positiva"
        },
        "count": {
          "type": "integer"
        },
        "ignorable": {
          "type": "boolean",
          "description": "true para cobranças reais que não contam como gasto pessoal (Ignorado, Pagamento de Cartão de Crédito, Investimentos, Transferências Entre Contas Próprias, e as subcategorias delas)"
        },
        "subcategories": {
          "type": "array",
          "description": "Só com group_by=category_parent e quando alguma subcategoria teve gasto: o gasto de cada subcategoria, já incluído em `total`. `total` menos a soma delas é o que foi lançado direto na categoria principal.",
          "items": {
            "type": "object",
            "properties": {
              "category": {
                "type": "string"
              },
              "total": {
                "type": "number"
              },
              "count": {
                "type": "integer"
              }
            }
          }
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/snabber-com-br-credit-card-invoice"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.