Sample Project – API Demo
To help developers understand how to use the Prestmit Developer API, we’ve built a simple end-to-end demo project that shows how the major endpoints work together in a real application.
The sample project includes both a Node.js backend and a web frontend, giving you a full example of how to implement API authentication, transactions, and payouts using Prestmit’s API.
🌐 Live Demo
You can interact with the sample project here: 👉 https://dev-sample.prestmit.io/
It’s a simplified fintech-style app that lets you simulate:
- Registering or logging in
- Selling gift cards
- Buying gift cards
- Viewing rates
- Withdrawing to Naira or Cedis wallets
The gift card and withdrawal action run on the real Prestmit API endpoints.
🧠 Purpose
The project was created to serve as:
- A reference for developers integrating the Prestmit Partner API
- A live example of how backend and frontend can connect with Prestmit endpoints
- A visual and structural guide to help you design your own user flows
Everything has been simplified to show the core logic, no extra complexity.
⚠️ Important Notice
The sample project is for reference and educational purposes only. It should not be duplicated or used directly in production.
- The code is intentionally simplified for clarity, it's not production-ready.
- It does not include advanced error handling, validation, or security layers.
- You should use it as a foundation to learn, not as a plug-and-play production system.
💻 Resources
| Resource | Link | Description |
|---|---|---|
| Live App | https://dev-sample.prestmit.io/ | Try out the sample project directly in your browser |
| GitHub Repository (Backend) | https://github.com/Prestokay/prest-sample-project-backend | Public repository with full source code (backend). You can review or fork it for learning purposes. |
| GitHub Repository (Frontend) | https://github.com/Prestokay/prest-sample-project | Public repository with full source code (frontend). You can review or fork it for learning purposes. |
| Prestmit API JavaScript SDK | https://www.npmjs.com/package/prestmit-partners-api | A JavaScript/Typescript SDK for integrating gift card buying, selling, and wallet management via the Prestmit API. |
| Figma Design | https://www.figma.com/design/zuiFILnJlVt05g3lTIR4Tr/Prestometer | Contains the user flow and simple UI design for reference, so you can visualize how the app works. |
⚙️ What the App Demonstrates
This demo app shows simplified versions of these flows:
| Feature | Description |
|---|---|
| Register / Login | Basic authentication flow without verification. |
| Sell Gift Card | Demonstrates how to send sell transactions to Prestmit via the /giftcard-trade/sell/create endpoint. |
| Buy Gift Card | Simulates the full buy transaction flow using the /giftcard-trade/buy endpoints. |
| Withdraw Funds | Shows how to send Naira and Cedis withdrawal requests through the API. |
| Rate Calculator | Demonstrates fetching real-time rates and computing transaction values dynamically. |
🧩 How Developers Can Use It
Developers can use this project to:
- Understand the structure of a working Prestmit API integration.
- See the API calls in action – headers, authentication, and payload formats.
- Use the design as a model for how to organize their own frontend workflows.
- Experiment in real time with the live demo before building their own production app.
📘 Summary
The Prestmit Sample Project gives you:
- A live interactive demo
- Open-source backend & frontend code
- UI and workflow design reference
With these, you can quickly understand how to integrate the Prestmit API and build your own production-grade version safely and efficiently.
Updated 2 months ago
Next... Let's look at the overview of selling gift cards over the Prestmit API