关联订单信息
将有效态(未核销)的商家券与订单信息关联,用于后续参与摇奖&返佣激励等操作的统计。
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
stock_id | string | 批次号 |
coupon_code | string | 券code |
out_trade_no | string | 关联的商户订单号 |
out_request_no | string | 商户请求单号 |
php
$instance->v3->marketing->busifavor->coupons->associate->postAsync([
'json' => [
'stock_id' => '',
'coupon_code' => '',
'out_trade_no' => '',
'out_request_no' => '',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/marketing/busifavor/coupons/associate')->postAsync([
'json' => [
'stock_id' => '',
'coupon_code' => '',
'out_trade_no' => '',
'out_request_no' => '',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/busifavor/coupons/associate']->postAsync([
'json' => [
'stock_id' => '',
'coupon_code' => '',
'out_trade_no' => '',
'out_request_no' => '',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->busifavor->coupons->associate->post([
'json' => [
'stock_id' => '',
'coupon_code' => '',
'out_trade_no' => '',
'out_request_no' => '',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/busifavor/coupons/associate')->post([
'json' => [
'stock_id' => '',
'coupon_code' => '',
'out_trade_no' => '',
'out_request_no' => '',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/busifavor/coupons/associate']->post([
'json' => [
'stock_id' => '',
'coupon_code' => '',
'out_trade_no' => '',
'out_request_no' => '',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
wechatpay_associate_time | string | 关联成功时间 |
参阅 官方文档