申请退券
商户可以通过该接口为已核销的券申请退券
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
coupon_code | string | 券code |
stock_id | string | 批次号 |
return_request_no | string | 退券请求单据号 |
php
$instance->v3->marketing->busifavor->coupons->return->postAsync([
'json' => [
'coupon_code' => 'sxxe34343434',
'stock_id' => '1234567891',
'return_request_no' => '1002600620019090123143254436',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/marketing/busifavor/coupons/return')->postAsync([
'json' => [
'coupon_code' => 'sxxe34343434',
'stock_id' => '1234567891',
'return_request_no' => '1002600620019090123143254436',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/busifavor/coupons/return']->postAsync([
'json' => [
'coupon_code' => 'sxxe34343434',
'stock_id' => '1234567891',
'return_request_no' => '1002600620019090123143254436',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->busifavor->coupons->return->post([
'json' => [
'coupon_code' => 'sxxe34343434',
'stock_id' => '1234567891',
'return_request_no' => '1002600620019090123143254436',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/busifavor/coupons/return')->post([
'json' => [
'coupon_code' => 'sxxe34343434',
'stock_id' => '1234567891',
'return_request_no' => '1002600620019090123143254436',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/busifavor/coupons/return']->post([
'json' => [
'coupon_code' => 'sxxe34343434',
'stock_id' => '1234567891',
'return_request_no' => '1002600620019090123143254436',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
wechatpay_return_time | string | 微信退券成功的时间 |
参阅 官方文档