商户贴息-获取微信分付曝光建议
获取微信分付曝光建议
| 请求参数 | 类型 | 描述 |
|---|---|---|
| json | object | 声明请求的JSON数据结构 |
| mchid | string | 直连商户号 |
| appid | string | 应用AppID |
| user_id_type | string | 用户ID的类型UNKNOWN_USER_ID_TYPE | OPENID | PHONE_NO | SP_OPENID | SUB_OPENID 枚举值之一 |
| openid | string | 用户标识 |
| phone_number_hash | string | 用户手机号的十六进制字符串 |
php
$instance->v3->pay->instal->exposure->postAsync([
'json' => [
'mchid' => '1230000109',
'appid' => 'wxd678efh567hg6787',
'user_id_type' => 'OPENID',
'openid' => '123456789',
'phone_number_hash' => 'EF879546FFFF',
],
])
->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',
'phone_number_hash' => 'EF879546FFFF',
],
])
->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',
'phone_number_hash' => 'EF879546FFFF',
],
])
->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',
'phone_number_hash' => 'EF879546FFFF',
],
]);
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',
'phone_number_hash' => 'EF879546FFFF',
],
]);
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',
'phone_number_hash' => 'EF879546FFFF',
],
]);
print_r(json_decode((string) $response->getBody(), true));| 返回字典 | 类型 | 描述 |
|---|---|---|
| recommend_exposure | boolean | 是否建议曝光微信分付 |
参阅 官方文档