post
https://sandbox.smileapi.io/v1/alpha/footprints
Create a Footprint object.
This endpoint requires the following mandatory parameters:
consenttemplateId
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,emailAddressmust be provided andmobileNumbershould be omitted ornull. - For
tpl-ftp005002,mobileNumbermust be provided andemailAddressshould be omitted ornull. - For
tpl-score-footprint,emailAddressandmobileNumbermust both be provided. - For all templates,
countryCodeis required and must be a valid ISO country code.
Sandbox Test Values
| Template ID | Test Input | Expected Response |
|---|---|---|
tpl-email-footprint | emailAddress = [email protected], countryCode = PH | resultCode = SUCCESS |
tpl-mobile-footprint | mobileNumber = 639559991234, countryCode = PH | resultCode = SUCCESS |
tpl-score-footprint | emailAddress = [email protected], 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.
