Income Estimators (Alpha)
Create IncomeEstimator
Create an IncomeEstimator object.
This endpoint requires consent, templateId, emailAddress, and countryCode.
Supported template
| Template ID | Country | Required parameters |
|---|---|---|
| tpl-incomeestimator-001 | PH | consent, templateId, emailAddress, countryCode |
Field rules
- templateId must be tpl-incomeestimator-001.
- emailAddress must be a valid email address.
- countryCode identifies the country or region of the subject.
Interpreting the result
- probability is the raw model probability that the subject is a High earner. Use it as the primary decisioning signal.
- certainty indicates how far probability is from the decision boundary of 0.5. It is not another probability.
- tier is a convenience label intended for presentation in your user interface.
Sandbox Test Values
| Parameter | Value | Expected Response |
|---|---|---|
| countryCode | PH | |
| emailAddress | gpalomero1234@smileapi.io | resultCode = SUCCESS |
post/incomes/alpha/incomeestimators
Request body
Example request
{
"consent": {
"type": "Terms and Conditions",
"version": "1.0.0",
"consentedAt": "2021-04-14T09:30:24Z",
"consentedWith": "I agree to the terms and conditions"
},
"templateId": "tpl-incomeestimator-001",
"emailAddress": "gpalomero1234@smileapi.io",
"countryCode": "PH"
}Response
OK
Example response
{
"code": "OK",
"message": "Success",
"requestId": "5b79399a-6852-4234-bb0e-ad472648282d",
"data": {
"id": "ind-1234567890",
"createdAt": "2021-04-14T09:30:24Z",
"requestMeta": {
"consent": {
"type": "Terms and Conditions",
"version": "1.0.0",
"consentedAt": "2021-04-14T09:30:24Z",
"consentedWith": "I agree to the terms and conditions"
},
"templateId": "tpl-incomeestimator-001",
"emailAddress": "gpalomero1234@smileapi.io",
"countryCode": "PH"
},
"result": {
"income": {
"monthlyMin": 50000,
"monthlyMax": 100000,
"currency": "PHP",
"tier": "HIGH"
},
"probability": 0.7388,
"certainty": "MEDIUM",
"modelVersion": "1.0.0"
}
}
}