锁定品牌加价购活动资格
指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
order_information | object | 订单信息 |
payer_openid | string | 支付订单的微信用户OpenID |
out_trade_no | string | 商户订单号 |
total_fee | number | 订单总金额 |
store_id | string | 门店ID |
store_merchant_id | string | 门店商户号 |
qualification_ids | string[] |
php
$instance->v3->marketing->goodsSubsidyActivity->qualification->lock->postAsync([
'json' => [
'order_information' => [
'payer_openid' => '',
'out_trade_no' => '',
'total_fee' => 0,
'store_id' => '',
'store_merchant_id' => '',
],
'qualification_ids' => ['string'],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/marketing/goods-subsidy-activity/qualification/lock')->postAsync([
'json' => [
'order_information' => [
'payer_openid' => '',
'out_trade_no' => '',
'total_fee' => 0,
'store_id' => '',
'store_merchant_id' => '',
],
'qualification_ids' => ['string'],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/goods-subsidy-activity/qualification/lock']->postAsync([
'json' => [
'order_information' => [
'payer_openid' => '',
'out_trade_no' => '',
'total_fee' => 0,
'store_id' => '',
'store_merchant_id' => '',
],
'qualification_ids' => ['string'],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->goodsSubsidyActivity->qualification->lock->post([
'json' => [
'order_information' => [
'payer_openid' => '',
'out_trade_no' => '',
'total_fee' => 0,
'store_id' => '',
'store_merchant_id' => '',
],
'qualification_ids' => ['string'],
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/goods-subsidy-activity/qualification/lock')->post([
'json' => [
'order_information' => [
'payer_openid' => '',
'out_trade_no' => '',
'total_fee' => 0,
'store_id' => '',
'store_merchant_id' => '',
],
'qualification_ids' => ['string'],
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/goods-subsidy-activity/qualification/lock']->post([
'json' => [
'order_information' => [
'payer_openid' => '',
'out_trade_no' => '',
'total_fee' => 0,
'store_id' => '',
'store_merchant_id' => '',
],
'qualification_ids' => ['string'],
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
return_message | string | 返回结果文案 |
failed_qualification_ids | string[] | |
succeed_qualification_ids | string[] |
参阅 官方文档