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

ResourceLinkDescription
Live Apphttps://dev-sample.prestmit.io/Try out the sample project directly in your browser
GitHub Repository (Backend)https://github.com/Prestokay/prest-sample-project-backendPublic repository with full source code (backend). You can review or fork it for learning purposes.
GitHub Repository (Frontend)https://github.com/Prestokay/prest-sample-projectPublic repository with full source code (frontend). You can review or fork it for learning purposes.
Prestmit API JavaScript SDKhttps://www.npmjs.com/package/prestmit-partners-apiA JavaScript/Typescript SDK for integrating gift card buying, selling, and wallet management via the Prestmit API.
Figma Designhttps://www.figma.com/design/zuiFILnJlVt05g3lTIR4Tr/PrestometerContains 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:

FeatureDescription
Register / LoginBasic authentication flow without verification.
Sell Gift CardDemonstrates how to send sell transactions to Prestmit via the /giftcard-trade/sell/create endpoint.
Buy Gift CardSimulates the full buy transaction flow using the /giftcard-trade/buy endpoints.
Withdraw FundsShows how to send Naira and Cedis withdrawal requests through the API.
Rate CalculatorDemonstrates fetching real-time rates and computing transaction values dynamically.

🧩 How Developers Can Use It

Developers can use this project to:

  1. Understand the structure of a working Prestmit API integration.
  2. See the API calls in action – headers, authentication, and payload formats.
  3. Use the design as a model for how to organize their own frontend workflows.
  4. 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.


What’s Next

Next... Let's look at the overview of selling gift cards over the Prestmit API