创建定期付款(旅程 1)
旅程 1 — 无 QR 码(应用内通知)
概述
是什么
直接在付款人银行应用内请求授权,无需扫描 QR 码。
适用场景
主动联系(电话、聊天、面对面)或已有客户关系。
如何运作
接收方使用付款人账户数据创建定期付款 → 付款人在应用内收到通知 → 批准定期付款 → 可安排未来收费。
优势
简单直接的体验;无需展示 QR 码。
请求
ENDPOINT
/account/account_key/outgoing_recurrence/journey_one方法
POST请求 Path Params
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
account_key * | uuid4 | 账户的唯一标识键。 | 36 |
Request Body
Request Body: 创建定期付款(旅程 1)
{
"request_control_key": "98fc62fd-b0a0-4604-9bea-475e91a9dc82",
"periodicity": "monthly",
"minimum_recurrence_amount": 125,
"start_date": "2025-06-10",
"end_date": "2027-06-10",
"pix_message": "Conta de Luz Residencial nº123",
"recurrence_type": "variable_amount",
"debtor_data": {
"name": "Sebastião",
"email": "sebastiao@test.com",
"document_number": "05431134850",
"contract_id": "Contrato de pagamento recorrente",
"address": {
"street": "Av. Brigadeiro Faria Lima",
"state": "SP",
"city": "São Paulo",
"neighborhood": "Jardim Paulistano",
"number": "2391",
"postal_code": "01452905",
"complement": "Complemento"
},
"account_data": {
"account_number": "123456",
"account_digit": "7",
"account_branch": "0001",
"ispb": "31872495"
}
},
"retry_configuration": {
"retry_allowed": true,
"retry_rule": {
"first_retry": {"day": "1"},
"second_retry": {"day": "3"},
"third_retry": {"day": "4"}
}
},
"settlement_date_type": "workdays"
}
Body Params
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
request_control_key * | uuid | 客户端使用的 uuid4 格式请求唯一标识键。 | 36 |
periodicity * | enumerator | 与订阅定期付款关联的周期类型。 | Enumeradores periodicity |
minimum_recurrence_amount | number | 可变金额定期付款的最低交易金额(以分为单位)。 | - |
start_date * | string | 定期付款开始日期(ISO 8601 格式,如 "2025-07-01")。 | - |
end_date | string | 定期付款结束日期;无限期情况发送 null。 | - |
pix_message * | string | 随 Pix 交易一起发送的消息。 | 140 |
debtor_data * | Object | 债务人(订阅者)数据。 | Objeto debtor_data |
retry_configuration * | Object | 未完成交易的重试配置。 | Objeto retry_configuration |
settlement_date_type * | enumerator | 结算日期调整类型。 | Enumeradores settlement_date_type |
recurrence_type * | enumerator | 定期付款类型。 | Enumeradores recurrence_type |
注意
minimum_recurrence_amount 字段为可选字段,仅适用于可变金额定期付款。若为固定金额定期付款,应发送 recurrence_amount 字段及定期付款金额。recurrence_type 枚举值也应与定期付款类型(固定金额或可变金额)对应。
Enumeradores periodicity
| 枚举值 | 描述 |
|---|---|
weekly | 每周定期 |
monthly | 每月定期 |
quarterly | 每季定期 |
semiannual | 每半年定期 |
annual | 每年定期 |
Enumeradores settlement_date_type
| 枚举值 | 描述 |
|---|---|
workdays | 工作日 |
calendar_days | 日历天数 |
Enumeradores recurrence_type
| 枚举值 | 描述 |
|---|---|
fixed_amount | 固定金额定期付款 |
variable_amount | 可变金额定期付款 |
Objeto debtor_data
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
name * | string | 订阅者姓名。 | 50 |
email * | string | 订阅者电子邮件。 | 100 |
document_number * | string | 订阅者 CPF 或 CNPJ。 | 14 |
contract_id | string | 订阅者合同标识符。 | 100 |
address * | Object | 订阅者地址。 | Objeto address |
account_data * | Object | 订阅者银行数据。 | Objeto account_data |
Objeto address
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
street | string | 街道。 | - |
state | string | 州。 | - |
city | string | 城市。 | - |
neighborhood | string | 街区。 | - |
number | string | 门牌号。 | - |
postal_code | string | 邮政编码。 | - |
complement | string | 补充信息。 | - |
Objeto account_data
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
account_number | string | 账户号码。 | - |
account_digit | string | 账户校验位。 | - |
account_branch | string | 账户支行。 | - |
ispb | string | 金融机构 ISPB。 | - |
Objeto retry_configuration
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
retry_allowed | boolean | 是否允许重试。 | - |
retry_rule | Object | 重试规则。 | Objeto retry_rule |
Objeto retry_rule
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
first_retry | Object | 第 1 次重试配置。 | Objeto retry_detail |
second_retry | Object | 第 2 次重试配置。 | Objeto retry_detail |
third_retry | Object | 第 3 次重试配置。 | Objeto retry_detail |
Objeto retry_detail
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
day | string | 重试日期。 | - |
响应
STATUS
200Response Body
{
"request_control_key": "a7b9e3c1-f2d4-4a8b-9c7e-123456789abc",
"recurrence_key": "b2c3d4e5-f6g7-4h8i-9j0k-l1m2n3o4p5q6",
"recurrence_status": "pending_confirmation",
"created_at": "2025-06-16T23:52:00.000Z"
}
Response Body
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
request_control_key | uuid | 客户端发送的请求控制键。 | 36 |
recurrence_key | uuid | 订阅定期付款的唯一标识键。 | 36 |
recurrence_status | enumerator | 定期付款的当前状态。 | Enumeradores recurrence_status |
created_at | string | 定期付款创建的日期和时间(ISO 8601 格式)。 | - |
Enumeradores recurrence_status
| 枚举值 | 描述 |
|---|---|
pending_confirmation | 定期付款待确认 |
active | 定期付款已激活 |
cancelled | 定期付款已取消 |
suspended | 定期付款已暂停 |
expired | 定期付款已到期 |
STATUS
4XXResponse Error
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em português",
"code": "codigo"
}
| HTTP 状态码 | QI 代码code | 标题title | 描述(英文)description | 描述(葡文)translation |
|---|---|---|---|---|
| 400 | QIT000002 | Bad Request | Invalid request schema. | Erro no esquema da requisição. |
| 403 | APX000030 | Unauthorized Transaction | User is not authorized to create this recurrence. | Usuário não autorizado a criar esta recorrência. |
| 403 | APX000018 | Endpoint Access Denied | Requester lacks permission to access this endpoint. | Requester não possui permissão para acessar este endpoint. |
| 404 | APX000021 | Subscription Not Found | Subscription {subscription_key} not found. | Assinatura {subscription_key} não encontrada. |
| 404 | APX000002 | Recurrence Not Found | Recurrence {recurrence_key} not found. | Recorrência {recurrence_key} não encontrada. |
| 406 | APX000027 | Invalid Transaction Amount | Transaction amount {minimum_transaction_amount} is invalid. | Valor da transação {minimum_transaction_amount} é inválido. |
| 409 | APX000014 | Request Control Key Conflict | The request_control_key {request_control_key} is already in use. | A request_control_key {request_control_key} já está em uso. |