Welcome to Voucherify!

Voucherify is an API-centric promotion engine for digital teams. It empowers marketers to quickly launch and efficiently manage promotions personalized with customer and session data, including coupons, gift cards, in-cart promotions, giveaways, referral, and loyalty programs.

Voucherify Examples

Voucherify Examples are examples of integration and use of the Voucherify product.

These samples are built with Node.js and our JS SDK on the server side and HTML + Vanilla JavaScript on the front (with React version coming soon).

Check out all our examples in one place!


Quickstart

Before you run these examples locally, let's check how to start with Voucherify API and dashboard by redeeming your first coupon code by going to Quickstart. This information will help you understand basic Voucherify concepts.

How to run Voucherify samples locally?

Follow the steps below to run locally.

  1. Clone repository.
git clone https://github.com/voucherifyio/voucherify-examples.git
  1. Create your Voucherify account (free tier, no credit card required).

  2. Go to the Sandbox project’s settings and get your Application ID and Secret Key, see Authentication.

  3. Rename .env.example to .env and paste your API keys:

VOUCHERIFY_APP_ID=<replace-with-your-application-id>
VOUCHERIFY_SECRET_KEY=<replace-with-your-secret-key>
  1. Install dependencies.
npm install / yarn install
  1. Start the Node server by entering one of the commands in the terminal.
npm run start / npm run dev || yarn start / yarn run dev 
  1. Go to http://localhost:3000 in your browser.

Get support

If you found a bug or want to suggest a new sample, please file an issue.

If you have questions, comments, or need help with code, we’re here to help:

For more tutorials and full API reference, visit our Developer Hub.

Authors

@patricioo1