It is not possible to test the qualification of a receipt via just a barcode number/transaction number and would need the item strings to test the qualification of a receipt and evaluate appropriate results.
Example String:
Item Name|Quantity|Item Total Amount|Line Item Type|Menu Item Id|Item Family|Item Major Group|Serial No.