API guide
Integration contract tamn_v1 for booking sites. TAMN calls your search API when a traveller searches, shows your hotels next to the other sites, and sends the traveller to your site to book.
1. Search request
GET {api_base_url}{search_path}?destination=Cairo&checkin=2026-12-20&checkout=2026-12-22&adults=2&rooms=1&children=¤cy=EGP&market=EG&max_results=30destination | City, area or hotel name as the traveller typed it |
|---|---|
checkin / checkout | Dates, YYYY-MM-DD |
adults / rooms | Number of adults and rooms |
children | Children's ages, comma-separated (may be empty) |
currency | Requested currency (EGP, SAR…) |
market | Traveller's market: EG, SA, AE, QA, KW, BH or OM |
max_results | Maximum hotels to return (usually 30) |
TAMN sends the API key you gave us as a header (e.g. x-api-key), a Bearer token or a query parameter, as you choose.
2. Response
{
"hotels": [
{
"id": "H-10293",
"name": "Steigenberger Hotel El Tahrir",
"city": "Cairo",
"stars": 4,
"review_score": 8.4,
"review_count": 1260,
"room_type": "Deluxe Double Room",
"meal": "breakfast",
"free_cancellation": true,
"price_total": 8400,
"price_per_night": 4200,
"currency": "EGP",
"taxes_included": true,
"deep_link": "https://www.example.com/hotel/10293?checkin=2026-12-20&checkout=2026-12-22&adults=2&ref={click_id}"
}
]
}- price_total is the final price for the whole stay that the customer pays on your site, including taxes and fees. Hotels sent with taxes_included: false are not shown.
- deep_link must be https, on the booking domain you registered, and open the same offer at the same price.
- meal is one of: room_only, breakfast, half_board, full_board, all_inclusive.
- Answer within 5 seconds. After 8 seconds the search is shown without your results.
- If you can't return the requested currency, return yours: TAMN converts it at the day's rate and tells the customer.
3. Clicks
When a traveller clicks “View deal” they pass through TAMN and land on your deep_link. We replace {click_id} in the link with the click id; if it isn't there we add a tamn_click parameter. Keep this id with the booking.
4. Reporting bookings
Once live, create your booking reports key in the dashboard and send each booking to:
POST /api/partner/v1/conversions
Authorization: Bearer tamn_<your key>
Content-Type: application/json
{
"click_id": 48211,
"booking_ref": "EX-88231",
"status": "booked",
"amount": 8400,
"currency": "EGP",
"commission": 840
}Send the same booking_ref again to update its status to cancelled or stayed.
5. Testing and going live
- Enter your commercial terms and API details in the dashboard.
- Run the sandbox test: TAMN searches a city in your first market 30 days ahead and checks the answer.
- Accept the price accuracy pledge and send it for review.
- After the team approves, your hotels appear in search results.
Example of a valid answer: /api/partner/v1/example/search