查询支付分计划
商户通过此接口查询支付分计划,商户只能查询自己创建的支付分计划。
请求参数 | 类型 | 描述 |
---|---|---|
merchant_plan_no | string | 支付分计划商户侧单号 |
query | object | 声明请求的查询参数 |
sub_mchid | string | 子商户号 |
php
$instance->v3->payscore->plan->partner->payscorePlans->merchantPlanNo->_merchant_plan_no_->getAsync([
'merchant_plan_no' => '1234323JKHDFE1243252',
'query' => [
'sub_mchid' => '1900000109',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/payscore/plan/partner/payscore-plans/merchant-plan-no/{merchant_plan_no}')->getAsync([
'merchant_plan_no' => '1234323JKHDFE1243252',
'query' => [
'sub_mchid' => '1900000109',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/payscore/plan/partner/payscore-plans/merchant-plan-no/{merchant_plan_no}']->getAsync([
'merchant_plan_no' => '1234323JKHDFE1243252',
'query' => [
'sub_mchid' => '1900000109',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->payscore->plan->partner->payscorePlans->merchantPlanNo->_merchant_plan_no_->get([
'merchant_plan_no' => '1234323JKHDFE1243252',
'query' => [
'sub_mchid' => '1900000109',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/payscore/plan/partner/payscore-plans/merchant-plan-no/{merchant_plan_no}')->get([
'merchant_plan_no' => '1234323JKHDFE1243252',
'query' => [
'sub_mchid' => '1900000109',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/payscore/plan/partner/payscore-plans/merchant-plan-no/{merchant_plan_no}']->get([
'merchant_plan_no' => '1234323JKHDFE1243252',
'query' => [
'sub_mchid' => '1900000109',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
plan_id | string | 支付分计划ID |
service_id | string | 计划所属服务 |
mchid | string | 服务商商户号 |
sub_mchid | string | 子商户商户号 |
appid | string | 服务商AppID |
sub_appid | string | 子商户AppID |
merchant_plan_no | string | 商户侧计划号 |
plan_name | string | 支付分计划名称 |
plan_duration | number | 支付分计划有效期(单位天) |
plan_state | string | 支付分计划状态 |
total_original_price | number | 支付分计划原总金额(单位分) |
deduction_quantity | number | 支付分计划扣费次数 |
total_actual_price | number | 支付分计划实际扣费总金额(单位分) |
plan_detail_list | object[] | 支付分计划明细列表 |
plan_detail_no | number | 计划明细序号 |
plan_detail_name | string | 计划明细名称 |
original_price | number | 计划明细原支付金额(单位分) |
plan_discount_description | string | 计划明细优惠说明 |
actual_price | number | 计划明细实际支付金额(单位分) |
stop_mchid | string | 终止方商户号 |
stop_time | string | 终止时间 |
参阅 官方文档