创建及列表查询可用商户范围
创建可用商户范围
创建可用商户范围。该接口允许服务商创建新的可用商户范围,用于限制额度卡的可用商户范围。服务商可以根据业务需要创建基于统一社会信用代码或微信支付订单号的商户范围,便于管理不同场景下的额度卡使用限制。
| 请求参数 | 类型 | 描述 |
|---|---|---|
| json | object | 声明请求的JSON数据结构 |
| sp_mchid | string | 服务商商户号 |
| identifier_type | string | 商户标识类型ORGANIZATION_CODE | TRANSACTION_ID 枚举值之一 |
php
$instance->v3->webizpay->availMchRanges->postAsync([
'json' => [
'sp_mchid' => '12341234',
'identifier_type' => 'ORGANIZATION_CODE',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance->chain('v3/webizpay/avail-mch-ranges')->postAsync([
'json' => [
'sp_mchid' => '12341234',
'identifier_type' => 'ORGANIZATION_CODE',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance['v3/webizpay/avail-mch-ranges']->postAsync([
'json' => [
'sp_mchid' => '12341234',
'identifier_type' => 'ORGANIZATION_CODE',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$response = $instance->v3->webizpay->availMchRanges->post([
'json' => [
'sp_mchid' => '12341234',
'identifier_type' => 'ORGANIZATION_CODE',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance->chain('v3/webizpay/avail-mch-ranges')->post([
'json' => [
'sp_mchid' => '12341234',
'identifier_type' => 'ORGANIZATION_CODE',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance['v3/webizpay/avail-mch-ranges']->post([
'json' => [
'sp_mchid' => '12341234',
'identifier_type' => 'ORGANIZATION_CODE',
],
]);
print_r(json_decode((string) $response->getBody(), true));| 返回字典 | 类型 | 描述 |
|---|---|---|
| range_id | string | 可用商户范围id |
参阅 官方文档
查询可用商户范围列表
查询可用商户范围列表。该接口允许服务商查询已创建的所有可用商户范围ID列表。通过此接口可以获取服务商下所有的可用商户范围,便于后续的范围管理和额度卡配置。
| 请求参数 | 类型 | 描述 |
|---|---|---|
| query | object | 声明请求的查询参数 |
| sp_mchid | string | 服务商商户号 |
php
$instance->v3->webizpay->availMchRanges->getAsync([
'query' => [
'sp_mchid' => '12341234',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance->chain('v3/webizpay/avail-mch-ranges')->getAsync([
'query' => [
'sp_mchid' => '12341234',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance['v3/webizpay/avail-mch-ranges']->getAsync([
'query' => [
'sp_mchid' => '12341234',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$response = $instance->v3->webizpay->availMchRanges->get([
'query' => [
'sp_mchid' => '12341234',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance->chain('v3/webizpay/avail-mch-ranges')->get([
'query' => [
'sp_mchid' => '12341234',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance['v3/webizpay/avail-mch-ranges']->get([
'query' => [
'sp_mchid' => '12341234',
],
]);
print_r(json_decode((string) $response->getBody(), true));| 返回字典 | 类型 | 描述 |
|---|---|---|
| sp_mchid | string | 服务商商户号 |
| range_list | object[] | 可用商户范围列表 |
| range_id | string | 可用商户范围id |
| identifier_type | string | 商户标识类型ORGANIZATION_CODE | TRANSACTION_ID 枚举值之一 |
参阅 官方文档