创建支付工具
创建支付工具允许为现有钱包注册新的支付方式(如后付费卡)。
Request
ENDPOINT
/wallet/WALLET_KEY/payment_instrumentMÉTODO
POST路径参数
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
wallet_key | uuidv4 | UUID v4 格式的钱包唯一密钥 | 36 |
Request Body
{
"request_control_key": "f7947b9d-9be3-49d8-aca2-4b3249e5fa65",
"owner": {
"person_type": "natural",
"name": "João Silva",
"document_number": "12345678901",
"birthdate": "1990-01-01",
"email": "joao.silva@email.com",
"phone": {
"number": "99999999",
"area_code": "11",
"country_code": "55"
},
"address": {
"street": "Rua das Flores",
"number": "123",
"neighborhood": "Centro",
"postal_code": "01234567",
"city": "São Paulo",
"state": "SP",
"complement": "Apto 1"
}
},
"payment_instrument_type": "postpaid_card",
"limit_amount": 2000.00,
"postpaid_card_data": {
"card_type": "physical",
"card_name": "Cartão Principal",
"printed_name": "JOAO SILVA",
"cvv_rotation_interval_hours": 24,
"contactless_enabled": true,
"delivery_address": {
"street": "Rua das Flores",
"number": "123",
"neighborhood": "Centro",
"postal_code": "01234567",
"city": "São Paulo",
"state": "SP",
"complement": "Apto 1"
}
}
}
请求体参数
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
request_control_key | uuidv4 | 客户端使用的请求唯一识别密钥 | 36 |
owner | object | 工具所有人信息(个人或法人) | owner 对象 |
person_key | string | UUID v4 格式的人员唯一识别密钥 | 36 |
payment_instrument_type * | string | 支付工具类型 | payment_instrument_type 枚举值 |
limit_amount | float | 工具信用额度(必须小于或等于钱包额度) | - |
postpaid_card_data | object | 后付费卡的特定数据 | postpaid_card_data 对象 |
条件字段
owner:未发送person_key时为必填person_key:未发送owner时为必填postpaid_card_data:payment_instrument_type为 "postpaid_card" 时为必填owner和person_key字段互斥
额度验证
limit_amount非必填- 填写时不得超过钱包的后付费信用额度
- 未填写时,工具将使用钱包的全部额度
owner 对象
个人(person_type: "natural")
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
person_type * | string | 人员类型(必须为 "natural") | - |
name * | string | 姓名全称 | 100 |
document_number * | string | CPF(仅数字) | 11 |
birthdate * | string | 出生日期(YYYY-MM-DD 格式) | 10 |
email * | string | 联系邮箱 | 254 |
phone * | object | 联系电话 | phone 对象 |
address * | object | 完整地址 | address 对象 |
法人(person_type: "legal")
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
person_type * | string | 人员类型(必须为 "legal") | - |
name * | string | 公司法定名称 | 100 |
trading_name * | string | 公司商号 | 100 |
document_number * | string | CNPJ(仅数字) | 14 |
foundation_date * | string | 成立日期(YYYY-MM-DD 格式) | 10 |
email * | string | 联系邮箱 | 254 |
phone * | object | 联系电话 | phone 对象 |
address * | object | 完整地址 | address 对象 |
legal_representatives * | array | 法定代表人列表(自然人) | - |
phone 对象
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
country_code * | string | 国家代码(DDI) | 2-3 |
area_code * | string | 区号(DDD) | 2 |
number * | string | 电话号码 | 8-9 |