API Reference / Bookings
GET/bookings/:id

Retrieve a booking

Fetch a single booking by id.

🔒 JWT BearerTry in Console →

Purpose

Get full detail for one booking — e.g. to show a confirmation screen or to look up status after a webhook event.

Authentication

Send your access token as a Bearer header: Authorization: Bearer <token>. Obtain it from Authenticate a user.

Parameters

NameInTypeDescription
id*pathnumberBooking id

Request samples

bash
curl -X GET https://tourapi.nirajp.com.np/api/v1/bookings/1 \
  -H "Content-Type: application/json"

Success response

Returns 200 OK with the shape below.

FieldTypeDescription
idnumberBooking id
packageIdnumberPackage booked
travelDatestringTravel date
paxnumberParty size
customerNamestringLead passenger
statusstringpending | confirmed | cancelled
json
{
  "success": true,
  "message": "Request successful.",
  "data": {
    "id": 5,
    "packageId": 1,
    "travelDate": "2026-10-04",
    "pax": 2,
    "customerName": "John Smith",
    "status": "pending"
  }
}

Errors

All errors share the envelope { "success": false, "message": "..." }.

401No or invalid authentication token supplied.
json
{
  "success": false,
  "message": "Unauthorized"
}
404The resource id does not exist or belongs to another organization.
json
{
  "success": false,
  "message": "Not found"
}
500An unexpected error occurred on our side. Retry; if it persists, contact support.
json
{
  "success": false,
  "message": "Internal server error"
}