---
title: "Get a paginated and filtered list of shift swap requests"
method: GET
path: "/ShiftSwaps"
tags: ["ShiftSwaps"]
---

# Get a paginated and filtered list of shift swap requests

`GET /ShiftSwaps`

## Query parameters

- `ShiftId` string
- `FromUserId` string
- `ToUserId` string
- `Status` integer
- `IsOpenPool` boolean
- `CreatedAfter` string
- `CreatedBefore` string
- `Query` string
- `SortBy` string
- `SortOrder` string
- `Page` union
  - integer
  - string, int32
- `Limit` union
  - integer
  - string, int32

## Response `200`

OK

- ShiftSwapListResponseDto
  - `shiftSwaps` ShiftSwapResponseDto[]
    - `id` string
    - `shiftId` string
    - `shift` ShiftSummaryDto
      - `id` string
      - `locationId` string, nullable
      - `locationName` string, nullable
      - `shiftDate` string
      - `startTime` string, nullable
      - `endTime` string, nullable
      - `income` string, nullable
      - `status` string
      - `cancelBy` string, nullable
      - `userId` string
    - `fromUserId` string
    - `fromUser` UserSummaryDto
      - `id` string
      - `email` string
      - `firstName` string, nullable
      - `lastName` string, nullable
      - `displayName` string, nullable
      - `type` string
      - `roleId` string, nullable
      - `roleName` string, nullable
    - `toUserId` string, nullable
    - `toUser` UserSummaryDto
      - `id` string
      - `email` string
      - `firstName` string, nullable
      - `lastName` string, nullable
      - `displayName` string, nullable
      - `type` string
      - `roleId` string, nullable
      - `roleName` string, nullable
    - `notes` string, nullable
    - `status` integer
    - `resolvedByUserId` string, nullable
    - `resolvedByUser` UserSummaryDto
      - `id` string
      - `email` string
      - `firstName` string, nullable
      - `lastName` string, nullable
      - `displayName` string, nullable
      - `type` string
      - `roleId` string, nullable
      - `roleName` string, nullable
    - `resolvedAt` string, date-time, nullable
    - `expiresAt` string, date-time, nullable
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
  - `totalCount` union
    - integer
    - string, int32
  - `pendingCount` union
    - integer
    - string, int32
  - `acceptedCount` union
    - integer
    - string, int32
  - `declinedCount` union
    - integer
    - string, int32

---

[API](https://skmtc.net/clinicos/apis/pawthosx-business-api-v1.md) · [All operations](https://skmtc.net/clinicos/apis/pawthosx-business-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clinicos/pawthosx-business-api-v1/revisions/a905bde4e796/schema)
