完结智慧零售订单
请求参数 | 类型 | 描述 |
---|---|---|
out_order_no | string | 商户服务订单号 |
json | object | 声明请求的JSON 数据结构 |
appid | string | 公众账号ID |
service_id | string | 服务ID |
finish_type | integer | |
cancel_reason | string | |
real_service_start_time | string | |
real_service_end_time | string | |
real_service_end_location | string | |
fees | object[] | |
fee_name | string | |
fee_count | integer | |
fee_amount | integer | |
fee_desc | string | |
discounts | object[] | |
discount_name | string | 优惠名称 |
discount_amount | integer | |
discount_desc | string | 优惠说明 |
total_amount | integer | |
finish_ticket | string | |
profit_sharing | boolean |
php
$instance->v3->payscore->smartretailOrders->_out_order_no_->complete->postAsync([
'out_order_no' => '',
'json' => [
'appid' => 'wxd678efh567hg6787',
'service_id' => '500001',
'finish_type' => 0,
'cancel_reason' => '',
'real_service_start_time' => '',
'real_service_end_time' => '',
'real_service_end_location' => '',
'fees' => [[
'fee_name' => '',
'fee_count' => 0,
'fee_amount' => 0,
'fee_desc' => '',
],],
'discounts' => [[
'discount_name' => '满20减1元',
'discount_amount' => 0,
'discount_desc' => '不与其他优惠叠加',
],],
'total_amount' => 0,
'finish_ticket' => '',
'profit_sharing' => true,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/payscore/smartretail-orders/{out_order_no}/complete')->postAsync([
'out_order_no' => '',
'json' => [
'appid' => 'wxd678efh567hg6787',
'service_id' => '500001',
'finish_type' => 0,
'cancel_reason' => '',
'real_service_start_time' => '',
'real_service_end_time' => '',
'real_service_end_location' => '',
'fees' => [[
'fee_name' => '',
'fee_count' => 0,
'fee_amount' => 0,
'fee_desc' => '',
],],
'discounts' => [[
'discount_name' => '满20减1元',
'discount_amount' => 0,
'discount_desc' => '不与其他优惠叠加',
],],
'total_amount' => 0,
'finish_ticket' => '',
'profit_sharing' => true,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/payscore/smartretail-orders/{out_order_no}/complete']->postAsync([
'out_order_no' => '',
'json' => [
'appid' => 'wxd678efh567hg6787',
'service_id' => '500001',
'finish_type' => 0,
'cancel_reason' => '',
'real_service_start_time' => '',
'real_service_end_time' => '',
'real_service_end_location' => '',
'fees' => [[
'fee_name' => '',
'fee_count' => 0,
'fee_amount' => 0,
'fee_desc' => '',
],],
'discounts' => [[
'discount_name' => '满20减1元',
'discount_amount' => 0,
'discount_desc' => '不与其他优惠叠加',
],],
'total_amount' => 0,
'finish_ticket' => '',
'profit_sharing' => true,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->payscore->smartretailOrders->_out_order_no_->complete->post([
'out_order_no' => '',
'json' => [
'appid' => 'wxd678efh567hg6787',
'service_id' => '500001',
'finish_type' => 0,
'cancel_reason' => '',
'real_service_start_time' => '',
'real_service_end_time' => '',
'real_service_end_location' => '',
'fees' => [[
'fee_name' => '',
'fee_count' => 0,
'fee_amount' => 0,
'fee_desc' => '',
],],
'discounts' => [[
'discount_name' => '满20减1元',
'discount_amount' => 0,
'discount_desc' => '不与其他优惠叠加',
],],
'total_amount' => 0,
'finish_ticket' => '',
'profit_sharing' => true,
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/payscore/smartretail-orders/{out_order_no}/complete')->post([
'out_order_no' => '',
'json' => [
'appid' => 'wxd678efh567hg6787',
'service_id' => '500001',
'finish_type' => 0,
'cancel_reason' => '',
'real_service_start_time' => '',
'real_service_end_time' => '',
'real_service_end_location' => '',
'fees' => [[
'fee_name' => '',
'fee_count' => 0,
'fee_amount' => 0,
'fee_desc' => '',
],],
'discounts' => [[
'discount_name' => '满20减1元',
'discount_amount' => 0,
'discount_desc' => '不与其他优惠叠加',
],],
'total_amount' => 0,
'finish_ticket' => '',
'profit_sharing' => true,
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/payscore/smartretail-orders/{out_order_no}/complete']->post([
'out_order_no' => '',
'json' => [
'appid' => 'wxd678efh567hg6787',
'service_id' => '500001',
'finish_type' => 0,
'cancel_reason' => '',
'real_service_start_time' => '',
'real_service_end_time' => '',
'real_service_end_location' => '',
'fees' => [[
'fee_name' => '',
'fee_count' => 0,
'fee_amount' => 0,
'fee_desc' => '',
],],
'discounts' => [[
'discount_name' => '满20减1元',
'discount_amount' => 0,
'discount_desc' => '不与其他优惠叠加',
],],
'total_amount' => 0,
'finish_ticket' => '',
'profit_sharing' => true,
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
appid | string | 公众账号ID |
mchid | string | 商户号 |
out_order_no | string | 商户服务订单号 |
service_id | string | 服务ID |
order_id | string | 微信支付服务订单号 |
参阅 官方文档