GETProducts

Get A Product

/api/v1/products/{productCode}

Retrieve detailed information for a specific product, including associated resources. Product must belong to the authenticated partner.

Authentication Required

Include Bearer token in Authorization header: Authorization: Bearer YOUR_TOKEN

Path Parameters

NameTypeRequiredDescription
productCodestringYesUnique product code identifier (e.g., PROD-001)

Response

Success Response Example:

{
  "success": true,
  "product": {
    "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",
    "resources": [
      {
        "id": 10,
        "name": "Tour Guide - English",
        "type": "guide",
        "isPrimary": true,
        "sameDay": true,
        "timeOffsetStart": 0,
        "timeOffsetEnd": 120
      },
      {
        "id": 11,
        "name": "Eiffel Tower Entrance",
        "type": "venue",
        "isPrimary": false,
        "sameDay": true,
        "timeOffsetStart": 30,
        "timeOffsetEnd": 90
      }
    ]
  }
}

Error Response

Error Example:

{
  "success": false,
  "error": {
    "code": "NOT_FOUND",
    "message": "Product PROD-001 not found"
  }
}

Available Errors

HTTP StatusCodeMeaning
401UNAUTHORIZEDInvalid or missing authentication token
400INVALID_REQUESTMissing product code
404NOT_FOUNDProduct not found or does not belong to partner
500INTERNAL_SERVER_ERRORServer error