Create In-store SMS Payment Link Checkout Session

This endpoint facilitates the creation of an In-Store checkout session, where all payment information is sent within the request to send a payment link via SMS message, enabling customer payments via Tamara. If the customer's email is added, the payment link is also sent to that email address, as a backup option in case of mobile coverage issues affecting the phone number.

Please store the order_id and checkout_id received in response in your DBs as they might be needed later.

Body Params
total_amount
object
required

Total amount to be charged to customer.

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

The customer's phone number. The customer receives an SMS with a payment link at this number to complete the transaction via Tamara.

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).

string

The customer's email address, designated to receive the payment link. Serves as a backup option in case of mobile coverage issues affecting the phone number.

string
required

The unique order id from the merchant side, used in settlements and reports.

string

The 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.

items
array of objects
required

Comprehensive details about the items in the order.

items*
string
enum
Defaults to ar_SA

Display language for Tamara checkout page. Language to be defined by the merchant following RFC 1766, e.g en_US or ar_SA. Default is set to Arabic if value not passed and customer is new. If customer already exists and locale is not passed then customer's preference will be taken into account.

Allowed:
string
enum

The payment method offered by Tamara that you want to offer to your customer for this checkout session.

Allowed:
integer

Number of instalments for the order. Required when payment_type is PAY_BY_INSTALMENTS. Allowed values depend on your merchant configuration, country, and order amount. Use the payment options check endpoint to get the instalment plans available for a given order before creating the checkout session.

integer
5 to 1440

Order expiry time in minutes, min 5 minutes, max 1440 (one day). By default this key will be ignored, and default value of 15 mins is used, Please contact our support team to enable this feature.

additional_data
object

Additional order data information from the merchant side. Optional, but if it is sent, store_code is required.

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