Account related apis

All account related apis.

post
Sign Up

https://api.mycontract.co:3001/v1/admin/signup
This endpoint allows you to signup for admin.
Request
Response
Form Data Parameters
email
required
string
User email
password
required
string
User password
firstName
required
string
First name of user
lastName
required
string
Last name of user
200: OK
{
"status": true,
"info": "Please verify your email address by clicking the link that we have mailed you!"
}
409: Conflict
{
"status": false,
"info": "That email was already taken."
}
502: Bad Gateway
{
'status': "failure",
'message': "error"
}

post
Login

https://api.mycontract.co:3001/v1/admin/login
This endpoint allows you to login as admin.
Request
Response
Query Parameters
email
required
string
User email.
password
required
string
Password for respective email address.
200: OK
{
"status": true,
"token": // JWT token
}
302: Found
{
"token": false,
"message": "Hello! Active your Account! Check Your email for Activation Link."
}

get
Profile details

https://api.mycontract.co:3001/v1/admin/details
This endpoint is used to get admin profile details
Request
Response
Headers
Authorization
required
string
JWT token
200: OK
{
"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
}
}
302: Found
{
status: false,
message: "error occured while fetching data"
}

post
upload KYC data

https://api.mycontract.co:3001/v1/admin/uploadKYC
This endpoint is used to upload KYC data.
Request
Response
Path Parameters
Authorization
required
string
JWT token
Form Data Parameters
companyName
optional
string
Company name
companyLogo
optional
string
Compnay logo in .png format
fullName
optional
string
User's full name
ISDCode
optional
string
User's ISD code
contactNumber
optional
number
User's phone number
kycDocName1
optional
string
Document name
kycDoc1
optional
object
Document photo in .jpeg format
kycDocName2
optional
string
Document name
kycDoc2
optional
string
Document photo in .jpeg format
kycDocName3
optional
string
Document name
kycDoc3
optional
string
Document photo in .jpeg format
200: OK
{
"status": true,
"message": "KYC submitted successfully"
}
409: Conflict
{
"status": false,
"message": "Error occured while uploading! Please check image extension! only png and jpeg , jpg allowed for site Logo"
}

get
Client list

https://api.mycontract.co:3001/v1/admin/client/list
This endpoint is used to retrieve client list.
Request
Response
Headers
Authorization
required
string
JWT token
200: OK
{
status: true,
clientData: []
}
302: Found
{
status: false,
message: "error"
}

get
Individual client detail

https://api.mycontract.co:3001/v1/admin/client/:clientId
Request
Response
Headers
Authorization
optional
string
JWT token
200: OK
{
status: true,
clientData: []
}
302: Found
{
status: false,
message: "error"
}

post
Update client KYC status

https://api.mycontract.co:3001/v1/admin/client/updateKYC/:clientId
This endpoint is used to update KYC status.
Request
Response
Headers
Authorization
optional
string
JWT token
Body Parameters
kycStatus
optional
string
KYC status parameters ('notInitiated','active', 'pending', 'rejected')
accountStatus
optional
boolean
client account status in terms of true and false.
200: OK
{
status: true,
message: "data updated"
}
302: Found
{
status: false,
message: "error occured"
}

get
Logout

https://api.mycontract.co:3001/v1/admin/logout
This endpoint is used to end user session.
Request
Response
Path Parameters
Authorization
optional
string
JWT token
200: OK
{
"status": true,
"message": "successfully signout"
}