> ## 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 User Bookings

> Retrieves all bookings for a specific user by user ID



## OpenAPI

````yaml GET /users/bookings/{user_id}
openapi: 3.0.0
info:
  title: Seyaha Reseller API
  description: API endpoints for reseller operations
  version: 1.0.0
servers:
  - url: /api/v1/resellers
    description: Reseller API base URL
security: []
paths:
  /users/bookings/{user_id}:
    get:
      tags:
        - Reseller Activities
      summary: Get bookings for a specific user
      description: Retrieves all bookings for a specific user by user ID
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
          description: ID of the user to get bookings for
        - name: page
          in: query
          schema:
            type: integer
            example: 1
        - name: pageSize
          in: query
          schema:
            type: integer
            example: 10
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: integer
                    example: 1
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Booking'
                  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:
        - apiToken: []
components:
  schemas:
    Booking:
      type: object
      properties:
        _id:
          type: string
          example: 60d21b4667d0d8992e610c87
        activity_id:
          type: string
          example: 60d21b4667d0d8992e610c85
        variation_id:
          type: string
          example: 60d21b4667d0d8992e610c86
        reseller_id:
          type: string
          example: 60d21b4667d0d8992e610c82
        status:
          type: string
          enum:
            - Booking Attempt
            - Paid by Customer
            - Cancelled
          example: Paid by Customer
        partnerConfirmation:
          type: string
          enum:
            - Pending
            - Confirmed
            - Rejected
            - Not Required
          example: Confirmed
        bookingDate:
          type: string
          example: '2023-07-15'
        bookingTime:
          type: string
          example: '10:00'
        price:
          type: object
          properties:
            totalPrice:
              type: number
              example: 150
            affiliateDeservedAmount:
              type: number
              example: 15
        external_payment_id:
          type: string
          example: pay_1N9dvSLkdIwHu2QOxgMtN9dE
    Pagination:
      type: object
      properties:
        pageSize:
          type: integer
          example: 10
        page:
          type: integer
          example: 1
        totalCount:
          type: integer
          example: 50
  responses:
    Unauthorized:
      description: Unauthorized access
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: integer
                example: 0
              error:
                type: array
                items:
                  type: string
                example:
                  - unauthorized access
              message:
                type: string
                example: unauthorized access
              code:
                type: integer
                example: 401
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: integer
                example: 0
              error:
                type: array
                items:
                  type: string
                example:
                  - resource not found
              message:
                type: string
                example: resource not found
              code:
                type: integer
                example: 404
    RateLimitExceeded:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: integer
                example: 0
              error:
                type: array
                items:
                  type: string
                example:
                  - rate limit exceeded
              message:
                type: string
                example: rate limit exceeded
              code:
                type: integer
                example: 429
    ServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: integer
                example: 0
              error:
                type: array
                items:
                  type: string
                example:
                  - unexpected error
              message:
                type: string
                example: unexpected error
              code:
                type: integer
                example: 500
  securitySchemes:
    apiToken:
      type: apiKey
      in: header
      name: x-api-token

````