Skip to content

商户贴息-获取微信分付曝光建议 ​

获取微信分付曝光建议

请求参数类型描述
jsonobject声明请求的JSON数据结构
mchidstring直连商户号
appidstring应用AppID
user_id_typestring用户ID的类型
UNKNOWN_USER_ID_TYPE | OPENID | SP_OPENID | SUB_OPENID 枚举值之一
openidstring用户标识
php
$instance->v3->pay->instal->exposure->postAsync([
  'json' => [
    'mchid'        => '1230000109',
    'appid'        => 'wxd678efh567hg6787',
    'user_id_type' => 'OPENID',
    'openid'       => '123456789',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/pay/instal/exposure')->postAsync([
  'json' => [
    'mchid'        => '1230000109',
    'appid'        => 'wxd678efh567hg6787',
    'user_id_type' => 'OPENID',
    'openid'       => '123456789',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/pay/instal/exposure']->postAsync([
  'json' => [
    'mchid'        => '1230000109',
    'appid'        => 'wxd678efh567hg6787',
    'user_id_type' => 'OPENID',
    'openid'       => '123456789',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->pay->instal->exposure->post([
  'json' => [
    'mchid'        => '1230000109',
    'appid'        => 'wxd678efh567hg6787',
    'user_id_type' => 'OPENID',
    'openid'       => '123456789',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/pay/instal/exposure')->post([
  'json' => [
    'mchid'        => '1230000109',
    'appid'        => 'wxd678efh567hg6787',
    'user_id_type' => 'OPENID',
    'openid'       => '123456789',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/pay/instal/exposure']->post([
  'json' => [
    'mchid'        => '1230000109',
    'appid'        => 'wxd678efh567hg6787',
    'user_id_type' => 'OPENID',
    'openid'       => '123456789',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
recommend_exposureboolean是否建议曝光微信分付
repayment_infoobject[]还款信息
repayment_typestring还款方式
REPAYMENT_DAILY | REPAYMENT_INSTALL_3 | REPAYMENT_INSTALL_6 | REPAYMENT_INSTALL_12 | REPAYMENT_INSTALL_24 枚举值之一
exist_cash_off_couponboolean是否存在平台优惠

参阅 官方文档

Published on the GitHub by TheNorthMemory