Available Endpoints
POST
/generateNewToken
Generate new PhonePe authentication tokens (Admin only)
POST
/testTokenGen
๐งช Test PhonePe token generation (No auth required)
POST
/getUserProfile
Get user profile information
POST
/createOrder
Create new card orders
POST
/getUserOrders
Get user's order history
POST
/updateOrderStatus
Update order status (Admin only)
POST
/createPhonePePayment
Create PhonePe payment requests
POST
/getUserPayments
Get user's payment history
POST
/getProducts
Get available card products
POST
/createProduct
Create new products (Admin only)
POST
/updateProduct
Update product details (Admin only)
POST
/deleteProduct
Delete products (Admin only)
GET
/listFunctions
๐ Get JSON list of all available API functions
Authentication Requirements
Most endpoints require Firebase Authentication. Include the Authorization header with a valid Firebase ID token.
Exceptions: /testTokenGen and /listFunctions can be called without authentication.
CardScape API v1.0 | Powered by Firebase Functions
For support, contact: WhatsApp Support