CalculateInstallation

API for calculating the contract, delay and duration of an installation


Parameters

Name In Type Required Description
org path string true tenant name
body body CalculateInstallation true ‘none’

Request body - instance of CalculateInstallation

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
{
  "category": "installation",
  "connectionInstallationFlow": "INSTALA_MM",
  "creationDate": "2019-08-24T14:15:22Z",
  "documentId": "B02214559",
  "donorOperator": "00008",
  "externalId": "MYSIM_123456",
  "linkState": "V",
  "orderType": "Alta FTTH + VOIP",
  "originAccessIsExternal": false,
  "poleInfo": false,
  "scoringLevel": 1,
  "scoringResult": "RISK"
}
Name Type Required Description
category string true Used to categorize the order from a business perspective that can be useful for the OM system
connectionInstallationFlow string false Information of the commit installer (INSTALA_TESA, INSTALA_MM)
creationDate string(date-time) true Provision start date information
documentId string false Contract document identifier to identify if it’s a cableoperator
donorOperator string false Donor operator information
externalId string true ID given by the consumer (to facilitate searches afterwards)
linkState string false Information on the Busy Pair (PO) of the NEBA fiber
orderType string true Installation order type information
originAccessIsExternal boolean true New numbering sales information with external access origin and without transfer of access
poleInfo boolean true Pole information
scoringLevel integer(int8) true It’s the risk level of customer fraud. This value for TMS-YOIGO comes from ROVE interface, other CRM have differents fraud systems
scoringResult string true It’s the overall risk value of customer fraud. This value for TMS-YOIGO comes from ROVE interface, other CRM have differents fraud systems

Request example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20

curl -X POST https://installations.sta.masstack.com/v1/orgs/masmovil/calculate \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: API_KEY" \
 --data-raw "{
  'category': 'installation',
  'connectionInstallationFlow': 'INSTALA_MM',
  'creationDate': '2019-08-24T14:15:22Z',
  'documentId': 'B02214559',
  'donorOperator': '00008',
  'externalId': 'MYSIM_123456',
  'linkState': 'V',
  'orderType': 'Alta FTTH + VOIP',
  'originAccessIsExternal': false,
  'poleInfo': false,
  'scoringLevel': 1,
  'scoringResult': 'RISK'
}" 

Responses

Code Meaning Description Schema
200 OK CalculateInstallation response CalculateInstallationResponse
default Default Error response ErrorDto

Endpoints

ResourceOrder

    CalculateInstallation