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/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": {
    "WebShowAvailableSlots": true,
    "UserCanSelectTherapistGender": true,
    "UserCanSelectTherapist": true,
    "UserCanSelectGuestCount": true,
    "WebMinGuestsCount": 5,
    "WebMaxGuestsCount": 6,
    "Id": 7,
    "PropertyId": 8,
    "RequestDate": "2026-11-16T01:50:40.7471866+02:00",
    "StartTimeSerial": 10,
    "EndTimeSerial": 11,
    "RGId1": 12,
    "RGId2": 13,
    "RGId3": 14,
    "RescId1": 15,
    "RescId2": 16,
    "RescId3": 17,
    "DeptId": 18,
    "ClassId": 19,
    "ClassDescription": "sample string 20",
    "Duration": 21,
    "TreatmentState": 0,
    "OperationalState": 0,
    "Extra1": 64,
    "Extra2": 64,
    "CancelledDate": "2026-11-16T01:50:40.7471866+02:00",
    "CancelledUserId": 25,
    "Notes": "sample string 26",
    "ProdType": 0,
    "ProdId": 27,
    "DayOrder": 28,
    "LineOrder": 29,
    "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-11-16T01:50:40.7471866+02:00",
        "StartTimeSerial": 8,
        "EndTimeSerial": 9,
        "Duration": 10,
        "ProdType": 0,
        "OperationalState": 0,
        "FinancialState": 0,
        "CFPrFinancialState": 0,
        "EntryType": 0,
        "CheckInState": 0,
        "Price": 11.1,
        "Notes": "sample string 12",
        "CustomerAlias": "sample string 13",
        "CustomerName": "sample string 14",
        "CancelledDate": "2026-11-16T01:50:40.7471866+02:00",
        "CancelledUserId": 16
      },
      {
        "Id": 1,
        "SessionId": 2,
        "CFPrId": 3,
        "CuFlId": 4,
        "ClassId": 5,
        "ClassDescription": "sample string 6",
        "RPlDate": "2026-11-16T01:50:40.7471866+02:00",
        "StartTimeSerial": 8,
        "EndTimeSerial": 9,
        "Duration": 10,
        "ProdType": 0,
        "OperationalState": 0,
        "FinancialState": 0,
        "CFPrFinancialState": 0,
        "EntryType": 0,
        "CheckInState": 0,
        "Price": 11.1,
        "Notes": "sample string 12",
        "CustomerAlias": "sample string 13",
        "CustomerName": "sample string 14",
        "CancelledDate": "2026-11-16T01:50:40.7471866+02:00",
        "CancelledUserId": 16
      }
    ]
  }
}