GETProducts

List Products

/api/v1/products

Retrieve a list of all active products belonging to the authenticated partner. Returns products ordered by ID (newest first) with pagination support.

Authentication Required

Include Bearer token in Authorization header: Authorization: Bearer YOUR_TOKEN

Query Parameters

NameTypeRequiredDescription
pageintegerNoPage number for pagination (default: 1)
limitintegerNoItems per page, max 100 (default: 25)

Response

Success Response Example:

{
  "success": true,
  "products": [
    {
      "id": 1,
      "name": "Eiffel Tower Tour",
      "productCode": "PROD-001",
      "description": "Guided tour of the Eiffel Tower with skip-the-line access",
      "prices": {
        "adult": 45,
        "child": 25,
        "senior": 35
      },
      "status": "active"
    },
    {
      "id": 2,
      "name": "Louvre Museum Pass",
      "productCode": "PROD-002",
      "description": "Full day access to the Louvre Museum",
      "prices": {
        "adult": 60,
        "child": 30
      },
      "status": "active"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 25,
    "total": 47,
    "totalPages": 2,
    "hasNextPage": true,
    "hasPreviousPage": false
  }
}

Error Response

Error Example:

{
  "success": false,
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Unauthorized - Partner not authenticated"
  }
}

Available Errors

HTTP StatusCodeMeaning
401UNAUTHORIZEDInvalid or missing authentication token
500INTERNAL_SERVER_ERRORServer error