Mobile Money Event
This payload is used in two cases:
- in the Events API when the event.metadata.payload_format is "mobile-money"
- in the Create Transaction Callback when callbacks are enabled
- amountType: stringmax length:16required
The value of the transaction in cents. For example 1 KES would be 100
- amounttypeenumconst:centilerequired
Tola only uses centile values
values- centile
- campaignidType: stringmax length:32required
Identifies a particular stream of traffic, eg. Lodgements on Paybill 00001, or Transactions created by a given Relay Endpoint
- channelType: stringmax length:32required
The API identifier in the format
'<COUNTRY>.<OPERATOR>' - currencyType: stringmin length:3max length:3required
The ISO 4217 currency code for this Transaction
- customerreferenceType: stringmax length:32required
For
type = notification, this will contain the reference you provided when callingPOST /transaction.For
type = lodgement, this will contain the text entered by the consumer on their handset when performing the lodgement. - dateType: string Format: date-timerequired
The Date that the transaction was created (ISO 8601 UTC)
- msisdnType: stringmax length:16required
The MSISDN for the Transaction, in full international format
- operatorreferenceType: stringmax length:32required
The unique reference provided by the Operator for this transaction
- referenceType: stringmax length:32required
The Tola.wallet platform reference of this notification
- sourcereferenceType: stringmax length:32required
For
type=notification, the unique Tola reference of the originating Merchant request to Tola'sPOST /transaction. - successType: string enumrequired
The outcome of the funds-transfer where true indicates that funds were transferred.
values- true
- false
- targetType: stringmax length:16required
The account identifier (or paybill number)
- typeType: string enumrequired
the type of notification. For a callback to a Charge or Disbursement this will always be 'notification'. See Lodgements for more informaton on the 'lodgement' type
values- notification
- lodgement
- errorcodeType: integer
an error code, only supplied when
successis equal to "false". See Error Codes List - errormessageType: stringmax length:32
an error message, only supplied when
successis equal to "false". See Error Codes List
{
"reference": "1.123.1435455096.2",
"success": "false",
"sourcereference": "1.123.1435455096.1",
"customerreference": "8FD2KuZNJnBPLKmz",
"operatorreference": "CI220530.1717.A38729",
"channel": "KENYA.SAFARICOM",
"target": "000001",
"date": "2022-05-30T17:19:01Z",
"type": "notification",
"currency": "KES",
"amount": "100",
"amounttype": "centile",
"msisdn": "254000000001",
"errorcode": 5,
"errormessage": "insufficientfunds",
"campaignid": "10001"
}