Skip to content

锁定品牌加价购活动资格

指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。

请求参数类型描述
jsonobject声明请求的JSON数据结构
order_informationobject订单信息
payer_openidstring支付订单的微信用户OpenID
out_trade_nostring商户订单号
total_feenumber订单总金额
store_idstring门店ID
store_merchant_idstring门店商户号
qualification_idsstring[]
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_messagestring返回结果文案
failed_qualification_idsstring[]
succeed_qualification_idsstring[]

参阅 官方文档

Published on the GitHub by TheNorthMemory