API Reference / Bookings
GET
/bookingsList bookings
List bookings placed against your organization’s packages.
🔒 JWT BearerTry in Console →
Purpose
Retrieve all bookings on your packages to display in an operator dashboard, export to a spreadsheet, or sync to your CRM. Scoped to your organization.
Authentication
Send your access token as a Bearer header: Authorization: Bearer <token>. Obtain it from Authenticate a user.
Request samples
bash
curl -X GET https://tourapi.nirajp.com.np/api/v1/bookings \ -H "Content-Type: application/json"
Success response
Returns 200 OK with the shape below.
| Field | Type | Description |
|---|---|---|
| items[] | array | Array of booking objects |
| items[].id | number | Booking id |
| items[].packageId | number | Package the booking is for |
| items[].travelDate | string | ISO date of travel |
| items[].pax | number | Number of travellers |
| items[].customerName | string | Lead passenger |
| items[].status | string | pending | confirmed | cancelled |
| total | number | Total bookings |
| page | number | Current page |
| limit | number | Page size |
json
{
"success": true,
"message": "Request successful.",
"data": {
"items": [
{
"id": 5,
"packageId": 1,
"travelDate": "2026-10-04",
"pax": 2,
"customerName": "John Smith",
"status": "pending"
}
],
"total": 1,
"page": 1,
"limit": 20
}
}Errors
All errors share the envelope { "success": false, "message": "..." }.
401No or invalid authentication token supplied.
json
{
"success": false,
"message": "Unauthorized"
}500An unexpected error occurred on our side. Retry; if it persists, contact support.
json
{
"success": false,
"message": "Internal server error"
}