取消补差
对带有补差标识的订单,如果不需要补差,可在发起发起分账前,可调用这个接口进行取消补差。
| 请求参数 | 类型 | 描述 |
|---|---|---|
| json | object | 声明请求的JSON数据结构 |
| sub_mchid | string | 二级商户号 |
| transaction_id | string | 微信订单号 |
| description | string | 取消补差描述 |
php
$instance->v3->ecommerce->subsidies->cancel->postAsync([
'json' => [
'sub_mchid' => '1900000109',
'transaction_id' => '4208450740201411110007820472',
'description' => '订单退款',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance->chain('v3/ecommerce/subsidies/cancel')->postAsync([
'json' => [
'sub_mchid' => '1900000109',
'transaction_id' => '4208450740201411110007820472',
'description' => '订单退款',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance['v3/ecommerce/subsidies/cancel']->postAsync([
'json' => [
'sub_mchid' => '1900000109',
'transaction_id' => '4208450740201411110007820472',
'description' => '订单退款',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$response = $instance->v3->ecommerce->subsidies->cancel->post([
'json' => [
'sub_mchid' => '1900000109',
'transaction_id' => '4208450740201411110007820472',
'description' => '订单退款',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance->chain('v3/ecommerce/subsidies/cancel')->post([
'json' => [
'sub_mchid' => '1900000109',
'transaction_id' => '4208450740201411110007820472',
'description' => '订单退款',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance['v3/ecommerce/subsidies/cancel']->post([
'json' => [
'sub_mchid' => '1900000109',
'transaction_id' => '4208450740201411110007820472',
'description' => '订单退款',
],
]);
print_r(json_decode((string) $response->getBody(), true));| 返回字典 | 类型 | 描述 |
|---|---|---|
| sub_mchid | string | 二级商户号 |
| transaction_id | string | 微信订单号 |
| result | string | 取消补差结果 |
| description | string | 取消补差描述 |
参阅 官方文档