ECJiaWiki:Api:orders order info api

来自ECJiaWiki
跳到导航 跳到搜索

应用场景

订单详情接口

接口名称

order_info

请求参数

字段名 变量名 必填 类型 示例值 描述
订单id order_id mediumint 订单id
订单序号 order_sn varchar 订单序号

举例如下

RC_Api::api('orders', 'order_info', array('order_id' => 3246, 'order_sn' => ));

成功举例如下

CONTENT: Array
(
    [order_id] => 3246
    [store_id] => 60
    [order_sn] => 2017022420197
    [user_id] => 0
    [order_status] => 5
    [shipping_status] => 2
    [pay_status] => 2
    [consignee] => 13328790098
    [country] => 0
    [province] => 0
    [city] => 0
    [district] => 0
    [address] => 
    [longitude] => 
    [latitude] => 
    [zipcode] => 
    [tel] => 
    [mobile] => 13328790098
    [email] => 
    [best_time] => 
    [sign_building] => 
    [postscript] => 
    [shipping_id] => -1
    [shipping_name] => 无需使用配送方式
    [expect_shipping_time] => 
    [pay_id] => 14
    [pay_name] => 微信支付
    [how_oos] => 
    [how_surplus] => 
    [pack_name] => 
    [card_name] => 
    [card_message] => 
    [inv_payee] => 
    [inv_content] => 
    [goods_amount] => 0.01
    [shipping_fee] => 0.00
    [insure_fee] => 0.00
    [pay_fee] => 0.00
    [pack_fee] => 0.00
    [card_fee] => 0.00
    [money_paid] => 0.01
    [surplus] => 0.00
    [integral] => 0
    [integral_money] => 0.00
    [bonus] => 0.00
    [order_amount] => 0.00
    [from_ad] => 0
    [referer] => invitecode
    [add_time] => 1487880450
    [confirm_time] => 1487880455
    [pay_time] => 1487880455
    [shipping_time] => 1487880455
    [auto_delivery_time] => 15
    [pack_id] => 0
    [card_id] => 0
    [bonus_id] => 0
    [invoice_no] => 
    [extension_code] => 
    [extension_id] => 0
    [to_buyer] => 
    [pay_note] => 
    [agency_id] => 0
    [inv_type] => 
    [tax] => 0.00
    [is_separate] => 0
    [parent_id] => 0
    [discount] => 0.00
    [is_delete] => 0
    [delete_time] => 
    [is_settlement] => 0
    [sign_time] => 
    [total_fee] => 0.01
    [formated_goods_amount] => ¥0.01
    [formated_discount] => ¥0.00
    [formated_tax] => ¥0.00
    [formated_shipping_fee] => ¥0.00
    [formated_insure_fee] => ¥0.00
    [formated_pay_fee] => ¥0.00
    [formated_pack_fee] => ¥0.00
    [formated_card_fee] => ¥0.00
    [formated_total_fee] => ¥0.01
    [formated_money_paid] => ¥0.01
    [formated_bonus] => ¥0.00
    [formated_integral_money] => ¥0.00
    [formated_surplus] => ¥0.00
    [formated_order_amount] => ¥0.00
    [formated_add_time] => 2017-02-24 12:07:30
    [formated_pay_time] => 2017-02-24 12:07:35
    [formated_shipping_time] => 2017-02-24 12:07:35
    [label_order_status] => 已完成
    [order_status_code] => finished
    [allow_update_address] => 0
    [exist_real_goods] => 1
    [log_id] => 
    [user_name] => 
    [how_oos_name] => 
    [how_surplus_name] => 
)

失败举例如下

CONTENT: ecjia_error Object
(
    [errors:Royalcms\Component\Error\Error:private] => Array
        (
            [invalid_parameter] => Array
                (
                    [0] => 参数无效
                )

        )

    [error_data:Royalcms\Component\Error\Error:private] => Array
        (
        )

)

注:错误编码