| 反馈类型 | 说明 | 是否需要 taskId | taskData 是否为空 |
|---|---|---|---|
| ACCEPT | 用户接受算法结果 | ✅ 必须 | ✅ 可为空 |
| ABANDON | 用户放弃算法结果 | ✅ 必须 | ✅ 可为空 |
| MODIFY | 用户修改算法结果 | ✅ 必须 | ❌ 需要传数据 |
| MANUAL | 用户未调用算法,手动匹配 | ❌ 不需要 | ❌ 需要传数据 |
| 参数 | 值 | 说明 |
|---|---|---|
| taskType | "three_way_match" | 固定值 |
| feedbackType | "ACCEPT" | 固定值 |
| clientId | 客户ID | 必填 |
| taskId | 匹配接口返回的任务ID | 必填,用于关联原始任务 |
| taskData | {} | 空对象或不传即可 |
{
"taskType": "three_way_match",
"feedbackType": "ACCEPT",
"clientId": "client_123",
"taskId": "8a99a18a3ca66a8fb332c66130b09f44"
} {
"errcode": "0000",
"description": "Success",
"traceId": "f83d76a391634567853ebe1105a26adf",
"data": null
}| 参数 | 值 | 说明 |
|---|---|---|
| taskType | "three_way_match" | 固定值 |
| feedbackType | "ABANDON" | 固定值 |
| clientId | 客户ID | 必填 |
| taskId | 匹配接口返回的任务ID | 必填,用于关联原始任务 |
| taskData | {} | 空对象或不传即可 |
{
"taskType": "three_way_match",
"feedbackType": "ABANDON",
"clientId": "client_123",
"taskId": "8a99a18a3ca66a8fb332c66130b09f44"
} {
"errcode": "0000",
"description": "Success",
"traceId": "f83d76a391634567853ebe1105a26adf",
"data": null
}[
{
"targetItemId": "invoice_item_001",
"candidateItem": [
{
"candidateDocId": "receipt_doc_001",
"candidateItemId": "receipt_item_001"
},
{
"candidateDocId": "receipt_doc_001",
"candidateItemId": "receipt_item_002"
}
]
}
]{
"taskType": "three_way_match",
"feedbackType": "MODIFY",
"clientId": "client_123",
"taskId": "8a99a18a3ca66a8fb332c66130b09f44",
"taskData": {
"userResult": [
{
"targetItemId": "invoice_item_001",
"candidateItem": [
{"candidateDocId": "receipt_doc_001", "candidateItemId": "receipt_item_001"},
{"candidateDocId": "receipt_doc_001", "candidateItemId": "receipt_item_002"}
]
},
{
"targetItemId": "invoice_item_002",
"candidateItem": [
{"candidateDocId": "receipt_doc_002", "candidateItemId": "receipt_item_003"}
]
}
]
}
}{
"taskType": "three_way_match",
"feedbackType": "MODIFY",
"clientId": "client_123",
"taskId": "8a99a18a3ca66a8fb332c66130b09f44",
"taskData": {
"userResult": [
{
"targetItemId": "invoice_item_001",
"candidateItem": [
{"candidateDocId": "receipt_doc_003", "candidateItemId": "receipt_item_005"}
]
}
],
"extraCandidateUrl": "https://example.com/additional_receipts.csv"
}
}{
"taskType": "three_way_match",
"feedbackType": "MODIFY",
"clientId": "client_123",
"taskId": "8a99a18a3ca66a8fb332c66130b09f44",
"taskData": {
"userResult": [
{
"targetItemId": "invoice_item_001",
"candidateItem": [
{"candidateDocId": "receipt_doc_001", "candidateItemId": "receipt_item_001"}
]
}
],
"extraTargetUrl": "https://example.com/updated_invoice.csv"
}
} {
"errcode": "0000",
"description": "Success",
"traceId": "f83d76a391634567853ebe1105a26adf",
"data": null
} {
"priceTolerance": 0.05,
"priceToleranceType": "0",
"quantityTolerance": 1.0,
"quantityToleranceType": "1",
"amountTolerance": 0.02,
"amountToleranceType": "0",
"matchMode": "2"
}{
"taskType": "three_way_match",
"feedbackType": "MANUAL",
"clientId": "client_123",
"taskData": {
"supplierId": "supplier_456",
"targetUrl": "https://example.com/invoice.csv",
"candidateUrl": "https://example.com/receipts.csv",
"settings": {
"priceTolerance": 0.05,
"priceToleranceType": "0"
},
"userResult": [
{
"targetItemId": "invoice_item_001",
"candidateItem": [
{"candidateDocId": "receipt_doc_001", "candidateItemId": "receipt_item_001"}
]
}
]
}
} {
"errcode": "0000",
"description": "Success",
"traceId": "f83d76a391634567853ebe1105a26adf",
"data": null
}{
"errcode": "2001",
"description": "Invalid Parameter 'taskId' - Invalid or expired taskId.",
"traceId": "f83d76a391634567853ebe1105a26adf",
"data": null
}