订单详情返回值(json(array))

返回参数名称 类型 长度 说明及示例
tid string 16 订单号 (20140220158448)
title string 30 |当前交易标题 (默认Order Create)
created date 订单创建时间 (Y-m-d H:i:s)
modified date 订单更新时间 (Y-m-d H:i:s)
lastmodify date 订单最后更新时间(Y-m-d H:i:s)
status string 20 订单状态(TRADE_ACTIVE活动订单 或 TRADE_CLOSED订单关闭)
pay_status string 20 支付状态(PAY_NO未支付 或 PAY_FINISH支付完成 或 PAY_TO_MEDIUM支付到担保方 或 PAY_PART 或 REFUND_PART 或 REFUND_ALL)
ship_status string 20 发货状态(SHIP_NO未发货 或 SHIP_FINISH 发货完成)
has_invoice bool 是否开发票(true是 或 false否)
invoice_title string 50 发票抬头
invoice_fee string 10 发票税费
total_goods_fee string 10 商品总价(商品结算价+商品优惠额)
total_trade_fee string 10 订单总价(商品总价+物流费用+保价费用+支付网关手续费+发票税费-商品优惠额-订单优惠额-其他折扣)
discount_fee string 10 其他折扣
goods_discount_fee string 10 商品优惠额
orders_discount_fee string 10 订单优惠额
promotion_details Promotion_Details 优惠信息详情
payed_fee string 订单已支付金额
currency string 10 交易货币类型( CNY人民币 USD美元)
currency_rate string 货币汇率
total_currency_fee string 相应货币的订单总价
buyer_obtain_point_fee string 此订单获取的积分
point_fee string 此订单使用的积分
total_weight string 订单总重
receiver_time string 100 预定收货时间
shipping_tid string 16 配送方式id
shipping_type string 50 配送方式名称
shipping_fee string 配送费用
is_protect string 是否保价(true是 false否)
protect_fee string 保价费用
payment_tid string 20 支付方式id(alipay deposit)
payment_type string 50 支付方式名称
is_cod string 是否货到付款 (true是 false否)
receiver_name string 20 收货人姓名
receiver_email string 20 收货人邮箱
receiver_mobile string 20 收货人电话
receiver_state string 20 收货地区
receiver_city string 20 收货城市
receiver_district string 20 收货区域
receiver_address string 50 收货地址
receiver_zip string 10 收货邮政编码
receiver_phone string 20 收货人手机
pay_cost string 支付网关手续费
buyer_memo string 100 留言
orders_number int 订单数量(此处默认为1)
buyer_uname string 50 购买人用户名
buyer_name string 20 购买者名称
buyer_address string 100 购买人的详细地址
buyer_mobile string 20 购买人电话
buyer_phone string 20 购买人手机
buyer_email string 20 购买人邮箱
buyer_zip string 10 购买人邮编
orders Orders 订单内容
payment_lists Payment_lists 支付单内容

Promotion_Details 参数内容

  • 此参数是个二维数组,结构如下:
    'promotion_details' =>
    array (
            0 =>
            array (
                'promotion_name' => '商品价格优惠¥3.00出售',
                'promotion_fee' => '6.000',
                ),
            1 =>
            array (
                'promotion_name' => '商品价格优惠¥8.00出售',
                'promotion_fee' => '8.000',
                ),
            2 =>
            array (
                'promotion_name' => '测试订单促销',
                'promotion_fee' => '5.000',
                ),
          ),
    
  • 参数解释
    返回参数名称 类型 长度 描述
    promotion_name string 50 订单享受的优惠(如:商品优惠、订单优惠)
    promotion_fee string 优惠的金额 (金额根据不同优惠规则来总和 如:商品规则a:6;商品规则b:8;订单规则a:5)

