This section give's control and information for the terms and conditions documents.
terms and conditions documents are files that any user need's to approve before he can log in to the system.
After user is approving a document, the "approvment" will be saved in its own table.
Admin logged in - can see,edit and upload new files for the users to approve.
User logged in - can see it's own documents that needs to be approved.
Return a list of pending terms and conditions for the user to approve
Success
Unauthorized
Forbidden
{- "api_message": "<string>",
- "api_data": [
- {
- "id": "<string>",
- "uploaded_by": "<string>",
- "url": "<string>",
- "status": true,
- "created_at": "<datetime string>",
- "updated_at": "<datetime string>",
- "base64": "<pdf content as base64 string>"
}
]
}
Approve document by user and change it's status.
Success
Unauthorized
Forbidden
Unprocessable Content
{- "status": true,
}
{- "api_message": "<string>",
- "api_data": {
- "tac": {
- "id": "<string>",
- "uploaded_by": "<string>",
- "url": "<string>",
- "status": true,
- "created_at": "<datetime string>",
- "updated_at": "<datetime string>",
- "base64": "<pdf content as base64 string>"
}
}
}
Get specific tac document from the db by tac_id
Success
Unauthorized
Forbidden
{- "api_message": "<string>",
- "api_data": {
- "id": "<string>",
- "uploaded_by": "<string>",
- "url": "<string>",
- "status": true,
- "created_at": "<datetime string>",
- "updated_at": "<datetime string>",
- "base64": "<pdf content as base64 string>"
}
}
Update tac document by tac_id in url
raw(json)
Success
Unauthorized
Forbidden
Unprocessable Content
{- "status": true,
}
{- "api_message": "<string>",
- "api_data": {
- "tac": {
- "id": "<string>",
- "uploaded_by": "<string>",
- "url": "<string>",
- "status": true,
- "created_at": "<datetime string>",
- "updated_at": "<datetime string>",
- "base64": "<pdf content as base64 string>"
}
}
}