This API allows users to authenticate and retrieve company valuations. Authentication is required to access the valuation data.
Endpoint: /api/auth/signinExt
{ "email": "yourEmail", "password": "yourPassword" }
{ "yourAccessToken" }
curl -X POST https://mval.m2mcapital.com/api/auth/signinExt \ -H "Content-Type: application/json" \ -d '{"email": "yourEmail", "password": "yourPassword"}'
Endpoint: api/GetCompanyValuations
{ "companyName": "CompanyName", "address": "CompanyAddress", "industry": "Industry", "subIndustry": "SubIndustry", "website": "http://companywebsite.com", "sharePrice": 14.56, "date": "YYYY-MM-DD" }
{ "error": "Valuation not found." }
curl -X GET https://mval.m2mcapital.com/api/GetCompanyValuations \ -H "Authorization: Bearer yourAccessToken"
With companyName and date parameters:
curl -X GET "https://mval.m2mcapital.com/api/GetCompanyValuations/CompanyName" \ -H "Authorization: Bearer yourAccessToken"
{ "error": "Invalid username or password" }
{ "error": "Unauthorized access. Please provide a valid token." }
{ "error": "The specified date is outside the range allowed by your current plan." }
{ "error": "Company not found. The company does not exist, or you do not have access to it." }