场景模拟
在 PIX 自动支付框架内模拟创建定期付款和自动付款的分步说明。这些模拟包括创建定期付款和创建预定付款。
1 - 模拟创建定期付款
请求
ENDPOINT
/mock/incoming_recurrence方法
POSTRequest Body: 固定金额定期付款
{
"request_control_key": "01585acf-b0c3-4389-baf3-a58abbe92d58",
"recurrence_type": "fixed_amount",
"transaction_amount": 100.50,
"periodicity": "monthly",
"journey_type": "journey_one",
"start_date": "2025-07-01",
"is_retry_allowed": true,
"payer_account_information": {
"owner_name": "John Doe",
"document_number": "06975239000136",
"ispb": "32402502",
"account_digit": "7",
"account_branch": "3",
"account_number": "9552432"
}
Request Body: 可变金额定期付款
{
"request_control_key": "01585acf-b0c3-4389-baf3-a58abbe92d58",
"recurrence_type": "variable_amount",
"minimum_transaction_amount": 50.00,
"periodicity": "monthly",
"journey_type": "journey_one",
"start_date": "2025-07-01",
"is_retry_allowed": true,
"payer_account_information": {
"owner_name": "John Doe",
"document_number": "06975239000136",
"ispb": "32402502",
"account_digit": "7",
"account_branch": "3",
"account_number": "9552432"}
Request Body 对象
| 字段 | 类型 | 描述 | 最大字符数 |
|---|---|---|---|
| request_control_key* | string | uuid4 格式的请求唯一标识键。 | 36 |
| recurrence_type* | string | 定期付款类型(fixed_amount 或 variable_amount)。 | 20 |
| transaction_amount | number, null | 固定金额定期付款(fixed_amount)的交易金额。 | 10 |
| minimum_transaction_amount | number, null | 可变金额定期付款(variable_amount)的最低交易金额。 | 10 |
| periodicity* | string | 定期付款的周期。 | 20 |
| journey_type* | string | 授权旅程类型。 | 50 |
| start_date* | string | 定期付款开始日期(YYYY-MM-DD 格式)。 | 10 |
| end_date | string, null | 定期付款结束日期(YYYY-MM-DD 格式)。 | 10 |
| is_retry_allowed* | boolean | 是否允许交易重试。 | - |
| payer_account_information* | object | 付款方账户数据。 | - |
| pix_message | string, null | 与交易关联的 PIX 消息。 | 140 |