API Reference / Packages
GET/packages

List packages

List tour packages owned by your organization, paginated. Use the page and limit query parameters to page through results.

🔒 JWT BearerTry in Console →

Purpose

Fetch your catalog of tour packages to render in your own app, sync to a CMS, or build a marketplace listing. Results are scoped to your organization only. Supports cursor-style page/limit pagination.

Authentication

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

Parameters

NameInTypeDescription
pagequerynumberPage number (default 1)
limitquerynumberPage size (default 20, max 100)

Request samples

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

Success response

Returns 200 OK with the shape below.

FieldTypeDescription
items[]arrayArray of package objects
items[].idnumberPackage id (use in bookings/create-package refs)
items[].titlestringPackage display name
items[].destinationstringDestination country/region
items[].durationDaysnumberTrip length in days
items[].pricenumberPer-person price
items[].currencystringISO currency code
items[].categorystringtrekking | tour | safari | …
totalnumberTotal packages across all pages
pagenumberCurrent page
limitnumberPage size used
json
{
  "success": true,
  "message": "Request successful.",
  "data": {
    "items": [
      {
        "id": 1,
        "title": "Everest Base Camp Trek",
        "destination": "Nepal",
        "durationDays": 12,
        "price": 1240,
        "currency": "USD",
        "category": "trekking"
      }
    ],
    "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"
}