Deposit Data Model

Data Model

Overview

The "Deposit Data Model" is a Data model type used in your webhook endpoint. This model provides information about any BalanceTransferred event.

Your webhook endpoint will receive a POST request from MyFatooah that contains an EventType parameter with a value of "3". It is used to notify your system of the new deposit whenever Myfatoorah transferred the balance to your bank account. Detailed functionality of how to implement your webhook endpoint is explained in the Webhook section.

Now, we are going to declare the Transaction Data Model properties of your endpoint and its models along with each accepted parameter and possible value.


Request Model

Input ParameterTypeDescription
DepositReferencestring
DepositedAmountstring
NumberOfTransactionsstring
DepositForstringVENDOR
SUPPLIER
SupplierCodenumber

Sample Message

The below sample JSON message is sent by MyFatoorah to your endpoint.

{
   "EventType":3,
   "Event":"BalanceTransferred",
   "DateTime":"04032021212041",
   "CountryIsoCode":"KWT",
   "Data":{
      "DepositReference":"2021000002",
      "DepositedAmount":"6917.282",
      "NumberOfTransactions":"24",
      "DepositFor":"VENDOR",
      "SupplierCode":""
   }
}
{
   "EventType":3,
   "Event":"BalanceTransferred",
   "DateTime":"04032021212041",
   "CountryIsoCode":"KWT",
   "Data":{
      "DepositReference":"2021000002",
      "DepositedAmount":"6917.282",
      "NumberOfTransactions":"24",
      "DepositFor":"SUPPLIER",
      "SupplierCode":3
   }
}

👍

Signature

To generate the signature of this model, you should order only the above parameters alphabetic with its values then encrypt it by the secret key.

The following will be a sample string used in generating the signature.

DepositedAmount=6917.282,DepositFor=VENDOR,DepositReference=2021000002,NumberOfTransactions=24,SupplierCode=