付款单生成
<h5>简要描述</h5>
<ul>
<li>付款核销订单(如果没有生成 acp 的时候 流程按照 原先那个
1.先请求 /dms/payment/get-pay-way-tonglian
2.再请求/fin-account/biz-user<br />
)</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/dms/payment/store-account-head-confirm-order-v2</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">total_amount</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">整型</td>
<td>付款金额</td>
</tr>
<tr>
<td style="text-align: left;">receivables_type</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">整型</td>
<td>收款方式 1现金,2银行 默认2</td>
</tr>
<tr>
<td style="text-align: left;">receivables_way</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">整型</td>
<td>收款账户ID</td>
</tr>
<tr>
<td style="text-align: left;">balance_amount</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">整型</td>
<td>余额核销 默认填0</td>
</tr>
<tr>
<td style="text-align: left;">purchase_org_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">整型</td>
<td>绑定的客户ID =customer_id</td>
</tr>
<tr>
<td style="text-align: left;">purchase_type</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">整型</td>
<td>客户类型 4客户 默认4</td>
</tr>
<tr>
<td style="text-align: left;">sales_org_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">整型</td>
<td>组织ID 销售门店ID 这里的取值 比如三单同时核销 只取其中一单的参数 有个判断 根据这一单的purchase_type 判断 如果 purchase=4 取值sales_org_id 否则取值 purchase_org_id</td>
</tr>
<tr>
<td style="text-align: left;">details[]:{"id":"9541","value":"117197.63"}</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">JSON对象</td>
<td>明细数组:[{"id":"付款记录ID","value":"本次付款金额"}]</td>
</tr>
<tr>
<td style="text-align: left;">ids:9541</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">字符串</td>
<td>付款记录IDs,逗号分隔</td>
</tr>
<tr>
<td style="text-align: left;">bank_amount</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">金额</td>
<td>银行付款金额 = total_amount</td>
</tr>
<tr>
<td style="text-align: left;">rebate_balance_amount</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">金额</td>
<td>返利余额 默认填0</td>
</tr>
<tr>
<td style="text-align: left;">rebate_way</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">整型</td>
<td>返利方式 默认填0</td>
</tr>
<tr>
<td style="text-align: left;">cash_amount</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">金额</td>
<td>付现金付款额度 默认填0</td>
</tr>
<tr>
<td style="text-align: left;">dms_realname:DMS</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>DMS操作人名字 默认填 上海</td>
</tr>
<tr>
<td style="text-align: left;">is_app</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">整型</td>
<td>传值1</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
"errCode": 1000,
"errMsg": "请求成功",
"data": {
"task": {
"sales_org_id": 1,
"sales_org_name": "优配车联",
"sales_type": 1,
"purchase_org_id": 53488,
"purchase_org_name": "1-赵丹丹",
"purchase_type": 4,
"payment_id": 0,
"payment_name": "DMS",
"payment_mobile": "",
"payment_remark": "",
"order_amount": 117197.63,
"total_amount": 117197.63,
"actual_total_amount": 117197.63,
"cash_payment_way": 0,
"cash_receivables_way": 0,
"cash_amount": 0,
"bank_payment_way": 0,
"bank_receivables_way": 1132,
"bank_amount": 117197.63,
"rebate_balance_amount": 0,
"balance_amount": 0,
"online_receivables_way": 1132,
"online_amount": 117197.63,
"created_at": 1634805662,
"created_id": 0,
"created_org_id": 0,
"updated_at": 1634805662,
"updated_id": 0,
"updated_org_id": 0,
"id": 171529,
"order_sn": "REC21102100171529/*付款用到*/"
},
"taskDetails": [
{
"account_payment_id": 9541,
"account_payment_sn": "ACP19100100009541",
"payment_id": 0,
"payment_name": "DMS",
"payment_mobile": "",
"payment_remark": "",
"order_amount": "117197.63",
"submit_amount": "117197.63",
"check_amount": "0.00",
"sales_org_id": 1,
"sales_org_name": "优配车联",
"sales_type": 1,
"purchase_org_id": 53488,
"purchase_org_name": "1-赵丹丹",
"purchase_type": 4,
"current_amount": 117197.63,
"account_payment_task_id": 171529,
"account_payment_task_sn": "REC21102100171529",
"created_at": 1634805662,
"created_id": 0,
"created_org_id": 0,
"updated_at": 1634805662,
"updated_id": 0,
"updated_org_id": 0,
"id": 150071
}
]
}
}</code></pre>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>