Hi,
GetExecutionErrors only returns the error messages, not the business keys of the failed rows. The UI shows the invoice number because it reads it from the staging table.
A few options to try:
1. The DMF API also has actions that return download URLs for error files, such as GetImportStagingErrorFileUrl and GetImportTargetErrorKeysFileUrl. The staging error file should contain the failed staging rows, which would include the invoice number. Please check which columns each file actually has.
2. If that's not enough, create a custom data entity or service that reads the staging table filtered by the execution ID, and returns the invoice numbers of rows with an error status. It needs a bit of development but should be the most reliable.
You'll need the execution ID for the batch, which you can get from the message status response of the recurring integration.
Hope this helps!
Thanks.