分账标记
商户在下单之前,调用该API来标记该笔商户订单后续会使用资金分账功能,在支付完成后该笔订单款项会被冻结在商户账户中,等待商户的分账指令或解冻剩余资金指令来执行资金的分发。
请求参数 | 类型 | 描述 |
---|---|---|
base_uri | string | 声明接入点https://apihk.mch.weixin.qq.com/ (香港接入) |
json | object | 声明请求的JSON 数据结构 |
sub_mchid | string | 二级商户号 |
out_trade_no | string | 商户订单号 |
currency | string | 订单标价币种 |
php
$instance->v3->global->profitSharing->transactions->mark->postAsync([
'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
'json' => [
'sub_mchid' => '1900000109',
'out_trade_no' => 'P20150806125346',
'currency' => 'CNY',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/global/profit-sharing/transactions/mark')->postAsync([
'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
'json' => [
'sub_mchid' => '1900000109',
'out_trade_no' => 'P20150806125346',
'currency' => 'CNY',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/global/profit-sharing/transactions/mark']->postAsync([
'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
'json' => [
'sub_mchid' => '1900000109',
'out_trade_no' => 'P20150806125346',
'currency' => 'CNY',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->global->profitSharing->transactions->mark->post([
'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
'json' => [
'sub_mchid' => '1900000109',
'out_trade_no' => 'P20150806125346',
'currency' => 'CNY',
],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/global/profit-sharing/transactions/mark')->post([
'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
'json' => [
'sub_mchid' => '1900000109',
'out_trade_no' => 'P20150806125346',
'currency' => 'CNY',
],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/global/profit-sharing/transactions/mark']->post([
'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
'json' => [
'sub_mchid' => '1900000109',
'out_trade_no' => 'P20150806125346',
'currency' => 'CNY',
],
]);
print_r($response->getStatusCode() === 204);
返回字典 | 类型 | 描述 |
---|---|---|
空字符串(无返回内容) |
参阅 官方文档