Documentation Index Fetch the complete documentation index at: https://docs.privetag.com/llms.txt
Use this file to discover all available pages before exploring further.
Check Inventory
Real-time inventory sync with venues. Use this to check availability before booking or to find flash deals.
Use This Endpoint When
Availability check
“Is this available tomorrow?”
“Any slots left for Saturday?”
“Can we book for 6 people?”
Deal hunting
“Any deals today?”
“What’s on sale?”
“Cheapest options available”
Request Parameters
City name (e.g., Bangkok, Phuket, Bali)
ISO 8601 date format. Defaults to today.
Check specific activity availability
Filter by category: spa, dinner, theme-park, zoo, aquarium, adventure, cultural, nightlife
Only return activities with active flash deals (30-50% off)
Minimum available slots required
Response
Whether the request was successful
List of available activities Number of slots available
Original price (if flash deal)
Whether this is a limited-time deal
When the deal expires (if applicable)
Discount percentage (if flash deal)
When inventory was last synced
Number of flash deals available
Examples
Check City Inventory
curl -X GET "https://api.privetag.com/api/b2a/inventory?city=Bangkok&date=2025-12-15" \
-H "x-api-key: pk_a1b2c3..."
Flash Deals Only
curl -X GET "https://api.privetag.com/api/b2a/inventory?city=Phuket&flash_deals_only=true" \
-H "x-api-key: pk_a1b2c3..."
Specific Activity Availability
curl -X GET "https://api.privetag.com/api/b2a/inventory?activity_id=act_abc123&date=2025-12-15" \
-H "x-api-key: pk_a1b2c3..."
Category Filter with Price Cap
curl -X GET "https://api.privetag.com/api/b2a/inventory?city=Bangkok&category=spa&max_price=2000" \
-H "x-api-key: pk_a1b2c3..."
Response Example
{
"success" : true ,
"data" : {
"inventory" : [
{
"activity_id" : "act_abc123" ,
"title" : "Safari World Bangkok" ,
"category" : "zoo" ,
"available_slots" : 45 ,
"price" : 1500 ,
"currency" : "THB" ,
"is_flash_deal" : false ,
"operating_hours" : "09:00 - 17:00" ,
"last_updated" : "2025-12-10T08:00:00Z"
},
{
"activity_id" : "act_def456" ,
"title" : "Oasis Spa - Signature Package" ,
"category" : "spa" ,
"available_slots" : 8 ,
"price" : 1800 ,
"original_price" : 3000 ,
"currency" : "THB" ,
"is_flash_deal" : true ,
"flash_deal_expires" : "2025-12-10T18:00:00Z" ,
"discount_percent" : 40 ,
"operating_hours" : "10:00 - 22:00" ,
"last_updated" : "2025-12-10T08:00:00Z"
}
],
"metadata" : {
"total_results" : 42 ,
"flash_deals_count" : 7 ,
"query_date" : "2025-12-10" ,
"city" : "Bangkok"
}
}
}
Flash Deals
Flash Deals are same-day discounts (30-50% off) offered by venues to fill remaining capacity. These are exclusive to AI agent bookings and expire at a specific time.
How Flash Deals Work
Flash Deal Response Fields
Field Description is_flash_dealtrue if currently discountedoriginal_pricePrice before discount priceCurrent discounted price discount_percentPercentage off (30-50) flash_deal_expiresWhen deal ends
Inventory Sync
Our inventory is synced with venues in real-time:
Sync Type Frequency Description Real-time Instant When bookings are made Periodic Every 15 min Full inventory refresh On-demand On request When you call this endpoint
Low Availability Warning : When available_slots is low (< 5), book quickly as slots can sell out between checking and booking.
Use Cases
Display available activities
Use this endpoint to show users what’s available before they decide. Better than /recommend when the user wants to browse all options.
Set flash_deals_only=true to find discounted activities for same-day booking. Great for spontaneous travelers.
Always check availability before calling /execute_booking to ensure a smooth booking experience.
Use category filter to compare prices across similar activities.
Error Responses
Code Description INVALID_CITYCity not found in our service area INVALID_DATEDate format incorrect or in the past ACTIVITY_NOT_FOUNDSpecified activity_id doesn’t exist NO_INVENTORYNo activities available matching criteria
Supported Cities
Currently available in Southeast Asia:
Country Cities 🇹🇭 Thailand Bangkok, Phuket, Chiang Mai, Pattaya, Krabi 🇻🇳 Vietnam Ho Chi Minh, Hanoi, Da Nang, Nha Trang 🇮🇩 Indonesia Bali, Jakarta, Yogyakarta 🇲🇾 Malaysia Kuala Lumpur, Penang, Langkawi 🇸🇬 Singapore Singapore
Next Steps
Get Recommendations Get personalized activity recommendations
Execute Booking Book an activity from inventory