Overview
Every user need to Accept the terms and conditions in order to access the portal:
...
→ Admin will directly insert the record into this table, each time terms & conditions need to be updated.
Changes to user table
Column | Changes |
---|---|
tacstatus | Added - boolean - true if terms ad condition is accepted |
tacaccepteddate | Added - if tacstatus false → this will be null, else last time user accepted terms and conditions will be stored |
tacversionid | Added - if tacstatus false → this will be null, else last version of accepted terms and conditions will be stored |
tcstatus | Removed - as this is not used currently |
tcupdateddate | Removed - as this is not used currently |
Storage in System Settings
...
APIs Added
- Accept TAC
POST /v1/user/tac/accept{ "request": {
"version":"v1" } }
Notes: Version will be identified from System settings. system settings will have identifier as "tncConfiguration" that will hold terms and condition version and other details. User Id will be taken from "x-authenticated-user-token".
2. Get TAC
GET /v1/tac/read
...
400 Bad Request - Request validation - invalid userId or invalid tacVersion
We need to provide only accept TAC api. Terms and condition page will be hosted on portal and app will also use same html page. when ever terms and condition page change, user need to update the new terms and condition version under system settings table.