Tokenization platform user api

post
User signup

https://api.mycontract.co:3001/v1/:projectName/user/signup
Request
Response
Query Parameters
firstName
optional
string
User's first name
LastName
optional
string
User's last name
email
optional
string
Email address of user.
password
optional
string
Password of user
200: OK
Cake successfully retrieved.
{
"status": true,
"message": "Please verify your email address by clicking the link that we have mailed you!"
}
302: Found
Could not find a cake matching this query.
{
"status": false,
"message": "That email is already taken."
}

post
User login

https://api.mycontract.co:3001/v1/:projectName/user/login
Request
Response
Form Data Parameters
email
optional
string
user's email id
password
optional
string
user's password
200: OK
{
"status": true,
"token": JWT token
}
302: Found
{
"token": "failure",
"message": "Oops! Wrong password."
}

post
User KYC submission

https://api.mycontract.co:3001/v1/:projectName/user/kyc
Request
Response
Headers
Authorization
required
string
JWT token
Form Data Parameters
kycDocName1
optional
string
Document name for eg( national id , passport )
kycDoc1
optional
object
Document in .jpeg format
kycDocName2
optional
string
Document name for eg( national id , passport )
kycDoc2
optional
object
Document in .jpeg format
kycDocName3
optional
string
Document name for eg( national id , passport )
kycDoc3
optional
object
Document in .jpeg format
ISDCode
optional
string
Country isd code
contactNumber
optional
number
Contact number
country
optional
string
Country name
200: OK
{
status: true,
message: "KYC Submitted."
}
400: Bad Request
{
status: false,
message: "error occured. only jpeg allowed"
}

get
Platform transaction logs

https://api.mycontract.co:3001/v1/Demo/:projectName/transactions
Request
Response
Headers
Authorization
required
string
JWT token
200: OK
{
"tokenTransferLogs": []
}
400: Bad Request
{
status: false,
message: "Error occured while fetching data"
}

get
User's wallet with balance

https://api.mycontract.co:3001/v1/:projectName/user/wallets
Request
Response
Path Parameters
Authorization
required
string
JWT token
200: OK
{
"status": true
"ETHAddress": "0x903c304e0Cb1E53D0b0146D5bAF4Dfd8d29F8853",
"ETHBalance": "0",
"BTCAddress": "1ApGZheEjuMZ4aEyXfvYEo9YFJ8KiYYRcj",
"BTCBalance": "0.00000000"
}
400: Bad Request
{
status: false,
message: "Network error occured"
}

get
User's profile details

https://api.mycontract.co:3001/v1/:projectName/user/profile
Request
Response
Headers
Authorization
required
string
200: OK
{
"status": true,
"userData": {
"firstName": "akshay",
"lastName": "pilankar",
"email": "akshay@xinfin.org",
"uniqueId": "8576f9e0-2acd-11e9-993f-29be15409e48",
"contactNumber": "null - 9878944560",
"accountStatus": true
}
}
302: Found
{
status: false,
message: "error occured."
}

get
Tokenization platform information

https://api.mycontract.co:3001/v1/:projectName/user/platform/info
Request
Response
Path Parameters
Authorization
required
string
200: OK
{
"status": true,
"projectData": {
"siteLogo": dataImageURL ,
"siteName": "ndkjfdkjull",
"coinName": "Demo",
"coinSymbol": "Dmo",
"tokenSold": 0,
"tokenSupply": "1000000",
"softCap": "100",
"minimumContribution": 10,
"bonusRate": 0,
"homeURL": "null",
"contactEmail": null,
"startDate": "2/5/2019",
"endDate": "2/5/2019"
}
}
400: Bad Request
{
status: false,
message: "error occured."
}

get
Token price in terms of ETHER , BITCOIN & USD

https://api.mycontract.co:3001/v1/:projectName/user/platform/tokenPrice
Request
Response
Headers
Authorization
required
string
JWT token
200: OK
{
"status": true,
"tokenBTC": 0.00031572,
"tokenETH": 0.01,
"tokenUSD": 1.0841288076
}
400: Bad Request
{
message: "Network error occured"
}

get
User's ETHER and BITCOIN balance

https://api.mycontract.co:3001/v1/:projectName/user/balances
Request
Response
Headers
Authorization
required
string
JWT token
200: OK
{
"ETHBalance": "0",
"BTCBalance": "0.00000000"
}
400: Bad Request
{
message: "Network error occured"
}