---
updatedAt: 2026-08-19T10:03:15.000Z
agentTools:
  projectIndex: https://developer.phorest.com/llms.txt
---

# List till sessions

Get a paginated list of till sessions for the specified till. Optionally filter by session start/end time range. Results are ordered by session start time, most recent first.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Third Party API",
    "description": "This API allow third parties to integrate with Phorest internal core services such as core, online-booking, planner, etc. Please, see the <a href=\"http://dev-changelog.s3-website-eu-west-1.amazonaws.com/?prefix=/third-party-api-server/\" target=\"_blank\">CHANGELOG</a> for further information on API updates.",
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "version": "1.42.1"
  },
  "servers": [
    {
      "url": "http://api-gateway-eu.phorest.com/third-party-api-server",
      "description": "If you are from Europe, use this server"
    },
    {
      "url": "http://api-gateway-us.phorest.com/third-party-api-server",
      "description": "If you are from United States, Canada or Australia, use this server"
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "tags": [
    {
      "name": "Till Session",
      "description": "Till Session Controller"
    }
  ],
  "paths": {
    "/api/business/{businessId}/branch/{branchId}/till/{tillId}/till-session": {
      "get": {
        "tags": [
          "Till Session"
        ],
        "summary": "List till sessions",
        "description": "Get a paginated list of till sessions for the specified till. Optionally filter by session start/end time range. Results are ordered by session start time, most recent first.",
        "operationId": "getTillSessions",
        "parameters": [
          {
            "name": "businessId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "branchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tillId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start_time",
            "in": "query",
            "description": "Returns sessions ending at or after this ISO-8601 datetime. Open (unclosed) sessions are always included regardless of this value.",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "2025-06-01T00:00:00.000Z"
          },
          {
            "name": "end_time",
            "in": "query",
            "description": "Returns sessions starting strictly before this ISO-8601 datetime.",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "2025-06-30T23:59:59.000Z"
          },
          {
            "name": "size",
            "in": "query",
            "description": "number of records to return, max is 200",
            "content": {
              "*/*": {
                "schema": {
                  "type": "integer",
                  "default": "20"
                }
              }
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "page number, default is 0",
            "content": {
              "*/*": {
                "schema": {
                  "type": "integer",
                  "default": "0"
                }
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Till sessions listed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataPagedModelTillSession"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Business, branch, or till with the specified ids don't exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Request rate limit exceeded. Current limit set to 100 rps.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "integer",
            "format": "int32"
          },
          "id": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "errorCode": {
            "type": "string"
          }
        }
      },
      "PageMetadata": {
        "type": "object",
        "properties": {
          "size": {
            "type": "integer",
            "format": "int64"
          },
          "totalElements": {
            "type": "integer",
            "format": "int64"
          },
          "totalPages": {
            "type": "integer",
            "format": "int64"
          },
          "number": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "DataPagedModelTillSession": {
        "type": "object",
        "properties": {
          "_embedded": {
            "type": "object",
            "properties": {
              "tillSessions": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TillSession"
                }
              }
            }
          },
          "page": {
            "$ref": "#/components/schemas/PageMetadata"
          }
        }
      },
      "TillSession": {
        "type": "object",
        "properties": {
          "tillSessionId": {
            "type": "string",
            "description": "Till session ID",
            "example": "eTC3QY5W3p_HmGHezKfxJw"
          },
          "transactionNo": {
            "type": "integer",
            "description": "Sequential transaction number for this session",
            "format": "int32",
            "example": 42
          },
          "tillId": {
            "type": "string",
            "description": "ID of the till this session belongs to",
            "example": "eTC3QY5W3p_HmGHezKfxJw"
          },
          "branchId": {
            "type": "string",
            "description": "ID of the branch this session belongs to",
            "example": "eTC3QY5W3p_HmGHezKfxJw"
          },
          "startTime": {
            "type": "string",
            "description": "When the session was opened",
            "format": "date-time",
            "example": "2025-06-10T09:00:00Z"
          },
          "endTime": {
            "type": "string",
            "description": "When the session was closed; null if still open",
            "format": "date-time",
            "example": "2025-06-10T17:30:00Z"
          },
          "countTime": {
            "type": "string",
            "description": "When the cash was counted at close; null if not yet counted",
            "format": "date-time",
            "example": "2025-06-10T17:35:00Z"
          },
          "startingStaffId": {
            "type": "string",
            "description": "ID of the staff member who opened the session",
            "example": "eTC3QY5W3p_HmGHezKfxJw"
          },
          "endingStaffId": {
            "type": "string",
            "description": "ID of the staff member who closed the session; null if still open",
            "example": "eTC3QY5W3p_HmGHezKfxJw"
          },
          "countingStaffId": {
            "type": "string",
            "description": "ID of the staff member who performed the cash count; null if not yet counted",
            "example": "eTC3QY5W3p_HmGHezKfxJw"
          },
          "systemCounted": {
            "type": "boolean",
            "description": "Whether the cash count was performed automatically by the system",
            "example": false
          },
          "openingCashAmount": {
            "type": "number",
            "description": "Cash amount in the drawer at session open",
            "example": 200
          },
          "closingCashAmount": {
            "type": "number",
            "description": "Cash amount in the drawer at session close",
            "example": 350
          },
          "counts": {
            "type": "array",
            "description": "Per-payment-type amounts recorded during the cash-count close",
            "items": {
              "$ref": "#/components/schemas/TillSessionCount"
            }
          },
          "notes": {
            "type": "string",
            "description": "Free-text notes recorded on the session",
            "example": "Short by 5.00 - investigated"
          },
          "createTime": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2025-06-10T09:00:00Z"
          },
          "updateTime": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2025-06-10T17:35:00Z"
          }
        },
        "description": "A till session representing one open/close cycle of a till"
      },
      "TillSessionCount": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Payment type. Supplemental (custom) payment types are represented as OTHER with a non-null supplementalPaymentTypeId.",
            "example": "CASH",
            "enum": [
              "CASH",
              "CREDIT",
              "DEBIT",
              "PHOREST_PAY_CREDIT_CARD",
              "PHOREST_PAY_DEBIT_CARD",
              "CHEQUE",
              "VOUCHER",
              "ACCOUNT",
              "MEMBERSHIP",
              "APPOINTMENT_DEPOSIT",
              "OTHER"
            ]
          },
          "supplementalPaymentTypeId": {
            "type": "string",
            "description": "ID of the supplemental payment type; null for standard types like CASH or CARD",
            "example": "eTC3QY5W3p_HmGHezKfxJw"
          },
          "amount": {
            "type": "number",
            "description": "Counted amount for this payment type",
            "example": 150
          }
        },
        "description": "A single payment-type entry counted at till session close"
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  }
}
```