通过密钥查询钱包
通过密钥查询钱包将返回特定钱包的完整详情,包括其账单配置和信用额度。
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 枚举值 |