ECJiaWiki:Api:finance surplus order paid api
跳到导航
跳到搜索
应用场景
消费订单支付后处理订单的接口
接口名称
surplus order paid
请求参数
字段名 | 变量名 | 必填 | 类型 | 示例值 | 描述 |
---|---|---|---|---|---|
订单编号 | order_sn | 是 | varchar | 2018011623564 | 订单编号 |
支付金额 | money | 是 | decimal | 100.00 | 支付金额 |
举例如下
$surplus_order_paid = RC_Api::api('finance', 'surplus_order_paid', array('order_sn' => '2018110259315','money' => 134.20));
成功举例如下
CONTENT: Array{
"order_id":11,
"store_id":62,
"order_sn":"2018110259315",
"user_id":1,
"order_status":0,
"shipping_status":0,
"pay_status":0,
"consignee":"ECJia",
"country":"CN",
"province":"CN31",
"city":"CN3101",
"district":"CN310107",
"street":"CN310107005",
"address":"上海市普陀区中山北路3553号伸大厦301",
"longitude":null,
"latitude":null,
"zipcode":"",
"tel":"",
"mobile":"17612345671",
"email":"",
"best_time":"",
"sign_building":"",
"postscript":"",
"shipping_id":39,
"shipping_name":"商家配送",
"expect_shipping_time":"2018-11-02 11:05-22:00",
"pay_id":9,
"pay_name":"余额支付",
"how_oos":null,
"how_surplus":null,
"pack_name":null,
"card_name":null,
"card_message":"",
"inv_payee":"",
"inv_content":"",
"goods_amount":"148.00",
"shipping_fee":"1.00",
"insure_fee":"0.00",
"pay_fee":"0.00",
"pack_fee":"0.00",
"card_fee":"0.00",
"money_paid":"0.00",
"surplus":"0.00",
"integral":0,
"integral_money":"0.00",
"bonus":"0.00",
"order_amount":"134.20",
"from_ad":0,
"referer":"h5",
"add_time":1541119627,
"confirm_time":0,
"pay_time":0,
"shipping_time":0,
"auto_delivery_time":0,
"pack_id":0,
"card_id":0,
"bonus_id":0,
"invoice_no":null,
"extension_code":"",
"extension_id":0,
"to_buyer":null,
"pay_note":null,
"agency_id":0,
"inv_type":"",
"tax":"0.00",
"is_separate":0,
"parent_id":0,
"discount":"14.80",
"is_delete":0,
"delete_time":null,
"is_settlement":0,
"sign_time":0,
"total_fee":"134.20",
"formated_goods_amount":"¥148.00",
"formated_discount":"¥14.80",
"formated_tax":"¥0.00",
"formated_shipping_fee":"¥1.00",
"formated_insure_fee":"¥0.00",
"formated_pay_fee":"¥0.00",
"formated_pack_fee":"¥0.00",
"formated_card_fee":"¥0.00",
"formated_total_fee":"¥134.20",
"formated_money_paid":"¥0.00",
"formated_bonus":"¥0.00",
"formated_integral_money":"¥0.00",
"formated_surplus":"¥0.00",
"formated_order_amount":"¥134.20",
"formated_add_time":"2018-11-02 16:47:07",
"formated_pay_time":"",
"formated_shipping_time":"",
"label_order_status":"待付款",
"order_status_code":"await_pay",
"allow_update_address":1,
"exist_real_goods":2,
"user_name":"ecjia",
"how_oos_name":null,
"how_surplus_name":null
}
失败举例如下
CONTENT: Royalcms\Component\Error\Error Object
(
[errors:Royalcms\Component\Error\Error:private] => Array
(
[invalid_parameter] => Array
(
[0] => 参数无效
)
)
[error_data:Royalcms\Component\Error\Error:private] => Array
(
)
)
注:错误编码