Rewards
Rewards tie catalog items and stamp cards to patients.
The rewards model
Properties
- Name
id- Type
- string
- Description
Program or redemption UUID.
- Name
patientId- Type
- string
- Description
Patient participating in rewards.
GET/api/rewards/programs
Programs
Active reward programs.
Request
GET
/api/rewards/programscurl -X GET http://localhost:3000/api/rewards/programs \
-H "Authorization: Bearer YOUR_JWT"
Response
{
"data": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Stamp card",
"isActive": true
}
]
}
GET/api/rewards/catalog
Catalog
Redeemable catalog items.
Request
GET
/api/rewards/catalogcurl -X GET http://localhost:3000/api/rewards/catalog \
-H "Authorization: Bearer YOUR_JWT"
Response
{
"data": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Free consultation",
"stampsRequired": 10
}
]
}
GET/api/rewards/patients/:patientId/summary
Patient summary
Stamps and balance for patient.
Request
GET
/api/rewards/patients/:patientId/summarycurl -X GET http://localhost:3000/api/rewards/patients/:patientId/summary \
-H "Authorization: Bearer YOUR_JWT"
Response
{
"patientId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"stamps": 4,
"redemptions": 1,
"activePrograms": [
{
"programId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"stamps": 4,
"target": 10
}
]
}
GET/api/rewards/redemptions
Redemptions
Redemption history.
Request
GET
/api/rewards/redemptionscurl -X GET http://localhost:3000/api/rewards/redemptions \
-H "Authorization: Bearer YOUR_JWT"
Response
{
"data": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"patientId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"catalogItemName": "Free consultation",
"redeemedAt": "2026-10-05T06:30:00.000Z"
}
]
}