Custom Input Webhooks

Webhooks for the Custom Input merit

Step Completed

The webhook results will be sent in the following format for 'Match' and 'noMatch':

"status": 200,
"id": "custom-fields",
"data": {
	"fields": [
	  {
		"atomicFieldParams": {
			"country": "NG",
			"key": "national-id.firstName",
			"shouldCheckFormat": false,
			"shouldFilter": false
		  },
		  "type": "text",
		  "value": "JOHN"
		},
		"_id": "620671cb1bb52a001cf6bec0",
		"name": "first-name",
		"label": "First name",
		"type": "atomic",
		"isMandatory": false,
		"children": []
	  },
	  {
		"atomicFieldParams": {
		  "type": "text",
		  "value": "DOE"
		},
		"_id": "620680d4565c18001c42c238",
		"name": "last-name",
		"label": "Last name",
		"type": "atomic",
		"isMandatory": true,
		"children": []
	  },
	  {
		"atomicFieldParams": {
		  "type": "text",
		  "value": "78-143699"
		},
		"_id": "620f71a5b9ff73001b3fc4d7",
		"name": "social-security-number",
		"label": "Social security number",
		"type": "atomic",
		"isMandatory": true,
		"children": []
	  },
	  {
		"_id": "620680d4565c18001c42c22c",
		"name": "offer-selection",
		"label": "Please select offer from the list",
		"type": "select",
		  {
			"_id": "620680d4565c18001c42c22f",
			"name": "offer-selection-option1",
			"label": "Option 1",
			"type": "group",
			"children": [],
			"isMandatory": false,
			"thumbnail": "https://media.getmati.com/file?location=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmaWxlTmFtZSI6IjFiYWNiMzYyLTc5OTEtNDVlYy05M2ZiLTFmYmM3NDA4YmExNS5wbmciLCJmb2xkZXIiOiJtZWRpYSIsImlhdCI6MTY0NTE4MDIwMiwiZXhwIjoxNjQ1MjY2NjAyLCJhdWQiOiI1NTFiMTEzNy03ZTI2LTQwOGUtYWIxOC05OWRhZTlkYzNiNjMifQ.ywSEoalxvA06z0XTvamDR7Zh8zWUxH4KCDeWgk6UMlM"
		  },
		  {
			"_id": "620680d4565c18001c42c22e",
			"name": "offer-selection-option2",
			"label": "Option 2",
			"type": "group",
			"children": [],
			"isMandatory": false,
			"thumbnail": "https://media.getmati.com/file?location=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmaWxlTmFtZSI6IjZjNmEyNjY4LTdkNTAtNDY0ZS05MzIwLTVkMzExYTg2MDAyZS5wbmciLCJmb2xkZXIiOiJtZWRpYSIsImlhdCI6MTY0NTE4MDIwMiwiZXhwIjoxNjQ1MjY2NjAyLCJhdWQiOiI1NTFiMTEzNy03ZTI2LTQwOGUtYWIxOC05OWRhZTlkYzNiNjMifQ.6VeVR0kl1Pyi7n6-9t7v1wLWUlNMqtR26Mtu6VyYkN8"
		  },
		  {
			"_id": "620680d4565c18001c42c22d",
			"name": "offer-r",
			"label": "Offering 3",
			"type": "group",
			"children": [],
			"isMandatory": false,
			"thumbnail": "https://media.getmati.com/file?location=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmaWxlTmFtZSI6ImMxMWU4ZTg3LWUxOWItNDI1NC05Nzc0LTQ2MGE3MzE3MmYwOS5wbmciLCJmb2xkZXIiOiJtZWRpYSIsImlhdCI6MTY0NTE4MDIwMiwiZXhwIjoxNjQ1MjY2NjAyLCJhdWQiOiI1NTFiMTEzNy03ZTI2LTQwOGUtYWIxOC05OWRhZTlkYzNiNjMifQ.ONEBhN3HMLlKtdHUMId3u69clLWBez6NN8xthQH_oqo"
		  }
		],
		"isMandatory": false,
		"selectedGroup": "offer-selection-option1"
	  }
	]
}