purchase endpoint testing