Skip to content

Compliance platform that helps businesses verify their customers and comply with regulations

Notifications You must be signed in to change notification settings

OkayJosh/compliance

Repository files navigation

SUMSUB API Integration

This project provides a Django-based application for integrating with the SUMSUB API to manage applicant data and document uploads for verification.

Table of Contents

Features

  • Create applicants in the SUMSUB system
  • Upload identity documents for verification
  • Retrieve verification status of applicants

Prerequisites

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)

Setup Instructions

  1. Clone the repository:

    git clone https://github.com/OkayJosh/compliance
    cd compliance
    
  2. Create and activate a virtual environment:

You can use venv (Python's built-in virtual environment module) to create a virtual environment.
 python -m venv .venv

For Windows:

  .venv\Scripts\activate

For macOS/Linux:

source .venv/bin/activate
  1. install the requirements packages for the project:
    pip install -r requirements.txt
  1. 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
  1. Run database migrations:

Apply the migrations to set up your database:

python manage.py migrate
  1. 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/.

API Endpoints

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/`

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

Compliance platform that helps businesses verify their customers and comply with regulations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages