Car Rentals

For merchants offering car rentals

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
is_premium_customerBooleanRequiredAny subscription package/ VIP segmentation of customers based on internal segmentation based on loyalty, spend, or plan. (if available)
account_creation_dateStringRequiredThe original date the customer first subscribed to any service. Longer tenure generally indicates lower risk (format: dd-mm-yyyy)
total_order_countIntegerRequiredNo. of successful orders of customer on merchant
risk_scoreIntegerRequiredAggregated 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.
car_rentalsObjectRequired
rental_companyStringRequired (if available)The name of the rental car company. For example, "Hertz", "Enterprise", etc.

Null, in case its the merchant itself and not an aggregator
pickup_dateStringRequired (if available)Date of initial pick up (format: dd-mm-yyyy).
dropoff_dateStringRequired (if available)Date of final drop off (format: dd-mm-yyyy).
pickup_locationStringRequired (if available)Address of the rental car pick-up location. Airport code if applicable.
dropoff_locationStringRequired (if available)Address of the rental car return location. Airport code if applicable.
car_classStringRequired (if available)The rental class (e.g., economy, luxury, SUV).
number_of_driversIntegerRequired (if available)Total count of drivers on the booking.
name_of_driversObjectOptionalArray of driver names.
_driver1_nameStringOptional
_driver2_nameStringOptional
insurance_purchasedBooleanOptionaltrue, if the customer purchased rental insurance (e.g., cancellation, travel, or damage cover).
add_onsStringOptionalAdditional purchased extras (e.g., additional driver, GPS, child seat, unlimited mileage).
deposit_requiredBooleanOptionaltrue, if the rental requires a security deposit or pre-authorization hold.
deposit_payment_typeStringOptionalHow the deposit is funded. One of: Cash, Credit Card, Debit Card, Prepaid Card.
consumerObjectRequiredThe customer's identifying details.
emailStringOptionalLimited 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
typeStringRequiredThe type of the service
nameStringRequiredThe name of the service
Limited to 255 characters.
skuStringRequiredIf applicable, otherwise hardcoded value can be passed. Limited to 128 characters.
quantityIntegerRequiredThe number of bookings for this service
item_urlUrlOptional
image_urlUrlOptional
unit_priceObjectOptional
amountNumber
currencyString
tax_amountObjectOptional
amountNumber
currencyString
discount_amountObjectOptional
amountNumber
currencyString
total_amountObjectRequiredThe total amount of the product
amountNumberRequired
currencyStringRequired
country_codeStringRequiredThe two-character ISO 3166-1 country code
descriptionStringRequiredBrief details about the order
merchant_urlObjectRequiredThis object includes all the redirect URLs that the customer will be redirected to from the Tamara checkout page in different cases.
cancelUrlRequiredWhen the user manually cancels the checkout session
failureUrlRequiredWhen the checkout session fails due to a network error or the user is declined
successUrlRequiredWhen the checkout session is successful
billing_addressObjectRequired (if available)
cityString
country_codeString
first_nameString
last_nameString
line1String
line2String
phone_numberString
regionString
shipping_addressObjectRequired (Optional, if not available for digital services)
cityStringRequired
country_codeStringRequired
first_nameStringRequired
last_nameStringRequired
line1StringRequired
line2StringRequired
phone_numberStringRequired
regionStringRequired
localeStringRequired(Recommended to be passed for optimum customer experience)
platformStringRequiredThe platform where the Tamara order is being initiated from, for 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"
        },
        "car_rentals": {
            "rental_company": "Hertz",
            "pickup_date": "08-07-2026",
            "dropoff_date": "10-07-2026",
            "pickup_location": "City Center, Riyadh",
            "dropoff_location": "City Center, Riyadh",
            "car_class": "SUV",
            "number_of_drivers": 1,
            "name_of_drivers": {
                "driver1_name": "ABC DEF",
                "driver2_name": "UVW XYZ"
            },
            "insurance_purchased": true,
            "add_ons": "Child seat",
            "deposit_required": true,
            "deposit_payment_type": "Credit Card"
        }
    },
    "consumer": {
        "phone_number": "502223333",
        "first_name": "Mona",
        "last_name": "Lisa",
        "email": "[email protected]"
    },
    "items": [
        {
            "total_amount": {
                "amount": 41.65,
                "currency": "SAR"
            },
            "reference_id": "123456",
            "type": "home_internet",
            "name": "wifi_12_months",
            "sku": "SA-12436",
            "quantity": 1,
            "tax_amount": {
                "amount": 7.35,
                "currency": "SAR"
            }
        }
    ],
    "country_code": "SA",
    "description": "Test Order",
    "merchant_url": {
        "cancel": "http://example.com/#/cancel",
        "failure": "http://example.com/#/fail",
        "success": "http://example.com/#/success"
    },
    "shipping_address": {
        "country_code": "SA",
        "first_name": "Mona",
        "last_name": "Lisa",
        "line1": "3764 Al Urubah Rd",
        "line2": "string",
        "region": "As Sulimaniyah",
        "postal_code": "12345",
        "city": "Riyadh",
        "phone_number": "502223333"
    },
    "locale": "ar_SA",
    "platform": "platform name here",
    "is_mobile": false
}