Orders 参数内容

  • 此参数数组是一个根据商品个数生成的多维数组
    'orders' => 
    array (
            'order' => 
            array (
                0 => 
                array (
                    'oid' => '99',
                    'orders_bn' => 'P4C89F21B67024',
                    'type' => 'goods',
                    'type_alias' => '商品区块',
                    'iid' => '99',
                    'title' => '艺术风格皮质钱包',
                    'items_num' => 1,
                    'order_status' => 'SHIP_NO',
                    'price' => '198.000',
                    'total_order_fee' => 198,
                    'discount_fee' => 0,
                    'consign_time' => '',
                    'order_items' => 
                    array (
                        'item' => 
                        array (
                            0 => 
                            array (
                                'sku_id' => '296',
                                'iid' => '42',
                                'bn' => 'P4C89F21B67024',
                                'name' => '艺术风格皮质钱包',
                                'sku_properties' => '颜色:深蓝色',
                                'weight' => NULL,
                                'score' => '0',
                                'price' => '198.000',
                                'num' => '1',
                                'sendnum' => '0',
                                'total_item_fee' => 198,
                                'sale_price' => '190.000',
                                'item_type' => 'product',
                                'item_status' => 'normal',
                                'discount_fee' => 8,
                                ),
                            ),
                        ),
                        'weight' => '0',
                        ),)
    
  • $orders['order'][0]参数解释
    参数名称 类型 长度 描述
    oid string order_objects 表中的id
    orders_bn string 商品货号
    type string 商品类型
    type_alias 商品区域块
    iid string order_objects 表中的id
    title string 商品名称
    items_num int 货品购买数量
    order_status string 商品发货状态
    price string 商品单价
    total_order_fee int 订单中金额
    discount_fee int 商品优惠额
    consign_time string 商品优惠额
    weight string 商品重量
    order_items Order_items 货品详情
Order_items 货品详情参数列表
  • order_items['item'][0]内容
    参数名称 类型 长度 描述
    sku_id string 10 货品id
    iid string
    bn string 20 货品编号
    name string 100 货品名称
    sku_properties 50 货品规格
    weight string 10 货品重量
    score string 10 货品积分
    price string 货品销售价格
    num string 10 货品购买数量
    sendnum string 10 货品已发货数量
    total_item_fee string |货品总价
    sale_price string 货品成交价
    item_type string 50 类型
    item_status string
    discount_fee string 10 货品优惠额

payment_lists 参数内容

  • payment_lists 是一个多维数组,内容如下:
    'payment_lists' => array (
            'payment_list' => 
            array (
                0 => 
                array (
                    'tid' => '140221143604193',
                    'payment_id' => '13929645875070',
                    'seller_bank' => '预存款',
                    'seller_account' => '点此设置您商店的名称',
                    'buyer_account' => 'xinxin',
                    'currency' => 'CNY',
                    'pay_fee' => '447.000',
                    'paycost' => '0.000',
                    'currency_fee' => '447.000',
                    'pay_type' => 'deposit',
                    'payment_name' => '预存款',
                    'payment_code' => 'deposit',
                    't_begin' => '2014-02-21 14:36:27',
                    't_end' => '2014-02-21 14:36:27',
                    'status' => 'SUCC',
                    'memo' => '',
                    'outer_no' => '',
                    ),
                ),
                ),
    
  • payment_lists['payment_list'][0]参数解释
    返回参数名称 类型 长度 描述
    tid string 16 订单号
    payment_id string 20 支付单号
    seller_bank string 20 支付银行
    seller_account string 50 商家店铺名称
    buyer_account string 20 购买人用户名
    currency string 10 货币类型
    pay_fee string 支付金额
    paycost string
    currency_fee string 货币金额
    pay_type string 支付方式id
    payment_name string 支付方式名称
    payment_code string 支付账号
    t_begin string 支付发起时间
    t_end string |支付结束时间
    status string 支付状态
    memo string 订单备注
    outer_no string

最终返回值示例

返回值列表

data =>array (
  'tid' => '20140220158448',
  'title' => 'Order Create',
  'created' => '2014-02-20 15:33:13',
  'modified' => '2014-02-20 15:33:22',
  'lastmodify' => '2014-02-20 15:33:22',
  'status' => 'TRADE_ACTIVE',
  'pay_status' => 'PAY_FINISH',
  'ship_status' => 'SHIP_NO',
  'has_invoice' => false,
  'invoice_title' => '',
  'invoice_fee' => '0.000',
  'total_goods_fee' => '198.00',
  'total_trade_fee' => '193.000',
  'discount_fee' => '0.000',
  'goods_discount_fee' => '0.000',
  'orders_discount_fee' => '5.000',
  'promotion_details' => '[{"promotion_name":"asdfasdf","promotion_fee":"5.000"}]',
  'payed_fee' => '193.000',
  'currency' => 'CNY',
  'currency_rate' => '1.0000',
  'total_currency_fee' => '193.000',
  'buyer_obtain_point_fee' => '0.000',
  'point_fee' => '0.000',
  'total_weight' => '0.000',
  'receiver_time' => '任意日期任意时间段',
  'shipping_tid' => '1',
  'shipping_type' => '快递',
  'shipping_fee' => '0.000',
  'is_protect' => 'false',
  'protect_fee' => '0.000',
  'payment_tid' => 'deposit',
  'payment_type' => '预存款',
  'is_cod' => 'false',
  'receiver_name' => '闪电宝宝',
  'receiver_email' => '',
  'receiver_mobile' => '13333333333',
  'receiver_state' => '上海',
  'receiver_city' => '上海市',
  'receiver_district' => '徐汇区',
  'receiver_address' => '上海市徐汇区虹桥路333号',
  'receiver_zip' => '',
  'receiver_phone' => '',
  'pay_cost' => '0.000',
  'buyer_memo' => '',
  'orders_number' => 1,
  'buyer_uname' => 'xinxin',
  'buyer_name' => '',
  'buyer_address' => '',
  'buyer_mobile' => '',
  'buyer_phone' => '',
  'buyer_email' => 'xin@ww.com',
  'buyer_zip' => NULL,
  'orders' => 
  array (
    'order' => 
    array (
      0 => 
      array (
        'oid' => '40',
        'orders_bn' => 'P4CB2898C0F44C',
        'type' => 'goods',
        'type_alias' => '商品区块',
        'iid' => '40',
        'title' => '圆形指南针不锈钢甜美手表',
        'items_num' => 1,
        'order_status' => 'SHIP_NO',
        'price' => '198.000',
        'total_order_fee' => 198,
        'sale_price' => 198,
        'discount_fee' => 0,
        'consign_time' => '',
        'order_items' => 
        array (
          'item' => 
          array (
            0 => 
            array (
              'sku_id' => '534',
              'iid' => '82',
              'bn' => 'P4CB2898C0F44C',
              'name' => '圆形指南针不锈钢甜美手表',
              'sku_properties' => '',
              'weight' => '0',
              'score' => '0',
              'price' => '198.000',
              'num' => '1',
              'sendnum' => '0',
              'total_item_fee' => 198,
              'sale_price' => '198.000',
              'item_type' => 'product',
              'item_status' => 'normal',
              'discount_fee' => 0,
            ),
          ),
        ),
        'weight' => '0',
      ),
    ),
  ),
  'payment_list' => 
  array (
    0 => 
    array (
      'tid' => '20140220158448',
      'payment_id' => '13928816025034',
      'seller_bank' => '预存款',
      'seller_account' => '点此设置您商店的名称',
      'buyer_account' => 'xinxin',
      'currency' => 'CNY',
      'pay_fee' => '193.000',
      'paycost' => '0.000',
      'currency_fee' => '193.000',
      'pay_type' => 'deposit',
      'payment_name' => '预存款',
      'payment_code' => 'deposit',
      't_begin' => '2014-02-20 15:33:22',
      't_end' => '2014-02-20 15:33:22',
      'status' => 'SUCC',
      'memo' => '',
      'outer_no' => '',
    ),
  ),
)