# 企业申请发票

# 简介

使用场景:企业可通过这个接口申请对公开票,支持按照金额开票,暂时仅支持有预充值的企业。

# 服务提供方

享道

# 接口URL

/openapi/invoice/applyForCom

# 请求方式

POST

# 请求频次

单次

# 请求参数

参数名称 类型 必选 说明
timestamp long 请求时间,Unix Timestamp单位毫秒
entId string 企业ID
title string 发票抬头(最多50个中文字符)
tax_number string 税号(15、18、20位大写字母或者数字)。单位发票必填,不填认为是个人。
invoice_type int 发票类型,2:电子
invoice_amount int 开票金额
register_address String 注册地址(最多50个中文字符)
register_phone String 注册手机号(最多13个字符)
open_bank String 开户银行(最多60个中文字符)
bank_account String 银行账户号码(最多30个字符)
remark String 备注(最多50个中文字符)

# 响应参数

参数名称 类型 必有 说明
errCode int 服务响应状态,参见附录5
errMsg string 服务响应状态说明,参见附录5
content object
content.invoice_id string 发票ID

# 请求事例

请求

curl --request POST \
  --url https://open-sit.saicmobility.com/merchant/v1/openapi/invoice/apply \
  --header 'content-type: application/json' \
  --header 'x-merchantid: open_mer_test' \
  --header 'x-sign: 01d030856649e445b9cb480056876e1b76dcaa5c' \
  --header 'x-signalgorithm: 1' \
  --header 'x-timestamp: 20201022144700' \
  --data '{"appId":"open_app_BwH96b6vfFgBtsaa","invoice_type":2,"merchantId":"open_mer_test","invoice_amount":1000,"title":"上海赛可出行","timestamp":20201022144700}'

响应


{
  "errCode": 10000,
  "errMsg": "successful",
  "content": {
    "invoice_id": "I1857beced2114d27b51b2b4fece6626d"
  }
}