Checkout Event
- amountType: integer
_centile requiredA total centile amount for the checkout in the iso_currency.
- campaignType: integer
_id requiredTola Identifier for a particular stream of traffic.
- checkoutType: string
_reference requiredA Tola generated unique reference for the checkout session.
- dateType: string
_created requiredDate and time when the checkout session was created in UTC.
- dateType: string
_finalised requiredDate and time when the funds were collected in UTC.
- initiatorType: objectrequired
Details about the entity that created this Checkout request.
- referenceType: stringrequired
Idempotent key specified by the merchant in the checkout request.
- typeenumrequired
Tola enumeration for how the checkout was initiated.
values- merchant
-checkout - reusable
-payment -link
- metadataType: object
The metadata object if supplied when creating the webcheckout, null otherwise.
Example:
metadata: { "trackingRegion": "Kenya" "trackingId": "5", }
- isoType: string
_currency requiredThe ISO 4217 currency code for this Checkout
- itemsType: array object[]required
- amountType: integer
Centile min:1requiredA centile amount for the item in the currency specified for the checkout request.
- descriptionType: stringmin length:1required
A textual description of the item being purchased.
- productType: string
Code requiredAssociated product code with the item if specfied in the checkout request. Null if not specified in checkout request.
- quantityType: integermin:1required
The number of the specified item.
- statusenumrequired
The finalised status of the checkout, funds-transferred can be intrepreted as a success, all other status can be considered as a failure to collect funds.
values- cancelled
- funds
-transferred - no
-more -attempts - timeout
-expired - system
-error
- customerType: string
_remark Contains the value of the customer remark provided at the Checkout creation time or an empty string if not supplied.
- fulfillmentType: array object[]
_details Array of collection attempts ordered by time ascending.
- channelType: stringrequired
The payment supplier details.
- referenceType: stringrequired
The Tola unique transaction reference for a collection attempt initiated by this checkout session.
- statusType: stringrequired
The status of the transaction on the Tola platform via which a payment collection was attempted.
- supplierType: string
_account requiredThe supplier account identifier on the Tola platform.
- supplierType: string
_reference requiredThe referene provided by the payment supplier.
- typeenumrequiredvalues
- charge
- cardcollection
- payerType: object
Information about the identified consumer that completed the checkout, null when payer information is not available.
- confirmedType: string
_channel requiredThe identified payment supplier for the payer.
- idType: stringrequired
- typeenumrequiredvalues
- msisdn
- card
{
"amount_centile": 2000,
"campaign_id": 123,
"checkout_reference": "00FDPZJP3A5",
"customer_remark": "",
"date_created": "2024-11-26T12:32:35Z",
"date_finalised": "2024-11-26T12:35:32Z",
"fulfillment_details": [
{
"channel": "KENYA.SAFARICOM",
"supplier_reference": "XKQ679SM1Z",
"supplier_account": "123456_KE",
"reference": "9.932.1732624452.1",
"status": "ok",
"type": "charge"
}
],
"initiator": {
"reference": "fbe8z0db-8x69-4dcb-b5eb-c7f5927af17e",
"type": "merchant-checkout",
"metadata": null
},
"iso_currency": "KES",
"items": [
{
"amountCentile": 2000,
"description": "Customer Entry",
"productCode": "",
"quantity": 1
}
],
"payer": {
"confirmed_channel": "KENYA.SAFARICOM",
"id": "254000000001",
"type": "msisdn"
},
"status": "funds-transferred",
"user_comments": {
"key": "",
"value": ""
}
}