kps api conversion - fixed issue with receipts
added debugging