通过密钥查询钱包
通过密钥查询钱包将返回特定钱包的完整详情,包括其账单配置和信用额度。
Request
ENDPOINT
/wallet/WALLET_KEYMÉTODO
GET路径参数
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
wallet_key | uuidv4 | 钱包的唯一识别密钥 | 36 |
Response
STATUS
200Response Body:钱包详情
{
"request_control_key": "f7947b9d-9be3-49d8-aca2-4b3249e5fa65",
"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",
"interest_base": "calendar_days",
"monthly_interest_percentage": 2.0,
"fine_percentage": 2.0
},
"wallet_status": "active",
"wallet_type": "default",
"wallet_limits": [
{
"wallet_limit_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"limit_type": "postpaid_credit_limit",
"limit_amount": 5000.00,
"used_limit": 0.00
}
],
"created_at": "2024-01-15T10:30:00Z"
}
响应体参数
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
wallet_key * | string | 钱包的唯一识别密钥 | 36 |
owner_person_key * | string | 钱包所有者的识别密钥 | 36 |
owner_document_number * | string | 钱包所有者的 CPF/CNPJ | 11-14 |
invoice_configuration * | object | 钱包的账单配置 | invoice_configuration 对象 |
wallet_status * | string | 钱包的当前状态 | wallet_status 枚举值 |
wallet_type * | string | 钱包类型 | wallet_type 枚举值 |
wallet_limits * | array | 钱包额度列表 | wallet_limits 对象 |
created_at * | string | 创建日期(ISO 8601 UTC 格式) | - |
invoice_configuration 对象
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
closing_date_configuration * | object | 账单结账日配置 | closing_date_configuration 对象 |
due_date_configuration * | object | 账单到期日配置 | due_date_configuration 对象 |
invoice_payment_type * | string | 账单支付类型 | invoice_payment_type 枚举值 |
interest_base | string | 利息计算基础 | interest_base 枚举值 |
monthly_interest_percentage | float | 逾期月利率(0-100) | - |
fine_percentage | float | 逾期罚款比例(0-100) | - |
信息
注意:payroll 类型的钱包不包含 interest_base、monthly_interest_percentage 和 fine_percentage 字段。
closing_date_configuration 对象
固定配置(type: "fixed")
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
type * | string | 配置类型(必须为 "fixed") | - |
fixed_day * | integer | 每月固定结账日(1-27) | - |
基于规则的配置(type: "rule_based")
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
type * | string | 配置类型(必须为 "rule_based") | - |
rule * | object | 日期计算规则 | rule 对象(closing_date_configuration) |
rule 对象(closing_date_configuration)
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
day_of_week * | string | 星期几 | day_of_week 枚举值 |
occurrence * | string | 当月第几次出现 | occurrence 枚举值 |
fallback_strategy * | string | 非工作日策略 | fallback_strategy 枚举值 |
due_date_configuration 对象
固定配置(type: "fixed")
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
type * | string | 配置类型(必须为 "fixed") | - |
offset_months * | integer | 从结账日起的月份偏移量 | - |
fixed_day * | integer | 每月固定到期日(2-27) | - |
基于规则的配置(type: "rule_based")
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
type * | string | 配置类型(必须为 "rule_based") | - |
offset_months * | integer | 从结账日起的月份偏移量 | - |
rule * | object | 日 期计算规则 | rule 对象(due_date_configuration) |
rule 对象(due_date_configuration)
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
day_of_week * | string | 星期几 | day_of_week 枚举值 |
occurrence * | string | 当月第几次出现 | occurrence 枚举值 |
fallback_strategy * | string | 非工作日策略 | fallback_strategy 枚举值 |
wallet_limits 对象
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
limit_type * | string | 额度类型 | limit_type 枚举值 |
limit_amount * | float | 总额度金额 | - |
used_limit * | float | 已用额度金额 | - |
wallet_status 枚举值
| 枚举值 | 描述 |
|---|---|
| pending_analysis | 等待 KYC 分析的钱包 |
| active | 已激活且可使用的钱包 |
| rejected | 已拒绝的钱包 |
wallet_type 枚举值
| 枚举值 | 描述 |
|---|---|
| default | 标准钱包 |
| payroll | 薪资代扣卡钱包 |
limit_type 枚举值
| 枚举值 | 描述 |
|---|---|
| postpaid_credit_limit | 后付费信用额度 |
| payroll_withdraw_limit | 工资提款额度(工资/代扣) |
薪资卡 Wallet 的额度
payroll 类型的钱包有两种不同的额度:
postpaid_credit_limit:用于消费和卡片交易的后付费信用额度payroll_withdraw_limit:工资提款(工资/代扣)的专用额度,每月自动从客户工资中扣除
day_of_week 枚举值
| 枚举值 | 描述 |
|---|---|
| monday | 星期一 |
| tuesday | 星期二 |
| wednesday | 星期三 |
| thursday | 星期四 |
| friday | 星期五 |
| saturday | 星期六 |
| sunday | 星期日 |
occurrence 枚举值
| 枚举值 | 描述 |
|---|---|
| first | 第一次出现 |
| second | 第二次出现 |
| third | 第三次出现 |
| fourth | 第四次出现 |
| last | 最后一次出现 |
fallback_strategy 枚举值
| 枚举值 | 描述 |
|---|---|
| next_business_day | 下一个工作日 |
| previous_business_day | 上一个工作日 |
| same_day | 当天 |
invoice_payment_type 枚举值
| 枚举值 | 描述 |
|---|---|
| bank_slip | 银行票据(Boleto bancário) |
interest_base 枚举值
| 枚举值 | 描述 |
|---|---|
| calendar_days | 自然日 |
wallet_limits 对象
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
wallet_limit_key * | uuidv4 | UUID v4 格式的已更新额度唯一识别密钥 | 36 |
limit_type * | string | 额度类型 | limit_type 枚举值 |
limit_amount * | float | 总额度金额 | - |
used_limit * | float | 已用额度金额 | - |
limit_type 枚举值
| 枚举值 | 描述 |
|---|---|
| postpaid_credit_limit | 后付费信用额度 |
错误响应
STATUS
4xxResponse Body: Error
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {}
}
HTTP 代码status | QI 代码code | 标题title | 描述(英文)description | 描述(葡文)translation |
|---|---|---|---|---|
| 404 | WLT000001 | Wallet Not Found | Wallet with key 8cb70dea-9fb0-4a68-9572-99a72849c8d6 not found | Carteira com chave 8cb70dea-9fb0-4a68-9572-99a72849c8d6 não encontrada |