Loyalty Web Services
From ePrize Developers Wiki
Introduction'
This document provides an overview of the custom APIs that have been built for the HelloWorld Demo Loyalty program. There are additional APIs that are available in the program that require a more in-depth understanding of the architecture of the platform. API Endpoints /api/v1/ 1. createMember 2. updateMember 3. getMember 4. forgotPassword 5. changePassword 6. submitCode 7. redeem 8. createIssue 9. createEmailReferral
All API calls should be performed by an authenticated user.
Authentication
For the createMember call, the authenticated user will be an API user through Basic auth with system privileges to create a new user, and no other privileges. This user is set up as part of the initial program deployment.
Authenticating a user for all other endpoints can be performed through basic authentication or through OAuth. OAuth is preferred and involves requesting an OAuth token for the user based on their Basic authentication credentials. Information on obtaining an OAuth token for a user is managed by submitting a Basic authentication request to the api/v1/authorize endpoint. Basic authentication requires submitting the users username and password as the authentication header.