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

# Get all orders



## OpenAPI

````yaml api-reference/openapi.json get /api/receptionist/order
openapi: 3.0.1
info:
  title: OpenAPI definition
  version: v0
servers:
  - url: https://localhost:8080
    description: Generated server url
security: []
paths:
  /api/receptionist/order:
    get:
      tags:
        - Order
      summary: Get all orders
      operationId: getAll_5
      parameters:
        - name: orderStatus
          in: query
          required: false
          schema:
            type: string
            enum:
              - pending
              - cancelled
              - confirmed
              - assigned
              - in_progress
              - completed
        - name: paymentMethod
          in: query
          required: false
          schema:
            type: string
            enum:
              - cash
              - visa
              - mastercard
        - name: cropType
          in: query
          required: false
          schema:
            type: integer
            format: int64
        - name: pageable
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/Pageable'
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/PagedModelSprayOrderResponseDTO'
components:
  schemas:
    Pageable:
      type: object
      properties:
        page:
          minimum: 0
          type: integer
          format: int32
        size:
          minimum: 1
          type: integer
          format: int32
        sort:
          type: array
          items:
            type: string
    PagedModelSprayOrderResponseDTO:
      type: object
      properties:
        content:
          type: array
          items:
            $ref: '#/components/schemas/SprayOrderResponseDTO'
        page:
          $ref: '#/components/schemas/PageMetadata'
    SprayOrderResponseDTO:
      type: object
      properties:
        id:
          type: integer
          format: int64
        farmer:
          $ref: '#/components/schemas/UserDTO'
        receptionist:
          $ref: '#/components/schemas/UserDTO'
        date:
          type: string
          format: date
        session:
          $ref: '#/components/schemas/SessionDTO'
        location:
          type: string
        latitude:
          type: number
        longitude:
          type: number
        cropType:
          $ref: '#/components/schemas/CropModel'
        area:
          type: number
        cost:
          type: number
        orderStatus:
          type: string
          enum:
            - pending
            - cancelled
            - confirmed
            - assigned
            - in_progress
            - completed
        paymentStatus:
          type: string
          enum:
            - pending
            - paid
            - failed
        paymentMethod:
          type: string
          enum:
            - cash
            - visa
            - mastercard
        completionDate:
          type: string
          format: date
        confirmed:
          type: boolean
        creationDate:
          type: string
          format: date
    PageMetadata:
      type: object
      properties:
        size:
          type: integer
          format: int64
        number:
          type: integer
          format: int64
        totalElements:
          type: integer
          format: int64
        totalPages:
          type: integer
          format: int64
    UserDTO:
      type: object
      properties:
        id:
          type: integer
          format: int64
        email:
          type: string
        fullName:
          type: string
        phoneNumber:
          type: string
        street:
          type: string
        city:
          type: string
        province:
          type: string
        postalCode:
          type: string
        expertise:
          type: string
          enum:
            - apprentice
            - adept
            - expert
        role:
          type: string
          enum:
            - farmer
            - receptionist
            - sprayer
            - admin
        active:
          type: boolean
    SessionDTO:
      type: object
      properties:
        id:
          type: integer
          format: int64
        startTime:
          $ref: '#/components/schemas/LocalTime'
        endTime:
          $ref: '#/components/schemas/LocalTime'
    CropModel:
      type: object
      properties:
        id:
          type: integer
          format: int64
        name:
          type: string
    LocalTime:
      type: object
      properties:
        hour:
          type: integer
          format: int32
        minute:
          type: integer
          format: int32
        second:
          type: integer
          format: int32
        nano:
          type: integer
          format: int32

````