Account related apis

All account related apis.

Sign Up

POST https://api.mycontract.co:3001/v1/admin/signup

This endpoint allows you to signup for admin.

Request Body

Name
Type
Description

email

string

User email

password

string

User password

firstName

string

First name of user

lastName

string

Last name of user

{
    "status": true,
    "info": "Please verify your email address by clicking the link that we have mailed you!"
}

Login

POST https://api.mycontract.co:3001/v1/admin/login

This endpoint allows you to login as admin.

Query Parameters

Name
Type
Description

email

string

User email.

password

string

Password for respective email address.

{
    "status": true,
    "token": // JWT token
}

Profile details

GET https://api.mycontract.co:3001/v1/admin/details

This endpoint is used to get admin profile details

Headers

Name
Type
Description

Authorization

string

JWT token

{
    "status": true,
    "data": {
        "id": "a02a3ee0-2862-11e9-8149-97f236a2a701",
        "name": "bob parker",
        "email": "bob@demomail.org",
        "contactNumber":"null"
        "kyc_verified": "notInitiated",
        "adminPackage": false,
        "accountAddress": "0x0750D458d445f6A8d4CdA5DBF1E870BAaC2e67Ee",
        "ETHBalance": "0",
        "tokenBalance": 0
    }
}

upload KYC data

POST https://api.mycontract.co:3001/v1/admin/uploadKYC

This endpoint is used to upload KYC data.

Path Parameters

Name
Type
Description

Authorization

string

JWT token

Request Body

Name
Type
Description

companyName

string

Company name

companyLogo

string

Compnay logo in .png format

fullName

string

User's full name

ISDCode

string

User's ISD code

contactNumber

number

User's phone number

kycDocName1

string

Document name

kycDoc1

object

Document photo in .jpeg format

kycDocName2

string

Document name

kycDoc2

string

Document photo in .jpeg format

kycDocName3

string

Document name

kycDoc3

string

Document photo in .jpeg format

{
    "status": true,
    "message": "KYC submitted successfully"
}

Client list

GET https://api.mycontract.co:3001/v1/admin/client/list

This endpoint is used to retrieve client list.

Headers

Name
Type
Description

Authorization

string

JWT token

{ 
  status: true,
  clientData: []
 }

Individual client detail

GET https://api.mycontract.co:3001/v1/admin/client/:clientId

Headers

Name
Type
Description

Authorization

string

JWT token

{ 
  status: true,
  clientData: []
 }

Update client KYC status

POST https://api.mycontract.co:3001/v1/admin/client/updateKYC/:clientId

This endpoint is used to update KYC status.

Headers

Name
Type
Description

Authorization

string

JWT token

Request Body

Name
Type
Description

kycStatus

string

KYC status parameters ('notInitiated','active', 'pending', 'rejected')

accountStatus

boolean

client account status in terms of true and false.

{ 
    status: true, 
    message: "data updated" 
}

Logout

GET https://api.mycontract.co:3001/v1/admin/logout

This endpoint is used to end user session.

Path Parameters

Name
Type
Description

Authorization

string

JWT token

{
    "status": true,
    "message": "successfully signout"
}

Last updated