Listar de Carteiras (Wallets)
A listagem de carteiras retornará todas as carteiras que se enquadrarem nos query parameters enviados na request.
Request
ENDPOINT
/walletsMÉTODO
GETQuery Parameters
Campo | Tipo | Descrição | Caracteres |
---|---|---|---|
owner_document_number | string | CPF/CNPJ do proprietário da carteira | 11-14 |
wallet_status | string | Status da carteira para filtrar | Enumeradores wallet_status |
page | integer | Número da página para paginação | - |
page_size | integer | Quantidade de itens por página | - |
Validações
- Paginação: Valores de página e tamanho devem ser inteiros válidos
- Tamanho da página: Máximo de 100 itens por página
Enumeradores wallet_status
Enumerador | Descrição |
---|---|
pending_analysis | Carteira pendente de análise KYC |
active | Carteira ativa e disponível para uso |
rejected | Carteira rejeitada na análise KYC |
Response
STATUS
200Response Body: Lista de carteiras
{
"data": [
{
"wallet_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"owner_person_key": "ecf87b4b-fa6e-49c0-a7f0-f2cad6b42d79",
"owner_document_number": "12345678901",
"invoice_configuration": {
"closing_date_configuration": {
"type": "fixed",
"fixed_day": 15
},
"due_date_configuration": {
"type": "fixed",
"fixed_day": 20,
"offset_months": 0
},
"invoice_payment_type": "bank_slip",
"embedded_monthly_interest_percentage": 2.0,
"interest_base": "calendar_days",
"monthly_interest_percentage": 2.0,
"fine_percentage": 2.0
},
"wallet_status": "active",
"wallet_type": "default",
"created_at": "2024-01-15T10:30:00Z"
},
{
"wallet_key": "9db81efb-0ac1-5b79-0683-00b8395a9e7",
"owner_document_number": "98765432100",
"invoice_configuration": {
"closing_date_configuration": {
"type": "rule_based",
"rule": {
"day_of_week": "friday",
"occurrence": "last",
"fallback_strategy": "previous_business_day"
}
},
"due_date_configuration": {
"type": "rule_based",
"offset_months": 1,
"rule": {
"day_of_week": "monday",
"occurrence": "first",
"fallback_strategy": "next_business_day"
}
},
"invoice_payment_type": "bank_slip",
"embedded_monthly_interest_percentage": 1.5,
"interest_base": "calendar_days",
"monthly_interest_percentage": 1.5,
"fine_percentage": 2.0
},
"wallet_status": "pending_analysis",
"wallet_type": "default",
"created_at": "2024-01-14T14:45:00Z"
}
],
"pagination": {
"current_page": 1,
"rows_per_page": 100,
}
}
Response Body Params
Campo | Tipo | Descrição | Caracteres |
---|---|---|---|
data * | object array | Carteiras | Objeto wallet |
pagination * | object | Informações de paginação | Objeto pagination |
Objeto wallet
Campo | Tipo | Descrição | Caracteres |
---|---|---|---|
wallet_key * | uuidv4 | Chave única de identificação da carteira | 36 |
owner_person_key * | string | Chave de identificação do proprietário da carteira | 36 |
owner_document_number * | string | CPF/CNPJ do proprietário da carteira | 11 ou 14 |
invoice_configuration * | object | Configuração de fechamento e vencimento | Objeto invoice_configuration |
wallet_status * | string | Status atual da carteira | Enumeradores wallet_status |
wallet_type * | string | Tipo da carteira | Enumeradores wallet_type |
created_at * | string | Data de criação (formato ISO 8601 UTC) | - |
Objeto pagination
Campo | Tipo | Descrição | Caracteres |
---|---|---|---|
current_page * | integer | Página atual | - |
rows_per_page * | integer | Itens por página | - |
Enumeradores wallet_type
Enumerador | Descrição |
---|---|
default | Carteira padrão |
Objeto invoice_configuration
Campo | Tipo | Descrição | Caracteres |
---|---|---|---|
closing_date_configuration * | object | Configuração da data de fechamento da fatura | Objeto closing_date_configuration |
due_date_configuration * | object | Configuração da data de vencimento da fatura | Objeto due_date_configuration |
invoice_payment_type * | string | Tipo de pagamento da fatura | Enumeradores invoice_payment_type |
embedded_monthly_interest_percentage * | float | Percentual de juros mensais embutidos (0-100) | - |
interest_base * | string | Base de cálculo dos juros | Enumeradores interest_base |
monthly_interest_percentage * | float | Percentual de juros mensais por atraso (0-100) | - |
fine_percentage * | float | Percentual de multa por atraso (0-100) | - |
Objeto closing_date_configuration
Configuração Fixa (type: "fixed"
)
Campo | Tipo | Descrição | Caracteres |
---|---|---|---|
type * | string | Tipo de configuração (deve ser "fixed") | - |
fixed_day * | integer | Dia fixo do mês para fechamento (1-27) | - |
Configuração Baseada em Regras (type: "rule_based"
)
Campo | Tipo | Descrição | Caracteres |
---|---|---|---|
type * | string | Tipo de configuração (deve ser "rule_based") | - |
rule * | object | Regra para cálculo da data | Objeto rule (closing_date_configuration) |
Objeto rule (closing_date_configuration)
Campo | Tipo | Descrição | Caracteres |
---|---|---|---|
day_of_week * | string | Dia da semana | Enumeradores day_of_week |
occurrence * | string | Ocorrência do dia no mês | Enumeradores occurrence |
fallback_strategy * | string | Estratégia para dias não úteis | Enumeradores fallback_strategy |
Objeto due_date_configuration
Configuração Fixa (type: "fixed"
)
Campo | Tipo | Descrição | Caracteres |
---|---|---|---|
type * | string | Tipo de configuração (deve ser "fixed") | - |
offset_months * | integer | Meses de offset a partir do fechamento | - |
fixed_day * | integer | Dia fixo do mês para vencimento (2-27) | - |
Configuração Baseada em Regras (type: "rule_based"
)
Campo | Tipo | Descrição | Caracteres |
---|---|---|---|
type * | string | Tipo de configuração (deve ser "rule_based") | - |
offset_months * | integer | Meses de offset a partir do fechamento | - |
rule * | object | Regra para cálculo da data | Objeto rule (closing_date_configuration) |
Objeto rule (due_date_configuration)
Campo | Tipo | Descrição | Caracteres |
---|---|---|---|
day_of_week * | string | Dia da semana | Enumeradores day_of_week |
occurrence * | string | Ocorrência do dia no mês | Enumeradores occurrence |
fallback_strategy * | string | Estratégia para dias não úteis | Enumeradores fallback_strategy |
Enumeradores day_of_week
Enumerador | Descrição |
---|---|
monday | Segunda-feira |
tuesday | Terça-feira |
wednesday | Quarta-feira |
thursday | Quinta-feira |
friday | Sexta-feira |
saturday | Sábado |
sunday | Domingo |
Enumeradores occurrence
Enumerador | Descrição |
---|---|
first | Primeira ocorrência |
second | Segunda ocorrência |
third | Terceira ocorrência |
fourth | Quarta ocorrência |
last | Última ocorrência |
Enumeradores fallback_strategy
Enumerador | Descrição |
---|---|
next_business_day | Próximo dia útil |
previous_business_day | Dia útil anterior |
same_day | Mesmo dia |
Enumeradores invoice_payment_type
Enumerador | Descrição |
---|---|
bank_slip | Boleto bancário |
Enumeradores interest_base
Enumerador | Descrição |
---|---|
calendar_days | Dias corridos |
Error Response
STATUS
4xxResponse Body: Error
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {}
}
Código HTTPstatus | Código QIcode | Títulotitle | Descrição (eng)description | Descrição (pt-br)translation |
---|---|---|---|---|
400 | BKS000012 | Bad Request | Invalid integer value for page or size query string parameters | Valor inválido para parâmetros de página ou tamanho de página |
400 | BKS000013 | Bad Request | Invalid query wallet status | Status de consulta de carteira inválido |