> ## Documentation Index
> Fetch the complete documentation index at: https://docs.seyaha.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Activity

> Returns a single activity with full variation and availability detail.



## OpenAPI

````yaml GET /users/activities/{id}
openapi: 3.0.3
info:
  title: Seyaha Affiliate API
  description: >
    API for affiliates who list and book Seyaha activities on behalf of their
    users.

    All endpoints require a JWT bearer token issued by Seyaha in the
    `Authorization` header.
  version: 1.0.0
servers:
  - url: /api/v1/affiliates
    description: Affiliate API base URL
security:
  - bearerAuth: []
tags:
  - name: Activities
    description: Browse the activity catalog
  - name: Bookings
    description: Create and manage bookings
  - name: Payments
    description: Process payments for bookings
paths:
  /users/activities/{id}:
    get:
      tags:
        - Activities
      summary: Get activity by ID
      description: Returns a single activity with full variation and availability detail.
      operationId: getActivity
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Activity ID
        - name: currency
          in: query
          description: Currency code for pricing. Defaults to `USD`.
          schema:
            type: string
            example: SAR
      responses:
        '200':
          description: Activity detail
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: integer
                    example: 1
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/SingleActivity'
                  pagination:
                    $ref: '#/components/schemas/Pagination'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimitExceeded'
        '500':
          $ref: '#/components/responses/ServerError'
      security:
        - bearerAuth: []
components:
  schemas:
    SingleActivity:
      type: object
      description: >-
        Activity as returned in detail view — includes variation schedules and
        full itinerary.
      properties:
        _id:
          type: string
          example: 6744810075becd2ef8c140f7
        activity_type:
          type: object
          properties:
            name:
              type: string
              example: Day Tour
        activity_title:
          type: string
          example: Desert Safari Adventure
        main_promo_title:
          type: string
        short_description:
          type: string
        description:
          type: string
        address:
          type: string
          example: Riyadh Desert Reserve
        categories:
          type: array
          items:
            type: string
        media:
          type: array
          items:
            type: object
            properties:
              imageUrl:
                type: string
        location:
          type: object
          properties:
            country:
              type: object
              properties:
                id:
                  type: string
                name:
                  type: string
            city:
              type: string
            region:
              type: string
        partner_details:
          type: object
          properties:
            id:
              type: string
            name:
              type: string
            partner_category:
              type: object
              properties:
                id:
                  type: string
                name:
                  type: string
            companyDetails:
              type: object
            profileImage:
              type: string
              nullable: true
        currency:
          type: string
          example: SAR
        translation:
          type: object
          additionalProperties:
            type: object
        variations:
          type: array
          items:
            $ref: '#/components/schemas/ActivityVariation'
    Pagination:
      type: object
      properties:
        page:
          type: integer
          example: 1
        pageSize:
          type: integer
          example: 10
        totalCount:
          type: integer
          example: 42
    ActivityVariation:
      type: object
      properties:
        _id:
          type: string
        title:
          type: string
        description:
          type: string
        language:
          type: array
          items:
            type: string
        price:
          type: object
          properties:
            prices:
              type: object
              additionalProperties:
                type: number
              example:
                adult: 250
                child: 150
                infant: 80
                senior: 200
            discount_percentage:
              type: number
        frequency:
          type: object
          description: Weekly schedule with per-weekday time slots and date capacities
          properties:
            weekdays:
              type: object
              additionalProperties:
                type: object
                additionalProperties:
                  type: object
            start_end_date:
              type: object
              nullable: true
            blocked_dates:
              type: array
              items:
                type: string
        duration:
          type: object
          properties:
            hours:
              type: number
            days:
              type: number
        itinerary:
          type: array
          items:
            type: object
            properties:
              title:
                type: string
              description:
                type: string
        includes:
          type: object
          properties:
            transportation_methods:
              type: array
              items:
                type: string
            food:
              type: array
              items:
                type: string
            drinks:
              type: array
              items:
                type: string
            including:
              type: array
              items:
                type: string
            excluding:
              type: array
              items:
                type: string
        instant_confirmation:
          type: boolean
        cancelation_policy:
          type: string
        cut_off_time:
          type: string
        capacity:
          type: integer
        max_no_booking:
          type: integer
        pickup:
          type: object
          properties:
            type:
              type: string
            pick_up_address:
              type: object
              properties:
                address:
                  type: string
                lat:
                  type: number
                lng:
                  type: number
            drop_off_address:
              type: object
              properties:
                address:
                  type: string
                lat:
                  type: number
                lng:
                  type: number
        media:
          type: object
          properties:
            imageUrl:
              type: string
    Error:
      type: object
      properties:
        success:
          type: integer
          enum:
            - 0
          example: 0
        error:
          type: array
          items:
            type: string
          example:
            - error detail
        message:
          type: string
          example: Error description
        code:
          type: integer
          example: 400
  responses:
    Unauthorized:
      description: Missing or invalid JWT
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: 0
            error:
              - unauthorized access
            message: unauthorized access
            code: 401
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimitExceeded:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: 0
            error:
              - rate limit exceeded
            message: rate limit exceeded
            code: 429
    ServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'JWT issued by Seyaha — include as `Authorization: Bearer <token>`'

````