This project provides a Django-based application for integrating with the SUMSUB API to manage applicant data and document uploads for verification.
- Create applicants in the SUMSUB system
- Upload identity documents for verification
- Retrieve verification status of applicants
Before you begin, ensure you have the following installed on your machine:
- Python 3.8 or later
- pip (Python package installer)
- Git (optional, for cloning the repository)
-
Clone the repository:
git clone https://github.com/OkayJosh/compliance cd compliance
-
Create and activate a virtual environment:
python -m venv .venv
For Windows:
.venv\Scripts\activate
For macOS/Linux:
source .venv/bin/activate
- install the requirements packages for the project:
pip install -r requirements.txt
- Create a .env file in the root directory of your project and add your SUMSUB API credentials and any other required environment variables:
SUMSUB_APP_TOKEN=your_app_token
SUMSUB_SECRET_KEY=your_secret_key
SUMSUB_TEST_BASE_URL=https://api.sumsub.com
- Run database migrations:
Apply the migrations to set up your database:
python manage.py migrate
- Start the application
python manage.py runserver
You should see output indicating that the server is running, usually at http://127.0.0.1:8000/.
You can access the following API endpoints (replace <base_url> with your local server URL):
Create Applicant: POST <base_url>/applicant/create/
Upload Document: POST <base_url>/applicant/upload-document/
Get Applicant Status: GET <base_url>/applicant/<applicant_id>/status/`
This project is licensed under the MIT License. See the LICENSE file for more details.