Skip to main content

Checkout Event

The checkout event type is used when a customer completes a checkout or cart completion flow. Typically sent at the point of purchase before payment processing.

Category: Monetary Relevant feedback outcomes: success, fail, fraud, dispute, chargeback, rejected, refund

Request Example​

POST /api/v1/generic/validate HTTP/1.1
Host: api.sa.mubeen.ai
X-API-Key: <your_key>
Content-Type: application/json

{
"event_type": "checkout",
"timestamp": "2025-03-15T11:45:00Z",
"trx_id": "trx_c3d4e5f6a7b8",
"attempt_id": "att_001",
"order_id": "order_55432",
"external_id": "checkout_55432",
"device_id": "fp_abcdef1234567890",
"user_id": "usr_234567",
"user_email": "[email protected]",
"full_name": "Fatima Hassan",
"phone_number": "+971523456789",
"ip_address": "91.74.112.33",
"ip_country": "AE",
"user_agent": "Mozilla/5.0 (Linux; Android 14; Pixel 8)",
"payment_method": "Mastercard",
"card_bin": "55123456",
"card_last4": "7890",
"card_expiry_month": 11,
"card_expiry_year": 2027,
"card_fingerprint": "b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7",
"card_brand": "mastercard",
"card_issuing_bank": "Saudi National Bank",
"card_issuer_country": "AE",
"transaction_amount": 89.50,
"currency": "USD",
"merchant_id": "mer_storefront_22",
"account_created_at": "2024-09-01T00:00:00Z",
"product_ids_list": ["FIFA Points", "Valorant"],
"channel": "web",
"platform": "web"
}

Response Example​

{
"request_id": "c3d4e5f6-a7b8-9012-cdef-234567890abc",
"decision": "log",
"risk_score": 8,
"risk_level": "low"
}

Feedback Examples​

Successful Checkout​

{
"request_id": "c3d4e5f6-a7b8-9012-cdef-234567890abc",
"outcome": "success",
"external_id": "checkout_55432"
}

Rejected Checkout​

{
"request_id": "c3d4e5f6-a7b8-9012-cdef-234567890abc",
"outcome": "rejected",
"outcome_details": {
"rejection_reason": "velocity_limit_exceeded",
"rule_triggered": "max_checkouts_per_hour"
},
"external_id": "checkout_55432"
}

Key Fields for Checkout Events​

FieldImportanceNotes
transaction_amountRequiredTotal cart value
currencyRecommendedCurrency code (ISO 4217, e.g., USD). Not enforced by the API. If omitted, the amount is treated as USD, so a non-USD amount is converted wrongly and USD-based rules and reporting will be off
merchant_idRecommendedMerchant the cart belongs to (e.g., mer_storefront_22)
product_ids_listRecommendedItems in the cart
payment_methodRecommendedPayment method selected at checkout