Skip to content

Lunarlink/lunarlink-loyalty-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


LunarLink enables businesses to create and manage loyalty programs, enroll users, manage rewards, and track transactions. It enables seamless integration with Solana Pay, enabling secure, instant and seamless payment transactions. LunarLink utilizes digital assets to connect businesses worldwide, allowing them to offer better customer experiences and increase user retention, also providing businesses with a way to analyze their loyalty program performance, generate reports, and gain insights into customer behavior.

Setup

npm install
serverless dynamodb install (or to use a persistent docker dynamodb instead, open a new terminal: cd ./dynamodb && docker-compose up -d)
serverless offline start

Run service offline

serverless offline start

Usage

You can create, retrieve, list programs; add partners and execute transactions using following endpoints:

List Programs

GET /program/

Get Program

GET /program/:id

Create a Program

POST /program/

{
    "tokenName": "Moon Point",
    "tokenSymbol": "MP",
    "type": "points",
    "image": "...",
    "settings": { "decimals": 2, "rewardRate": 5, "multiplier": 10 },
    "organizer": "Org",
    "name": "Lunar loyalty",
    "description": "Lunar program linking businesses and user all over the world rocketing everyone to the moon",
    "email": "[email protected]"
}

Get Partner

GET /partner/:id

Add partner to Program

POST /program/:id/addpartner

{
    "name": "Moonstore",
    "description": "Moon equipment",
    "email": "[email protected]",
    "walletAddress": "" // optional
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages