财务管理

API - 获取账单详情

描述:获取账单详情

请求方式:GET

请求地址:v1/invoices/:id

版本:v1

内部API调用方法名:Invoices_invoices

请求参数

参数类型验证规则最大长度描述示例
   id int require 11 账单ID 1

返回参数

参数类型验证规则最大长度描述示例
  _invoices array[] - 账单信息
         Llogo string - 账单logo地址
         Lusername string - 支付方信息
         Lcompanyname string - 收款方信息
         Lcreate_time int - 创建时间
         Lstatus string - 支付状态:Paid已支付,Unpaid未支付,Refunded已退款,Cancelled被取消, Draft已草稿,Overdue已逾期,Collections已收藏 Paid
         Ltotal price - 账单总价 100.00
   L_invoice_items array[] - 账单子项 { "type": "host", "description": "产品升降级001 -ser571869537400(2022-01-06 16 - 2022-02-06 16) \n IP数量: 1\n CPU: 1核\n", "amount": "300.00", "rel_id": 625, }
            Ltype string - 账单子项类型:host产品,renew续费,recharge充值,setup初装费,promo优惠码,upgrade升降级,客户折扣等 host
            Ldescription string - 描述 产品升降级001 -ser571869537400(2022-01-06 16 - 2022-02-06 16) \n IP数量: 1\n CPU: 1核\n
            Lamount price - 价格 300.00
            Lrel_id int - 关联ID 1
  _currency array[] - 货币信息
         Lid int - 货币ID 1
         Lcode string - 货币代码 CNY
         Lprefix string - 货币前缀
         Lsuffix string - 货币后缀
  _gateways array[] - 支付方式(仅账单状态为未支付Unpaid时返回) { "name": "WxPay", "title": "微信支付", "url": "upload/pay/WxPay.png", "author_url": "" }
         Lid int - 支付方式ID 1
         Lname string - 支付标识 WxPay
         Ltitle string - 支付名称 微信支付
         Lurl string - 图片地址 upload/pay/WxPay.png
         Lauthor_url string - 图片地址base64
  _accounts array[] - 交易流水(仅账单已支付返回)
         Ltrans_id int - 交易流水号 17344353453145345
         Lamount_in price - 金额
         Lgateway string - 支付方式
         Lpay_time int - 支付时间