curl --request PATCH \
--url https://app.herondata.io/api/integrations/pdfs/{heron_id}/processed \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"exclude": true,
"index": 123,
"summary": {
"account_number": "<string>",
"bank_name": "<string>",
"company": "<string>",
"currency": "<string>",
"end_balance": 123,
"fraud_reasons": [
"<string>"
],
"fraud_score": 123,
"start_balance": 123,
"statement_end_date": "2023-11-07T05:31:56Z",
"statement_start_date": "2023-11-07T05:31:56Z"
},
"transactions": [
{
"amount": 123,
"balance": 123,
"bounds": {
"page": 123,
"x_max": 123,
"x_min": 123,
"y_max": 123,
"y_min": 123
},
"currency": "<string>",
"description": "<string>",
"ocr_suspect": true,
"reference_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"transaction_code": "<string>"
}
]
}'
{
"ok": true
}
Send patch transactions processed pdf that will override the extracted transactions in the specified statement
curl --request PATCH \
--url https://app.herondata.io/api/integrations/pdfs/{heron_id}/processed \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"exclude": true,
"index": 123,
"summary": {
"account_number": "<string>",
"bank_name": "<string>",
"company": "<string>",
"currency": "<string>",
"end_balance": 123,
"fraud_reasons": [
"<string>"
],
"fraud_score": 123,
"start_balance": 123,
"statement_end_date": "2023-11-07T05:31:56Z",
"statement_start_date": "2023-11-07T05:31:56Z"
},
"transactions": [
{
"amount": 123,
"balance": 123,
"bounds": {
"page": 123,
"x_max": 123,
"x_min": 123,
"y_max": 123,
"y_min": 123
},
"currency": "<string>",
"description": "<string>",
"ocr_suspect": true,
"reference_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"transaction_code": "<string>"
}
]
}'
{
"ok": true
}
heron_id of the pdf
Ok
The response is of type object
.
Was this page helpful?