作废用户会员卡
将用户的会员卡设置为失效状态。
请求参数 | 类型 | 描述 |
---|---|---|
card_id | string | 会员卡id |
code | string | 会员卡code |
json | object | 声明请求的JSON 数据结构 |
reason | string | 失效理由 |
php
$instance->v3->marketing->membercardOpen->cards->_card_id_->codes->_code_->unavailable->postAsync([
'card_id' => 'pbLatjvWOibDc5-TBnbUk1pD12o0',
'code' => '478515832665',
'json' => [
'reason' => '用户违反会员条例',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/marketing/membercard-open/cards/{card_id}/codes/{code}/unavailable')->postAsync([
'card_id' => 'pbLatjvWOibDc5-TBnbUk1pD12o0',
'code' => '478515832665',
'json' => [
'reason' => '用户违反会员条例',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/marketing/membercard-open/cards/{card_id}/codes/{code}/unavailable']->postAsync([
'card_id' => 'pbLatjvWOibDc5-TBnbUk1pD12o0',
'code' => '478515832665',
'json' => [
'reason' => '用户违反会员条例',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->marketing->membercardOpen->cards->_card_id_->codes->_code_->unavailable->post([
'card_id' => 'pbLatjvWOibDc5-TBnbUk1pD12o0',
'code' => '478515832665',
'json' => [
'reason' => '用户违反会员条例',
],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/marketing/membercard-open/cards/{card_id}/codes/{code}/unavailable')->post([
'card_id' => 'pbLatjvWOibDc5-TBnbUk1pD12o0',
'code' => '478515832665',
'json' => [
'reason' => '用户违反会员条例',
],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/marketing/membercard-open/cards/{card_id}/codes/{code}/unavailable']->post([
'card_id' => 'pbLatjvWOibDc5-TBnbUk1pD12o0',
'code' => '478515832665',
'json' => [
'reason' => '用户违反会员条例',
],
]);
print_r($response->getStatusCode() === 204);
返回字典 | 类型 | 描述 |
---|---|---|
空字符串(无返回内容) |
参阅 官方文档