简要描述
请求URL
{{domian}}/shop/orderInvoice/apply
请求方式
http请求header
- Content-Type:application/json
- charset:utf-8 `
- Authorization : Bearer {{access_token}}
请求参数
参数名 |
名称 |
必选 |
类型 |
示例 |
orderNo |
订单编号 |
是 |
String |
PY20230830092510737dF |
headerType |
抬头类型 person:个人, enterprise:企业 |
是 |
String |
enterprise |
headerName |
抬头 |
是 |
String |
南京盘盈信息科技有限公司 |
taxNo |
税号,企业必填 |
否 |
String |
91310104084123648T |
mail |
接收邮箱 |
是 |
String |
huww095@163.com |
memo |
备注 |
否 |
String |
测试 |
请求示例
{
"code": 0,
"orderNo": "PY20230830092510737dF",
"headerType": "enterprise",
"headerName": "南京盘盈信息科技有限公司",
"taxNo": "91310104084123648T",
"mail": "huww095@163.com",
"memo": "测试"
}
返回示例
成功:
{
"code": 0,
"msg": null,
"data": {
"id": 1,
"projectId": 2,
"orderNo": "PY20230830092510737dF",
"storeId": 6,
"userId": 703,
"amount": 0.01,
"applyTime": "2023-08-30 11:30:02",
"invoiceTime": null,
"invoiceStatus": "applied",
"headerType": "enterprise",
"headerName": "南京盘盈信息科技有限公司",
"taxNo": "91310104084123648T",
"bankName": null,
"bankNo": null,
"address": null,
"phone": null,
"invoiceFile": null,
"memo": "测试",
"mail": "huww095@163.com"
}
}
失败:
{
"code": 401,
"msg": "error",
"data": "Full authentication is required to access this resource"
}
返回参数说明
参数名 |
类型 |
说明 |
示例 |
code |
int |
返回状态码 |
0:成功 401:鉴权失败 |
msg |
String |
状态描述 |
|
data |
String |
返回数据 |
|
- id |
int |
发票id |
1 |
- orderNo |
String |
订单号 |
PY20230830092510737dF |
- amount |
String |
开票金额 |
0.01 |
- ... |
|
|
|
备注