## 接口说明
`[GET] https://api.fpapi.net/v1/{aid}/task/{task_id}/state2`
该接口用于获取任务状态
## 请求参数
参数名 | 数据类型 | 参数类型 | 必填 | 描述
--- | --- | --- | --- | ---
aid | string | **path** | 必填 | 账号ID
task_id | strimg | **path** | 必填 | 任务唯一id
## 返回参数
跟接口回调内容一致,[详情](https://www.kancloud.cn/shoottech/opentax/3023910)
返回例子
```json
{
"msg":"ok",
"code":200,
"data":{
"task_id":"1658307437kqptctwf",
"task_type":111,
"task_state":1,
"task_code":0,
"task_msg":"",
"api_ver":2,
"extra":"",
"content":[
{
"tax_category":[
{
"tax_category_name":"个人所得税",
"option_name":"工资薪金所得",
"term":"月",
"begin_time":1617206400,
"end_time":253402185600,
"collect_rate":"0",
"rate":"0.03",
"tax_tag":"主税"
}
],
"time":{
"term":1,
"year":2022,
"month":6,
"quarter":2,
"half":1
},
"scope":"gzxjsd",
"report_name":[
"gzxjsdsbb"
]
},
{
"tax_category":[
{
"tax_category_name":"城市维护建设税",
"option_name":"县城、镇(增值税附征)",
"term":"季",
"begin_time":1617206400,
"end_time":253402185600,
"collect_rate":"0",
"rate":"0.05",
"tax_tag":"附税"
},
{
"tax_category_name":"教育费附加",
"option_name":"增值税教育费附加",
"term":"季",
"begin_time":1617206400,
"end_time":253402185600,
"collect_rate":"0",
"rate":"0.03",
"tax_tag":"附税"
},
{
"tax_category_name":"地方教育附加",
"option_name":"增值税地方教育附加",
"term":"季",
"begin_time":1617206400,
"end_time":253402185600,
"collect_rate":"0",
"rate":"0.02",
"tax_tag":"附税"
},
{
"tax_category_name":"增值税",
"option_name":"咨询服务",
"term":"季",
"begin_time":1617206400,
"end_time":253402185600,
"collect_rate":"0.03",
"rate":"0.06",
"tax_tag":"主税"
}
],
"time":{
"term":2,
"year":2022,
"month":6,
"quarter":2,
"half":1
},
"scope":"zzs",
"report_name":[
"zzsjfzsfsbb_xgm"
]
},
{
"tax_category":[
{
"tax_category_name":"财务报表",
"option_name":"小企业会计准则",
"term":"季",
"begin_time":1617206400,
"end_time":253402185600,
"collect_rate":"0",
"rate":"0",
"tax_tag":"主税"
}
],
"time":{
"term":2,
"year":2022,
"month":6,
"quarter":2,
"half":1
},
"scope":"cwbb",
"report_name":[
"cb_zcfzb",
"cb_lrb",
"cb_xjllb"
]
},
{
"tax_category":[
{
"tax_category_name":"企业所得税",
"option_name":"应纳税所得额",
"term":"季",
"begin_time":1617206400,
"end_time":253402185600,
"collect_rate":"0",
"rate":"0.25",
"tax_tag":"主税"
}
],
"time":{
"term":2,
"year":2022,
"month":6,
"quarter":2,
"half":1
},
"scope":"qysds",
"report_name":[
"qysdsalyj"
]
},
{
"tax_category":[
{
"tax_category_name":"财务报表",
"option_name":"小企业会计准则",
"term":"年",
"begin_time":1617206400,
"end_time":253402185600,
"collect_rate":"0",
"rate":"0",
"tax_tag":"主税"
}
],
"time":{
"term":3,
"year":2022,
"month":6,
"quarter":2,
"half":1
},
"scope":"cwbb",
"report_name":[
"cb_zcfzb",
"cb_lrb",
"cb_xjllb"
]
}
]
}
}
```
