Get All Transaction Metrics by File
You can use this GET REST operation to get the number of transactions and transaction lines that are processed successfully, or with exceptions/errors for a specific Accounting Hub Transaction File that was uploaded.
Example URL
Here's an example of the resource URL to display data from Invoice Holds REST API:
GET
/api/erp/integrations/resources/v1/{locale}/files/{id}/transactionCounts
cURL Command
curl --location 'https://servername.fa.us2.oraclecloud.com/api/erp/integrations/resources/v1/en-us/files/451471670902558720/transactionCounts?flowName=fah-import' \
--header 'Authorization: Bearer '<Bearer Token>
Example Response
Here's an example of the response body in JSON format:
{
"fileID": "98715717449060352",
"flowName":"fah-import",
"headerCount":{
"totalHeaderCount":100,
"totalHeaderInError":10,
"totalHeaderProcessed":70,
"totalHeaderInWarning":10,
"totalHeaderErrorInLine":10,
"totalHeaderInProcessing":0
},
"lineCount"{
"totalLineCount":100,
"totalLineInError":10,
"totalLineProcessed":70,
"totalLineErrorInRelatedLine":10,
"totalLineErrorInHeader":10,
"totalLineIgnored":10
}
}