POST api/prescheduledclasssessions/cancelsession

Request Information

URI Parameters

None.

Body Parameters

PrescheduledClassSessionCancelRequest
NameDescriptionTypeAdditional information
SessionId

integer

None.

CancellationReasonId

integer

None.

Message

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SessionId": 1,
  "CancellationReasonId": 2,
  "Message": "sample string 3"
}

application/xml, text/xml

Sample:
<PrescheduledClassSessionCancelRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Atlantis.Library.SharedModels.WebModels">
  <CancellationReasonId>2</CancellationReasonId>
  <Message>sample string 3</Message>
  <SessionId>1</SessionId>
</PrescheduledClassSessionCancelRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PrescheduledClassSessionCancelResponse
NameDescriptionTypeAdditional information
SessionId

integer

None.

CancellationReasonId

integer

None.

Message

string

None.

EventSourceId

integer

None.

CancelledEntries

integer

None.

UnassignedEntries

integer

None.

Session

PrescheduledClassSession

None.

Response Formats

application/json, text/json

Sample:
{
  "SessionId": 1,
  "CancellationReasonId": 2,
  "Message": "sample string 3",
  "EventSourceId": 4,
  "CancelledEntries": 5,
  "UnassignedEntries": 6,
  "Session": {
    "Id": 1,
    "PropertyId": 2,
    "RequestDate": "2026-08-18T04:41:01.107948+03:00",
    "StartTimeSerial": 4,
    "EndTimeSerial": 5,
    "RGId1": 6,
    "RGId2": 7,
    "RGId3": 8,
    "RescId1": 9,
    "RescId2": 10,
    "RescId3": 11,
    "DeptId": 12,
    "ClassId": 13,
    "ClassDescription": "sample string 14",
    "Duration": 15,
    "TreatmentState": 0,
    "OperationalState": 0,
    "Extra1": 64,
    "Extra2": 64,
    "CancelledDate": "2026-08-18T04:41:01.107948+03:00",
    "CancelledUserId": 19,
    "Notes": "sample string 20",
    "ProdType": 0,
    "ProdId": 21,
    "DayOrder": 22,
    "LineOrder": 23,
    "BreakTime": 64,
    "MaxPositions": 64,
    "UsedPositions": 64,
    "EntryType": 0,
    "IsHidden": true,
    "Entries": [
      {
        "Id": 1,
        "SessionId": 2,
        "CFPrId": 3,
        "CuFlId": 4,
        "ClassId": 5,
        "ClassDescription": "sample string 6",
        "RPlDate": "2026-08-18T04:41:01.107948+03:00",
        "StartTimeSerial": 8,
        "EndTimeSerial": 9,
        "Duration": 10,
        "ProdType": 0,
        "OperationalState": 0,
        "FinancialState": 0,
        "EntryType": 0,
        "CheckInState": 0,
        "Price": 11.1,
        "Notes": "sample string 12",
        "CustomerAlias": "sample string 13",
        "CustomerName": "sample string 14",
        "CancelledDate": "2026-08-18T04:41:01.107948+03:00",
        "CancelledUserId": 16
      },
      {
        "Id": 1,
        "SessionId": 2,
        "CFPrId": 3,
        "CuFlId": 4,
        "ClassId": 5,
        "ClassDescription": "sample string 6",
        "RPlDate": "2026-08-18T04:41:01.107948+03:00",
        "StartTimeSerial": 8,
        "EndTimeSerial": 9,
        "Duration": 10,
        "ProdType": 0,
        "OperationalState": 0,
        "FinancialState": 0,
        "EntryType": 0,
        "CheckInState": 0,
        "Price": 11.1,
        "Notes": "sample string 12",
        "CustomerAlias": "sample string 13",
        "CustomerName": "sample string 14",
        "CancelledDate": "2026-08-18T04:41:01.107948+03:00",
        "CancelledUserId": 16
      }
    ]
  }
}

application/xml, text/xml

