Create Maw3
Changed onCreate 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.
Request
- Base URLhttps://sandbox.smileapi.io/v1
- URLhttps://sandbox.smileapi.io/v1/beta/maws/requestMaw3
- AuthHTTP basic
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"
}
]
}
}Changes
- breaking
added to the
/////request propertyallOflist - breaking
added to the
/////request propertyallOflist - breaking
added to the
/////request propertyallOflist - breaking
the
/////request property type changed fromstringto no type, and format fromdate-timeto no format - breaking
the
/////request property type changed fromstringto no type, and format fromdate-timeto no format - breaking
the
/////request property type changed fromstringto no type, and format fromdate-timeto no format - breaking
the response property
///became optional for the status - breaking
the
///////response's property type changed fromstringto no type, and format fromdate-timeto no format for status - breaking
the
///////////response's property type changed fromstringto no type, and format fromdate-timeto no format for status - breaking
the
///////////response's property type changed fromstringto no type, and format fromdate-timeto no format for status - breaking
the
///////response's property type changed fromstringto no type, and format fromdate-timeto no format for status - breaking
the
///////response's property type changed fromstringto no type, and format fromdate-timeto no format for status - breaking
the
///////response's property type changed fromstringto no type, and format fromdate-timeto no format for status - info
added to the
///////response propertyallOflist for the response status - info
added to the
///////////response propertyallOflist for the response status - info
added to the
///////////response propertyallOflist for the response status - info
added to the
///////response propertyallOflist for the response status - info
added to the
///////response propertyallOflist for the response status - info
added to the
///////response propertyallOflist for the response status
- breaking
- info
added the optional property
///to the response with the status
- info