暂停代金券批次
通过此接口可暂停指定代金券批次。暂停后,该代金券批次暂停发放,用户无法通过任何渠道再领取该批次的券。
请求参数 | 类型 | 描述 |
---|---|---|
stock_id | string | 批次号 |
json | object | 声明请求的JSON 数据结构 |
stock_creator_mchid | string | 创建批次的商户号 |
php
$instance->v3->marketing->favor->stocks->_stock_id_->pause->postAsync([
'stock_id' => '',
'json' => [
'stock_creator_mchid' => '8956000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/marketing/favor/stocks/{stock_id}/pause')->postAsync([
'stock_id' => '',
'json' => [
'stock_creator_mchid' => '8956000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/favor/stocks/{stock_id}/pause']->postAsync([
'stock_id' => '',
'json' => [
'stock_creator_mchid' => '8956000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->favor->stocks->_stock_id_->pause->post([
'stock_id' => '',
'json' => [
'stock_creator_mchid' => '8956000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/favor/stocks/{stock_id}/pause')->post([
'stock_id' => '',
'json' => [
'stock_creator_mchid' => '8956000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/favor/stocks/{stock_id}/pause']->post([
'stock_id' => '',
'json' => [
'stock_creator_mchid' => '8956000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
pause_time | string | 暂停时间 |
stock_id | string | 批次号 |
参阅 官方文档