https://github.com/djumanoff/referal-system
Referal system web service powered by MongoDB (status: WIP)
https://github.com/djumanoff/referal-system
invitation json marketing nodejs referal
Last synced: 4 months ago
JSON representation
Referal system web service powered by MongoDB (status: WIP)
- Host: GitHub
- URL: https://github.com/djumanoff/referal-system
- Owner: djumanoff
- Created: 2016-07-01T17:27:45.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-01T17:29:17.000Z (about 10 years ago)
- Last Synced: 2024-04-01T06:30:07.685Z (over 2 years ago)
- Topics: invitation, json, marketing, nodejs, referal
- Language: JavaScript
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
FORMAT: 1A
HOST: http://refsys.dar.kz/api/v1
# DarEcosystem Core
## Промо коды [/codes]
### Получить промо код [GET /codes/{entity_type}/{entity_id}]
+ Parameters
+ entity_type (String) - тип пользователя, например halvauser, creditonuser
+ entity_id (Integer) - идентификатор пользователя
+ Response 200 (application/json)
{
"code": "NWWBGYH11",
"forward_points": 0,
"backward_points": 0
}
### Применить промокод [POST /codes/{entity_type}/{entity_id}/apply/{code}]
+ Parameters
+ entity_type (String) - тип пользователя, который вводит промо код, например, halvauser, creditonuser
+ entity_id (Integer) - идентификатор пользователя, который вводит промо код,
+ code (String) - промо код который ввел пользователь
+ Response 200 (application/json)
+ Body
{}