Affordability Webhook

Every time an affordability is generated, a webhook is sent to the URL.
This response usually contains an array of all the affordability responses that have been generated for that particular statement.

Affordability Webhook Response

Here is an example of the response from an affordability endpoint call that is sent to the webhook.

To compare the hash; serialize the whole affordability response object, hash the response and compare both

{
	"metadata": {
		"statusMessage": "SUCCESSFUL",
		"statusCode": "200",
		"timeStamp": "07/05/2022 03:08:13",
		"responseType": "AFFORDABILITY",
		"hmacMessage": "a77e2dec0562fea7c61c4336f6b14613eadeda512f8d6585fe67aa17fafead0a6e26a57248c9ef332398a964e16066c8664492884b991c38ae2aae336c991758"
	},
	"statementName": "Mandatory Statement Name",
	"statementKey": 938,
  "statementUniqueCode":"67hgcd56",
	"affordabilityResponse": [
		{
			"Key": 190,
			"StatementKey": 938,
			"DTI": 0.2,
			"LoanTenure": 12,
			"MonthlyDisposableIncomeOrMonthlyAffordabilityAmount": 0,
			"AffordabilityAmount": 0,
			"CreatedDate": "2022-07-05T03:08:13.484+00:00",
			"AveragePredictedSalary": 0,
			"AverageOtherIncome": 0,
			"AverageMonthlyLoanRepaymentAmount": 1000
		},
		{
			"Key": 188,
			"StatementKey": 938,
			"DTI": 0.2,
			"LoanTenure": 12,
			"MonthlyDisposableIncomeOrMonthlyAffordabilityAmount": 0,
			"AffordabilityAmount": 0,
			"CreatedDate": "2022-07-04T15:35:05.552+00:00",
			"AveragePredictedSalary": 0,
			"AverageOtherIncome": 0,
			"AverageMonthlyLoanRepaymentAmount": 1000
		}
	],
	"creditScoreResponse": null,
	"insightsResponse": null
}