Skip to content

停止支付分计划

商户通过此接口停止正在生效中的支付分计划,商户只能停止自己创建的支付分计划。

请求参数类型描述
merchant_plan_nostring商户支付分计划对应的计划号
php
$instance->v3->payscore->plan->payscorePlans->merchantPlanNo->_merchant_plan_no_->stop->postAsync([
  '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}/stop')->postAsync([
  '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}/stop']->postAsync([
  '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_->stop->post([
  '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}/stop')->post([
  '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}/stop']->post([
  '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