Get Events Response
- successType: booleanrequired
Indicates whether this Events API request was processed without error.
- errorType: object
Only present when 'success' is false. A JSON object containing the error details. See Error Codes List
- codeType: integer
The numeric code for the error.
- messageType: string
A human readable expression of the error code.
- eventsType: array object[]
Present when 'success' is true
- metadataType: objectrequired
- payloadrequired
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
- lastType: string
_event Present when 'success' is true. The last event reference in this response. Will be set to the value of your supplied
last_eventquery string argument if no newer events are found. Should be used as a pointer to fetch the next set as follows ?last_event=1.106.1692874379.2 - lastType: string
_event _time Present when 'success' is true. The time of the last event in the returned set of events.
- numType: integer
_rows Present when 'success' is true. The number of events returned in this response.
{
"events": [
{
"metadata": {
"event_id": "1.106.1692926344.8",
"webhook_delivered": true,
"payload_format": "mobile-money"
},
"payload": {
"reference": "1.106.1692926344.9",
"accountname": "string",
"amount": "10000",
"amounttype": "centile",
"channel": "KENYA.SAFARICOM",
"currency": "KES",
"customerreference": "ref101",
"date": "2023-08-25T01:19:04Z",
"mac": "string",
"msisdn": "254000000001",
"operatorreference": "string",
"sourcereference": "1.106.1692926344.8",
"success": "true",
"target": "000001",
"type": "notification"
}
}
],
"last_event": "1.106.1692926344.8",
"last_event_time": "2023-08-25T01:19:04Z",
"num_rows": 1,
"success": true
}