Skip to content

查询支付分计划

商户通过此接口查询支付分计划,商户只能查询自己创建的支付分计划。

请求参数类型描述
merchant_plan_nostring支付分计划商户侧单号
php
$instance->v3->payscore->plan->payscorePlans->merchantPlanNo->_merchant_plan_no_->getAsync([
  'merchant_plan_no' => '1234323JKHDFE1243252',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/payscore/plan/payscore-plans/merchant-plan-no/{merchant_plan_no}')->getAsync([
  'merchant_plan_no' => '1234323JKHDFE1243252',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/payscore/plan/payscore-plans/merchant-plan-no/{merchant_plan_no}']->getAsync([
  'merchant_plan_no' => '1234323JKHDFE1243252',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->payscore->plan->payscorePlans->merchantPlanNo->_merchant_plan_no_->get([
  'merchant_plan_no' => '1234323JKHDFE1243252',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/payscore/plan/payscore-plans/merchant-plan-no/{merchant_plan_no}')->get([
  'merchant_plan_no' => '1234323JKHDFE1243252',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/payscore/plan/payscore-plans/merchant-plan-no/{merchant_plan_no}']->get([
  'merchant_plan_no' => '1234323JKHDFE1243252',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
plan_idstring支付分计划ID
service_idstring计划所属服务
mchidstring商户号
appidstringAppID
merchant_plan_nostring商户侧计划号
plan_namestring支付分计划名称
plan_durationnumber支付分计划有效期(单位天)
plan_statestring支付分计划状态
total_original_pricenumber支付分计划原总金额(单位分)
deduction_quantitynumber支付分计划扣费次数
total_actual_pricenumber支付分计划实际扣费总金额(单位分)
plan_detail_listobject[]支付分计划明细列表
plan_detail_nonumber计划明细序号
plan_detail_namestring计划明细名称
original_pricenumber计划明细原支付金额(单位分)
plan_discount_descriptionstring计划明细优惠说明
actual_pricenumber计划明细实际支付金额(单位分)
stop_mchidstring终止方商户号
stop_timestring终止时间

参阅 官方文档

Published on the GitHub by TheNorthMemory