POST api/Tencent/createTencentInvoice
开具电子发票
请求的信息
URI参数
None.
Body参数
createInvoiceCondition| 名称 | 描述 | 类型 | 其它信息 |
|---|---|---|---|
| InvoiceDate |
开票日期 |
string |
None. |
| Head |
抬头-购买方名称 |
string |
None. |
| Mobile |
手机号码 |
string |
None. |
| GmfNsrsbh |
购买方纳税人识别号(如收票方为企业时此项必填) |
string |
None. |
| GmfYhzh |
购买方银行和银行帐号 |
string |
None. |
| GmfDzdh |
购买方地址和电话 |
string |
None. |
| GmfEmail |
购买方电子邮箱 |
string |
None. |
| TotalAmt |
开票总金额 |
decimal number |
None. |
| OrderList |
订单数据列表 |
Collection of createInvoiceOrderModel |
None. |
请求格式
application/json, text/json
Sample:
{
"invoiceDate": "sample string 1",
"head": "sample string 2",
"mobile": "sample string 3",
"gmfNsrsbh": "sample string 4",
"gmfYhzh": "sample string 5",
"gmfDzdh": "sample string 6",
"gmfEmail": "sample string 7",
"totalAmt": 8.0,
"orderList": [
{
"$id": "2",
"amt": 1.0,
"orderNo": "sample string 2",
"orderDate": "sample string 3",
"seq": "sample string 4",
"productList": [
{
"$id": "3",
"proCode": "sample string 1",
"proName": "sample string 2",
"proAmt": 3.0,
"proQty": 4,
"guiGe": "sample string 5",
"danWei": "sample string 6"
},
{
"$ref": "3"
},
{
"$ref": "3"
}
]
},
{
"$ref": "2"
},
{
"$ref": "2"
}
]
}
application/x-www-form-urlencoded
Sample:
Sample not available.
响应信息
资源描述
CustomJsonResultOfcreateInvoiceResult| 名称 | 描述 | 类型 | 其它信息 |
|---|---|---|---|
| Content | createInvoiceResult |
None. |
响应格式
application/json, text/json
Sample:
{
"content": {
"$id": "2",
"code": 1,
"message": "sample string 2",
"data": {
"$id": "3"
}
}
}