Educational Services

For merchants offering educational services, such as online courses, subscriptions, etc.

List of Parameters

FieldData TypeRequiredDescription
total_amountObjectRequiredTotal amount to be charged to customer, not including any discount amount(item amount + tax amount + shipping amount - discount amount)
amountNumberRequiredThe exact format depends on the currency. By default we support 2 decimals, for BHD and KWD we support 3 decimals
currencyStringRequiredThe three-letter ISO currency code e.g SAR
shipping_amountObjectRequired
amountNumberRequired
currencyStringRequired
tax_amountObjectRequired
amountNumberRequired
currencyStringRequired
order_reference_idStringRequiredThe unique order id from the merchant side, this will be used with the settlement and reports
order_numberStringOptionalThe order number from the merchant side, this will be used for communication with the customer. If not passed, it will take the order_reference_id value
discountObjectOptionalRequired only if you allow your customers to use a promo/coupon code on your checkout page
nameString
amountObject
amount
currency
risk_assessmentObjectRequiredRisk assessment information from the merchant side
account_creation_dateDateRequiredStudent registration date (date when the student first enrolled at the institution)
total_order_countIntegerRequiredNo. of successful payment orders of student for this service
is_premium_customerBooleanRequiredAny subscription package/ VIP segmentation of customers (optional if not part of the customer journey)
risk_scoreIntegerOptionalAggregated transaction/ customer risk score by merchant(if available)
date_first_paidStringRequiredDate of first successful order. Will be null if first order (format: dd-mm-yyyy)
date_last_paidStringRequiredDate of last successful order. Will be null if first order (format: dd-mm-yyyy)
order_count_last_24hIntegerOptionalNo. of successful orders of customer on merchant, in the last 24 hours
account_securityObjectOptionalSecurity and identity signals.
is_email_verifiedBooleanOptionaltrue if email is verified by merchant.
is_phone_verifiedBooleanOptionaltrue if email is verified by merchant.
password_last_changedStringOptionalDate of last password reset (format: dd-mm-yyyy).
last_login_dateStringOptionalDate of last login (format: dd-mm-yyyy).
last_verification_methodStringOptionalMethod used for last authentication, for e.g., OTP, Biometric, etc..
device_idStringOptionalUnique device fingerprint/ID from merchant. Any Hash (#) device ID
devices_linkedIntegerOptionalNumber of active devices linked to the account.
educationObjectRequired
education_typeStringRequiredType of educational service or course, for e.g., course, workshop, tutoring.
start_dateStringRequiredThe start date of the service or course. (format: dd-mm-yyyy).
end_dateStringRequiredThe end date of the service or course. (format: dd-mm-yyyy).
event_locationStringRequiredWhether the service/course is online or offline.
purchase_typeStringRequiredWhether it is a subscription-based or one-time purchase.
consumerObjectRequiredThe customer's identifying details.
emailStringRequiredLimited to 128 characters.
phone_numberStringRequiredLimited to 32 characters.
first_nameStringRequired
last_nameStringRequired
itemsArray of ObjectsRequiredComprehensive details about the items in the order
reference_idStringRequiredThe unique id of the product from the merchant side
typeStringOptionalThe type of the product e.g., subscription, 1 time fee, etc. alongside digital or onsite course details. Possible values: One Time - Digital One Time - On site Subscription - Digital Subscription - On site
nameStringRequiredThe name of the service, i.e., Fees duration of the term for which the fees is being charged, e.g., 3 months, 6 months, 9 months, one-time, etc.Name mandatory, Duration optional.Limited to 255 characters.
skuStringRequiredIf applicable, otherwise hardcoded value can be passed. Limited to 128 characters.
quantityIntegerRequiredShould be set to 1
item_urlUrl
image_urlUrl
unit_priceObjectOptional
amountNumber
currencyString
tax_amountObjectOptional
amountNumberOptional
currencyStringOptional
discount_amountObjectOptional
amountNumberOptional
currencyStringRequired
total_amountObjectRequired
amountNumberRequired
currencyStringRequired
country_codeStringRequired
descriptionStringRequired
merchant_urlObjectRequired
cancelUrlRequired
failureUrlRequired
successUrlRequired
billing_addressObjectRequired (if available)
cityString
country_codeString
first_nameString
last_nameString
line1String
line2String
phone_numberString
regionString
shipping_addressObjectOptional
cityString
country_codeString
first_nameString
last_nameString
line1String
line2String
phone_numberString
regionString
localeStringRequired(Recommended to be passed for optimum customer experience)
platformStringRequiredThe platform where the Tamara order is being initiated from e.g., web, mobile, etc.
is_mobileBooleanRequiredWhether the order is being initiated from a mobile device or not
payment_typeStringRequired only if single checkout is disabled
instalmentsIntegerRequired only if single checkout is disabled
expire_in_minutesIntegerRequired only if customOrder expiry time in minutes
additional_dataObjectAny additional order data information from the merchant side

Request Payload Sample

{
   "total_amount": {
       "amount": 50.00,
       "currency": "SAR"
   },
   "shipping_amount": {
       "amount": 1,
       "currency": "SAR"
   },
   "tax_amount": {
       "amount": 7.35,
       "currency": "SAR"
   },
   "order_reference_id": "abd12331-a123-1234-4567-473fkid5",
   "risk_assessment": {
        "is_premium_customer": true,
        "account_creation_date": "31-01-2019",
        "total_order_count": 12,
        "risk_score": 5,
        "date_first_paid": "31-01-2019",
        "date_last_paid": "31-01-2026",
        "order_count_last_24h": 0,
        "account_security": {
            "is_email_verified": true,
            "is_phone_verified": true,
            "password_last_changed": "31-01-2026",
            "last_login_date": "31-01-2026",
            "last_verification_method": "OTP",
            "device_id": "#123",
            "devices_linked": "2"
        },
         "education": {
                "education_type": "Python Course",
                "start_date": "01-03-2026",
                "end_date": "01-04-2027",
                "event_location": "Online",
                "purchase_type": "One-time"
            }
        },
   "consumer": {
       "phone_number": "502223333",
       "first_name": "Mona",
       "last_name": "Lisa",
       "email": "[email protected]"
   },
   "items": [
       {
           "sku": "1234-677879",
           "name": "Python_course_3_months",
           "type": "Subscription - Digital",
           "item_url": "",
           "quantity": 1,
           "image_url": "",
           "tax_amount": {
               "amount": 0.0,
               "currency": "AED"
           },
           "unit_price": {
               "amount": 0.0,
               "currency": "AED"
           },
           "reference_id": "3198",
           "total_amount": {
               "amount": 4720.49,
               "currency": "AED"
           },
           "discount_amount": {
               "amount": 0.0,
               "currency": "AED"
           }
       }
   ],
   "country_code": "SA",
   "description": "Test Order",
   "merchant_url": {
       "cancel": "http://example.com/#/cancel",
       "failure": "http://example.com/#/fail",
       "success": "http://example.com/#/success"
   },
   "locale": "ar_SA",
   "platform": "platform name here",
   "is_mobile": false
}