Refactored subscription endpoints to use sprintf