v1
latestOpenAPI 3.0.32026-07-2418074.2 KBIn-Store Checkout
Create In-store 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. <br /> <br /> Please store the order_id and checkout_id received in response in your DBs as they might be needed later.
post/checkout/in-store-session
Request body
Example request
{
"total_amount": {
"amount": 300,
"currency": "SAR"
},
"phone_number": "534274516",
"email": "customer@emailhere.com",
"order_reference_id": "1231234123-234a-fe21-1234-a324af2",
"order_number": "A1231234123",
"items": [
{
"name": "Lego City 8601",
"quantity": 1,
"type": "Digital, Physical...etc.",
"reference_id": "123",
"sku": "SA-12436",
"item_url": "SA-12436",
"image_url": "SA-12436",
"unit_price": {
"amount": 490,
"currency": "SAR"
},
"tax_amount": {
"amount": 10,
"currency": "SAR"
},
"discount_amount": {
"amount": 100,
"currency": "SAR"
},
"total_amount": {
"amount": "100",
"currency": "SAR"
}
}
],
"payment_type": "PAY_BY_INSTALMENTS",
"expiry_time": 15,
"additional_data": {
"store_code": "Branch A"
}
}Response
Checkout Session Created