Data Model

Overview

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

Your webhook endpoint will receive a POST request from ECOM that contains an eventType parameter with a value of
"TRANSACTION_STATUS_CHANGED" . It is used to notify your system of the transaction status (success, failed)

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

Request Model

Fields Description

Field NameData TypeDescription
ecomIdstringUnique identifier for the e-commerce transaction.
paymentStatusstringCurrent status of the transaction (e.g., "CAPTURED", "FAILURE").
productstringName or description of the product being purchased. (e.g., "E_LINKS","E_API").
amountnumberTotal amount of the transaction.
currencystringCurrency code for the transaction (e.g., "KWD").
invoiceIdstringUnique identifier for the invoice associated with the transaction.
ecomReferencestringReference ID provided by the e-commerce platform.
productPaymentTokenstringToken representing the product payment (used for verification).
merchantReferencestringReference ID provided by the merchant for tracking purposes.
customerFullNamestringFull name of the customer.
customerPhoneCodestringCountry code for the customer's phone number (e.g., "+965" for the KW).
customerPhoneNumberstringCustomer's phone number without the country code.
paymentMethodstringMethod used for payment (e.g., "VISA","MASTERCARD", "KNET").
paidAtDateTimestamp indicating when the payment was completed. (eg "2025-01-30T11:28:33.879Z")
paymentIdstringUnique identifier for the payment.
trackingIdstringIdentifier used for tracking the transaction.
referenceIdstringReference ID associated with the transaction.
authorizationIdstringIdentifier for the payment authorization.
orderIdstringUnique identifier for the order associated with the transaction.
transactionIdstringidentifier for the payment transaction id.