查询还款单
商户可调用该接口来获取还款单的详细信息
| 请求参数 | 类型 | 描述 |
|---|---|---|
| out_trade_no | string | 商户侧交易单号 |
php
$instance->v3->creditRepayment->partner->deductOrders->_out_trade_no_->getAsync([
'out_trade_no' => '1217752501201407033233368018',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance->chain('v3/credit-repayment/partner/deduct-orders/{out_trade_no}')->getAsync([
'out_trade_no' => '1217752501201407033233368018',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance['v3/credit-repayment/partner/deduct-orders/{out_trade_no}']->getAsync([
'out_trade_no' => '1217752501201407033233368018',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$response = $instance->v3->creditRepayment->partner->deductOrders->_out_trade_no_->get([
'out_trade_no' => '1217752501201407033233368018',
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance->chain('v3/credit-repayment/partner/deduct-orders/{out_trade_no}')->get([
'out_trade_no' => '1217752501201407033233368018',
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance['v3/credit-repayment/partner/deduct-orders/{out_trade_no}']->get([
'out_trade_no' => '1217752501201407033233368018',
]);
print_r(json_decode((string) $response->getBody(), true));| 返回字典 | 类型 | 描述 |
|---|---|---|
| out_trade_no | string | 商户侧交易单号 |
| out_record_id | string | 商户侧预约还款单号 |
| appid | string | 商户AppID |
| sub_appid | string | 子商户AppID |
| openid | string | 用户标识 |
| contract_id | string | 还款协议ID |
| order_state | string | 还款单状态DEDUCT_ORDER_STATE_PENDING | DEDUCT_ORDER_STATE_NOT_PAY | DEDUCT_ORDER_STATE_PAY_SUCCESS | DEDUCT_ORDER_STATE_PAY_FAIL 枚举值之一 |
| deduct_amount | string | 还款金额 |
| pay_success_amount | string | 实际还款金额 |
| description | string | 产品描述 |
| attach | string | 商户数据包 |
| transaction_id | string | 微信支付的支付单号 |
参阅 官方文档