Sample:
<PrescheduledClassSessionCancelResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Atlantis.Library.SharedModels.WebModels">
  <CancellationReasonId>2</CancellationReasonId>
  <CancelledEntries>5</CancelledEntries>
  <EventSourceId>4</EventSourceId>
  <Message>sample string 3</Message>
  <Session>
    <BreakTime>64</BreakTime>
    <CancelledDate>2026-08-18T04:41:01.107948+03:00</CancelledDate>
    <CancelledUserId>19</CancelledUserId>
    <ClassDescription>sample string 14</ClassDescription>
    <ClassId>13</ClassId>
    <DayOrder>22</DayOrder>
    <DeptId>12</DeptId>
    <Duration>15</Duration>
    <EndTimeSerial>5</EndTimeSerial>
    <Entries>
      <PrescheduledClassSessionEntry>
        <CFPrId>3</CFPrId>
        <CancelledDate>2026-08-18T04:41:01.107948+03:00</CancelledDate>
        <CancelledUserId>16</CancelledUserId>
        <CheckInState>NotCheckedIn</CheckInState>
        <ClassDescription>sample string 6</ClassDescription>
        <ClassId>5</ClassId>
        <CuFlId>4</CuFlId>
        <CustomerAlias>sample string 13</CustomerAlias>
        <CustomerName>sample string 14</CustomerName>
        <Duration>10</Duration>
        <EndTimeSerial>9</EndTimeSerial>
        <EntryType>Single</EntryType>
        <FinancialState>NOFIST_</FinancialState>
        <Id>1</Id>
        <Notes>sample string 12</Notes>
        <OperationalState>NoState</OperationalState>
        <Price>11.1</Price>
        <ProdType>PT_THERAPY</ProdType>
        <RPlDate>2026-08-18T04:41:01.107948+03:00</RPlDate>
        <SessionId>2</SessionId>
        <StartTimeSerial>8</StartTimeSerial>
      </PrescheduledClassSessionEntry>
      <PrescheduledClassSessionEntry>
        <CFPrId>3</CFPrId>
        <CancelledDate>2026-08-18T04:41:01.107948+03:00</CancelledDate>
        <CancelledUserId>16</CancelledUserId>
        <CheckInState>NotCheckedIn</CheckInState>
        <ClassDescription>sample string 6</ClassDescription>
        <ClassId>5</ClassId>
        <CuFlId>4</CuFlId>
        <CustomerAlias>sample string 13</CustomerAlias>
        <CustomerName>sample string 14</CustomerName>
        <Duration>10</Duration>
        <EndTimeSerial>9</EndTimeSerial>
        <EntryType>Single</EntryType>
        <FinancialState>NOFIST_</FinancialState>
        <Id>1</Id>
        <Notes>sample string 12</Notes>
        <OperationalState>NoState</OperationalState>
        <Price>11.1</Price>
        <ProdType>PT_THERAPY</ProdType>
        <RPlDate>2026-08-18T04:41:01.107948+03:00</RPlDate>
        <SessionId>2</SessionId>
        <StartTimeSerial>8</StartTimeSerial>
      </PrescheduledClassSessionEntry>
    </Entries>
    <EntryType>Single</EntryType>
    <Extra1>64</Extra1>
    <Extra2>64</Extra2>
    <Id>1</Id>
    <IsHidden>true</IsHidden>
    <LineOrder>23</LineOrder>
    <MaxPositions>64</MaxPositions>
    <Notes>sample string 20</Notes>
    <OperationalState>NoState</OperationalState>
    <ProdId>21</ProdId>
    <ProdType>PT_THERAPY</ProdType>
    <PropertyId>2</PropertyId>
    <RGId1>6</RGId1>
    <RGId2>7</RGId2>
    <RGId3>8</RGId3>
    <RequestDate>2026-08-18T04:41:01.107948+03:00</RequestDate>
    <RescId1>9</RescId1>
    <RescId2>10</RescId2>
    <RescId3>11</RescId3>
    <StartTimeSerial>4</StartTimeSerial>
    <TreatmentState>NoState</TreatmentState>
    <UsedPositions>64</UsedPositions>
  </Session>
  <SessionId>1</SessionId>
  <UnassignedEntries>6</UnassignedEntries>
</PrescheduledClassSessionCancelResponse>