Skip to main content
GET
/
doc-agent
/
api
/
v1
/
claims
/
{claimId}
/
materials
/
validity
cURL
curl --request GET \
  --url https://agents.textin.com/doc-agent/api/v1/claims/{claimId}/materials/validity \
  --header 'x-api-key: <x-api-key>'
{
  "materials": [
    {
      "category": "费用与结算",
      "confidence_status": 2,
      "file_name": "发票.jpg",
      "file_size": "523393",
      "file_type": ".jpg",
      "material_id": "material-1234",
      "material_type": "增值税发票",
      "ps_ret": {
        "areas": [
          {
            "confidence": 0.9800000190734863,
            "positions": [
              241,
              510,
              397,
              510,
              397,
              572,
              241,
              572
            ]
          }
        ],
        "is_tampered": true
      },
      "status": 31,
      "verify_vat_ret": {
        "code": "1",
        "message": "成功"
      }
    }
  ],
  "status": "2"
}

Headers

x-api-key
string
required

Path Parameters

claim_id
string
required

案件ID

Query Parameters

material_ids
string[]

材料ID 不传材料ID时,获取案件下所有材料的有效性结果

Response

200 - application/json

OK

materials
object[]

材料真伪检查结果

Example:
[
{
"category": "费用与结算",
"confidence_status": 2,
"file_name": "发票.jpg",
"file_size": "523393",
"file_type": ".jpg",
"material_id": "material-1234",
"material_type": "增值税发票",
"ps_ret": {
"areas": [
{
"confidence": 0.9800000190734863,
"positions": [241, 510, 397, 510, 397, 572, 241, 572]
}
],
"is_tampered": true
},
"status": 31,
"verify_vat_ret": { "code": "1", "message": "成功" }
}
]
status
integer<enum>

status 0 未开始 1 进行中 2 成功 3 失败

Example:

"2"