Footprints (Alpha)
Create Footprint
Create a Footprint object.
This endpoint requires the following mandatory parameters:
- consent
- templateId
Additional required fields depend on the selected templateId.
Supported Templates
| Template ID | Input Type | Required Parameters |
|---|---|---|
| tpl-email-footprint | Email address only | consent, templateId, emailAddress, countryCode |
| tpl-mobile-footprint | Mobile number only | consent, templateId, mobileNumber, countryCode |
| tpl-score-footprint | Email + mobile number | consent, templateId, emailAddress, mobileNumber, countryCode |
| tpl-ftp005001 (deprecated) | Email address only | consent, templateId, emailAddress, countryCode |
| tpl-ftp005002 (deprecated) | Mobile number only | consent, templateId, mobileNumber, countryCode |
Field Rules
- For tpl-ftp005001, emailAddress must be provided and mobileNumber should be omitted or null.
- For tpl-ftp005002, mobileNumber must be provided and emailAddress should be omitted or null.
- For tpl-score-footprint, emailAddress and mobileNumber must both be provided.
- For all templates, countryCode is required and must be a valid ISO country code.
Sandbox Test Values
| Template ID | Test Input | Expected Response |
|---|---|---|
| tpl-email-footprint | emailAddress = gpalomero1234@smileapi.io, countryCode = PH | resultCode = SUCCESS |
| tpl-mobile-footprint | mobileNumber = 639559991234, countryCode = PH | resultCode = SUCCESS |
| tpl-score-footprint | emailAddress = gpalomero1234@smileapi.io, mobileNumber = 639559991234, countryCode = PH | resultCode = SUCCESS |
For all other valid input combinations, if no mock data is matched, the response will return:
resultCode = NO_DATA, and no items will be included.
post/alpha/footprints
Request body
Example request
{
"emailAddress": "gpalomero1234@smileapi.io",
"countryCode": "PH",
"templateId": "tpl-email-footprint",
"footprintItemsTimeout": 5,
"consent": {
"type": "Terms and Conditions",
"version": "1.0.0",
"consentedAt": "2021-04-14T09:30:24Z",
"consentedWith": "I agree to the terms and conditions"
}
}Response
OK
Example response
{
"code": "OK",
"message": "Success",
"requestId": "5b79399a-6852-4234-bb0e-ad472648282d",
"data": {
"createdAt": "2021-04-14T09:30:24Z",
"requestMeta": {
"emailAddress": "gpalomero1234@smileapi.io",
"countryCode": "PH",
"templateId": "tpl-email-footprint",
"footprintItemsTimeout": 5,
"consent": {
"type": "Terms and Conditions",
"version": "1.0.0",
"consentedAt": "2021-04-14T09:30:24Z",
"consentedWith": "I agree to the terms and conditions"
}
}
}
}