Pre-Qualification Session

This endpoint helps you to initiate a pre-qual session for your customers, so they can know exactly how much they can spend with Tamara.

Pre-qualification session flow

Merchants should call the Pre-qual session API for their customers to assess their max spending limit and available payment plans.

Integration sequence

Merchants may implement the Tamara pre-qual session flow across existing and custom merchant assets, similar to widgets:

  1. Customer clicks on the respective button to start the pre-qual session.
  2. Merchant calls the Pre-qual session API from backend.
  3. Merchant opens the returned URL for the customer (HTTP redirect or webview).
  4. Customer inputs the phone number and amount, completes the pre-qual check.
  5. Customer is redirected to the specified merchant page.
📘

Note

Each successful request creates a new session (no idempotency key). Sessions expire after a short TTL (typically 30 minutes).

Timeout

Merchants should configure a 1s timeout for the Pre-qual session API.

If Tamara API does not respond within 1s, then no Pre-qual session will be generated.

Testing

Sample phone numbers for testing

ScenarioUAEKSA
positive971529050943966599050943
positive971529070943966599070943
negative971529050942966599050942
negative971529070942966599070942
Body Params
string
enum
required

The two-character ISO 3166-1 country code

Allowed:
string
required

Post-flow return URL. Must be a valid HTTPS URL (scheme + host).

boolean
required

true for merchant webview; false for browser.

string
enum

Display language for the prequal UI (RFC 1766). Allowed: ar_SA, en_US. Same as Create Checkout Session.

Allowed:
string
length between 8 and 13
^(?:\+?(?:966|971|973|965|968)|0)?\d{8,9}$

The customer's phone number. Same field name as Create Checkout Session consumer.phone_number.

Accepted with or without the country code (with or without +), or starting with 0, for example +966566027755, 966566027755, 0566027755, or 566027755. The country is determined by the country in which the merchant uses Tamara.

Supported countries: Saudi Arabia (966), UAE (971), Bahrain (973), Kuwait (965), and Oman (968).

prequal_amount
object

Optional preset amount for the session. If sent, both amount and currency are required, and currency must match the country_code: SAR for SA, AED for AE, BHD for BH, KWD for KW and OMR for OM. A currency that does not match the country returns 422 with currency_mismatch.

Responses

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json