Maws (Beta)
Create Maw3
Create a Maw object.
This endpoint supports different templates depending on region and use case.
Required parameters: consent, templateId, plus additional fields depending on the selected template.
Supported Templates
| Template ID | Region | Required Parameters |
|---|---|---|
| tpl-maw004001 | Mexico (MX) | mobileNumber, countryCode, fullName, idType=NATIONAL_ID, idNumber |
| tpl-maw004002 | Africa countries | gaid |
| tpl-maw004003 | Philippines (PH) | mobileNumber, countryCode, fullName, idType=NATIONAL_ID, idNumber |
Sandbox Test Values
| Template ID | Parameters | Expected Response |
|---|---|---|
| tpl-maw004001 | mobileNumber = 529559991234, countryCode = MX, fullName = George, idNumber = ZAZD801124MBSYQN13 | resultCode = SUCCESS |
| tpl-maw004002 | gaid = '00000000-0000-0000-0000-000000000000' | resultCode = SUCCESS |
| tpl-maw004003 | mobileNumber = 639559991234, countryCode = PH, fullName = George, idNumber = 4561234567 | resultCode = SUCCESS |
For all other valid input combinations, if no mock data match is found, the system will return:
resultCode = NO_DATA, and no items will be included in the response.
post/beta/maws/requestMaw3
Request body
Example request
{
"mobileNumber": "529559991234",
"fullName": "George Smith",
"idNumber": "ZAZD801124MBSYQN13",
"idType": "NATIONAL_ID",
"gaid": "00000000-0000-0000-0000-000000000000",
"countryCode": "PH",
"templateId": "tpl-maw004001",
"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": {
"mobileNumber": "639559991234",
"countryCode": "PH",
"templateId": "tpl-maw002001",
"consent": {
"type": "Terms and Conditions",
"version": "1.0.0",
"consentedAt": "2021-04-14T09:30:24Z",
"consentedWith": "I agree to the terms and conditions"
}
},
"maw2Items": [
{
"date": "2000-01-21"
}
]
}
}