API Reference / Bookings
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
| Name | In | Type | Description |
|---|---|---|---|
| id* | path | number | Booking 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.
| Field | Type | Description |
|---|---|---|
| id | number | Booking id |
| packageId | number | Package booked |
| travelDate | string | Travel date |
| pax | number | Party size |
| customerName | string | Lead passenger |
| status | string | pending | 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"
}