openapi: 3.0.2
info:
  description: >-
    <h4>Documentation for MyTime's Webhook Callbacks</h4>
    <h5>Setup Instructions</h5>
    <p>Webhooks configuration is handled by MyTime. MyTime should be provided
    with one or more endpoints that will receive webhook callbacks.</p>
    <p>The endpoints are configured to receive callbacks on a per-company and a per-object (appointment, client, employee, etc) basis which makes them highly customizable.</p>
    <p>If your endpoint requires authentication, we support either an API
    key signature (x-api-key header) that will be validated on the receiving end or an HMAC key
    we will use to sign requests.</p>
    <p>If a configured endpoint returns an error response,
    MyTime will make 5 additional webhook notification attempts to that endpoint.
    For a 400 error response status, NO additional attempts are made.</p>
    <h5>Understanding The Documentation</h5>
    <p>To review the list of the object-specific events that trigger callback notifications to the configured endpoints,
    under the default menu below, click the /subscribe tab, and then the Callbacks tab right under it.
    There you could also find a callback payload schema and an example value for each object.</p>
    <p>If you are just interested in the callback payload schemas for each object, see the Schemas menu below.</p>
  version: 1.0.0
  title: MyTime Webhooks
  termsOfService: 'http://mytime.com/terms/'
  contact:
    email: support@mytime.com
  license:
    name: Apache 2.0
    url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
paths:
  /subscribe:
    post:
      responses:
        '200':
          description: OK
      callbacks:
        AppointmentsWebhooks:
          appointment_booked:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/AppointmentPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          appointment_updated:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/AppointmentPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          appointment_confirmed:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/AppointmentPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          appointment_unconfirmed:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/AppointmentPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          appointment_accepted:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/AppointmentPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          appointment_checked_in:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/AppointmentPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          appointment_checked_out:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/AppointmentPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          appointment_canceled:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/AppointmentPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          appointment_completed:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/AppointmentPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          appointment_pending:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/AppointmentPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          appointment_reschedule:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/AppointmentPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
        LocationsWebhooks:
          location_created:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/LocationPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          location_updated:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/LocationPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          location_deleted:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/LocationPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
        EmployeesWebhooks:
          employee_created:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/EmployeePayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          employee_updated:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/EmployeePayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          employee_deleted:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/EmployeePayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
        ClientsWebhooks:
          client_created:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/ClientPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          client_updated:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/ClientPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          client_deleted:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/ClientPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
        ChildrenWebhooks:
          child_created:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/ChildPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          child_updated:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/ChildPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          child_deleted:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/ChildPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
        ClassesWebhooks:
          class_created:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/ClassPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          class_updated:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/ClassPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          class_deleted:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/ClassPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
        ClassSessionsWebhooks:
          class_session_created:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/ClassSessionPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          class_session_updated:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/ClassSessionPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          class_session_booked:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/ClassSessionPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          class_session_canceled:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/ClassSessionPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
        SessionEnrollmentsWebhooks:
          session_enrollment_creator:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/SessionEnrollmentPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          session_enrollment_updater:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/SessionEnrollmentPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          session_enrollment_canceler:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/SessionEnrollmentPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          session_enrollment_check_in:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/SessionEnrollmentPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          session_enrollment_uncheck_in:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/SessionEnrollmentPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          session_enrollment_confirmer:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/SessionEnrollmentPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          session_enrollment_unconfirmer:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/SessionEnrollmentPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          session_enrollment_showed_up:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/SessionEnrollmentPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          session_enrollment_no_show:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/SessionEnrollmentPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
        ClassCategoriesWebhooks:
          class_category_created:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/ClassCategoryPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          class_category_updated:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/ClassCategoryPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          class_category_deleted:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/ClassCategoryPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
        TicketWebhooks:
          ticket_created:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/TicketPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          ticket_updated:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/TicketPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          ticket_closed:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/TicketPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          ticket_reopened:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/TicketPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          ticket_voided:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/TicketPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          ticket_deleted:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/TicketPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
        ProductWebhooks:
          product_created:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/ProductPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          product_updated:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/ProductPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          product_deleted:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/ProductPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
        ExternalLocationsWebhooks:
          external_location_created:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/ExternalLocationPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          external_location_updated:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/ExternalLocationPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          external_location_deleted:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/ExternalLocationPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
        AdjustmentEventWebhooks:
          adjustment_event_created:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/AdjustmentEventPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
          adjustment_event_updated:
            post:
              requestBody:
                description: Callback payload
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/AdjustmentEventPayload'
              responses:
                '200':
                  description: >-
                    webhook successfully processed and no retries will be
                    performed
components:
  schemas:
    AppliedDiscount:
      type: object
      properties:
        id:
          type: integer
        amount:
          type: number
          format: float
        commissionable:
          type: boolean
        discountable_type:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
        bogo_promotion_id:
          type: integer
        discountable_id:
          type: integer
        my_client_promotion_promo_id:
          type: integer
    AppliedDiscountSubject:
      type: object
      properties:
        applied_discount:
          $ref: '#/components/schemas/AppliedDiscount'
    Appointment:
      type: object
      properties:
        id:
          type: integer
        company_id:
          type: integer
        status:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
        begin_at:
          type: string
        end_at:
          type: string
        booked_by:
          type: string
        checked_in:
          type: string
        checked_in_at:
          type: string
        checked_out_at:
          type: string
        external_id:
          type: string
        referrer:
          type: string
    AppointmentSubject:
      type: object
      properties:
        appointment:
          $ref: '#/components/schemas/Appointment'
    Adjustment:
      type: object
      properties:
        id:
          type: integer
        amount:
          type: number
          format: float
        adjustable_id:
          type: integer
        adjustable_type:
          type: string
        pos_ticket_id:
          type: integer
        type:
          type: string
    AdjustmentSubject:
      type: object
      properties:
        adjustment:
          $ref: '#/components/schemas/Adjustment'
    AdjustmentEvent:
      type: object
      properties:
        id:
          type: integer
        location_id:
          type: integer
        employee_id:
          type: integer
        sku_id:
          type: integer
        adjustment_reason:
          type: integer
        note:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
        deleted_at:
          type: string
        cause_id:
          type: integer
        cause_type:
          type: string
        external_id:
          type: string
        transfer_location_id:
          type: integer
    AdjustmentEventSubject:
      type: object
      properties:
        adjustment_event:
          $ref: '#/components/schemas/AdjustmentEvent'
    Attendee:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
    AttendeeSubject:
      type: object
      properties:
        attendee:
          $ref: '#/components/schemas/Attendee'
    CancellationFee:
      type: object
      properties:
        id:
          type: integer
        type:
          type: string
        itemizable_id:
          type: integer
        amount:
          type: number
          format: float
        created_at:
          type: string
        updated_at:
          type: string
        my_client_appointment_id:
          type: integer
        membership_template_id:
          type: integer
        client_membership_id:
          type: integer
        status:
          type: integer
        data:
          type: string
        my_class_session_enrollment_id:
          type: integer
        amount_before_discount:
          type: number
          format: float
        commission_employee_id:
          type: integer
        my_client_child_id:
          type: integer
    CancellationFeeSubject:
      type: object
      properties:
        category:
          $ref: '#/components/schemas/CancellationFee'
    Child:
      type: object
      properties:
        id:
          type: integer
        type:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
        external_id:
          type: string
    ChildSubject:
      type: object
      properties:
        child:
          $ref: '#/components/schemas/Child'
    Class:
      type: object
      properties:
        id:
          type: integer
        company_id:
          type: integer
        status:
          type: string
        name:
          type: string
        description:
          type: string
        instructions:
          type: string
        what_to_bring:
          type: string
    ClassSubject:
      type: object
      properties:
        class:
          $ref: '#/components/schemas/Class'
    ClassSession:
      type: object
      properties:
        id:
          type: integer
        company_id:
          type: integer
        location_id:
          type: integer
        name:
          type: string
        description:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
        begin_at:
          type: string
        end_at:
          type: string
        capacity:
          type: string
        price:
          type: number
          format: float
        status:
          type: string
        class_id:
          type: integer
        what_to_bring:
          type: string
        openings_count:
          type: integer
        num_enrolled:
          type: integer
        total_capacity:
          type: integer
        external_link:
          type: string
    ClassSessionSubject:
      type: object
      properties:
        class_session:
          $ref: '#/components/schemas/ClassSession'
    ClassCategory:
      type: object
      properties:
        id:
          type: integer
        company_id:
          type: integer
        name:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
    ClassCategorySubject:
      type: object
      properties:
        class_category:
          $ref: '#/components/schemas/ClassCategory'
    Client:
      type: object
      properties:
        id:
          type: integer
        first_name:
          type: string
        last_name:
          type: string
        middle_name:
          type: string
        date_of_birth:
          type: string
        email:
          type: string
        home_phone:
          type: string
        mobile_phone:
          type: string
        work_phone:
          type: string
        gender:
          type: string
        company_id:
          type: integer
        status:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
        external_id:
          type: string
        client_since:
          type: string
        walk_in:
          type: boolean
        can_receive_automated_emails:
          type: boolean
        can_receive_automated_sms:
          type: boolean
        can_receive_manual_emails:
          type: boolean
        can_receive_manual_sms:
          type: boolean
        tax_exempt:
          type: boolean
        tax_exempt_verification:
          type: string
        is_existing_customer:
          type: boolean
    ClientSubject:
      type: object
      properties:
        client:
          $ref: '#/components/schemas/Client'
    ClientCredit:
      type: object
      properties:
        id:
          type: integer
        amount:
          type: number
          format: float
        client_id:
          type: integer
        membership_client_benefit_id:
          type: integer
        created_at:
          type: string
        updated_at:
          type: string
        starts_at:
          type: string
        expires_at:
          type: string
        external_id:
          type: integer
        applies_to_all_variations:
          type: boolean
        applies_to_all_skus:
          type: boolean
        company_id:
          type: integer
        default_amount:
          type: number
          format: float
        carry_over_amount:
          type: number
          format: float
        client_membership_charge_id:
          type: integer
    ClientCreditSubject:
      type: object
      properties:
        client_credit:
          $ref: '#/components/schemas/ClientCredit'
    CouponCredit:
      type: object
      properties:
        id:
          type: integer
        amount:
          type: number
          format: float
        coupon_id:
          type: integer
        created_at:
          type: string
        updated_at:
          type: string
    CouponCreditSubject:
      type: object
      properties:
        coupon_credit:
          $ref: '#/components/schemas/CouponCredit'
    Employee:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        legal_name:
          type: string
        title:
          type: string
        email:
          type: string
        phone:
          type: string
        company_id:
          type: integer
        user_id:
          type: integer
        created_at:
          type: string
        updated_at:
          type: string
        is_owner:
          type: boolean
        external_id:
          type: string
        secondary_external_id:
          type: string
    EmployeeSubject:
      type: object
      properties:
        employee:
          $ref: '#/components/schemas/Employee'
    EmployeeTitle:
      type: object
      properties:
        id:
          type: integer
        company_id:
          type: integer
        title:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
        deleted_at:
          type: string
    EmployeeTitleSubject:
      type: object
      properties:
        employee_title:
          $ref: '#/components/schemas/EmployeeTitle'
    Email:
      type: object
      properties:
        id:
          type: integer
        type:
          type: string
        active:
          type: boolean
        destination:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
    EmailSubject:
      type: object
      properties:
        email:
          $ref: '#/components/schemas/Email'
    FacebookCredit:
      type: object
      properties:
        id:
          type: integer
        user_id:
          type: integer
        fb_user_id:
          type: integer
        created_at:
          type: string
        updated_at:
          type: string
        used:
          type: boolean
        liked:
          type: boolean
        amount:
          type: integer
    FacebookCreditSubject:
      type: object
      properties:
        facebook_credit:
          $ref: '#/components/schemas/FacebookCredit'
    GiftCardCredit:
      type: object
      properties:
        id:
          type: integer
        user_id:
          type: integer
        created_at:
          type: string
        updated_at:
          type: string
        company_id:
          type: integer
        amount:
          type: number
          format: float
        coupon_id:
          type: integer
        pos_register_id:
          type: integer
    GiftCardCreditSubject:
      type: object
      properties:
        gift_card_credit:
          $ref: '#/components/schemas/GiftCardCredit'
    GiftCardPurchase:
      type: object
      properties:
        id:
          type: integer
        amount_adjustment:
          type: number
          format: float
        amount_before_discount:
          type: number
          format: float
        commission:
          type: number
          format: float
        data:
          type: string
        email_to_be_sent_at:
          type: string
        mailing_address:
          type: string
        original_value:
          type: number
          format: float
        purchased_at:
          type: string
        recipient_email:
          type: string
        recipient_first_name:
          type: string
        recipient_last_name:
          type: string
        recipient_note:
          type: string
        referrer:
          type: string
        status:
          type: string
        total_price:
          type: number
          format: float
        created_at:
          type: string
        updated_at:
          type: string
        client_id:
          type: integer
        commission_employee_id:
          type: integer
        company_id:
          type: integer
        coupon_id:
          type: integer
        deal_id:
          type: integer
        employee_id:
          type: integer
        location_id:
          type: integer
        transaction_id:
          type: string
        user_id:
          type: integer
        variation_id:
          type: integer
        voucher_id:
          type: string
    GiftCardPurchaseSubject:
      type: object
      properties:
        gift_card_purchase:
          $ref: '#/components/schemas/GiftCardPurchase'
    Coupon:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        code:
          type: string
        code_type:
          type: string
        uses:
          type: integer
        user_id:
          type: integer
        value:
          type: number
          format: float
        expiry_at:
          type: string
        new_account:
          type: boolean
        created_at:
          type: string
        updated_at:
          type: string
        deal_id:
          type: integer
        adjustment_id:
          type: integer
        consumer_id:
          type: integer
        reason:
          type: string
        merchant_id:
          type: integer
        my_client_marketing_promotion_id:
          type: integer
        deleted_at:
          type: string
        pos_bogo_promotion_id:
          type: integer
        balance:
          type: number
    CouponSubject:
      type: object
      properties:
        location:
          $ref: '#/components/schemas/Coupon'
    Refund:
      type: object
      properties:
        id:
          type: integer
        amount:
          type: number
          format: float
        amount_collected:
          type: number
          format: float
        card_present:
          type: boolean
        charged_at:
          type: string
        charged_by:
          type: string
        hold_amount:
          type: number
          format: float
        last_hold_placed_at:
          type: string
        processing_fee:
          type: number
          format: float
        status:
          type: string
        type:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
        cashback_payment_id:
          type: integer
        my_client_client_id:
          type: integer
        original_transaction_id:
          type: integer
        payment_account_id:
          type: integer
        pos_register_id:
          type: integer
        purchase_id:
          type: integer
        refund_id:
          type: integer
        refunded_by_employee_id:
          type: integer
        transaction_id:
          type: string
        upstream_transaction_id:
          type: string
    RefundSubject:
      type: object
      properties:
        location:
          $ref: '#/components/schemas/Refund'
    Location:
      type: object
      properties:
        id:
          type: integer
        company_id:
          type: integer
        nickname:
          type: string
        street_address:
          type: string
        street_address_2:
          type: string
        city:
          type: string
        state:
          type: string
        zip_code:
          type: string
        phone_number:
          type: string
        mobile_number:
          type: string
        time_zone:
          type: string
        deleted_at:
          type: string
        country:
          type: string
        iso_country:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
        external_id:
          type: string
        lat:
          type: number
          format: double
        lng:
          type: number
          format: double
    LocationSubject:
      type: object
      properties:
        location:
          $ref: '#/components/schemas/Location'
    Payment:
      type: object
      properties:
        id:
          type: integer
        my_client_client_id:
          type: integer
        type:
          type: string
        note:
          type: string
        amount:
          type: number
          format: float
        amount_collected:
          type: number
          format: float
        created_at:
          type: string
        updated_at:
          type: string
        location_id:
          type: integer
        employee_id:
          type: integer
        pos_register_id:
          type: integer
        charged_at:
          type: string
    PaymentSubject:
      type: object
      properties:
        payment:
          $ref: '#/components/schemas/Payment'
    ReturnItem:
      type: object
      properties:
          id:
            type: integer
          amount:
            type: number
            format: float
          tax_amount:
            type: number
            format: float
          return_quantity:
            type: integer
          refund_id:
            type: integer
          returnable_id:
            type: integer
          returnable_type:
            type: string
          refund_quantity:
            type: integer
          deleted_at:
            type: string
          location_id:
            type: integer
          remove_member_credits:
            type: boolean
          created_at:
            type: string
          updated_at:
            type: string
    ReturnItemSubject:
      type: object
      properties:
        return_item:
          $ref: '#/components/schemas/ReturnItem'
    PaymentItem:
      type: object
      properties:
        id:
          type: integer
        pos_ticket_id:
          type: integer
        payment_id:
          type: integer
        payment_type:
          type: string
    PaymentItemSubject:
      type: object
      properties:
        payment_item:
          $ref: '#/components/schemas/PaymentItem'
    PaymentRefund:
      type: object
      properties:
        id:
          type: integer
        payment_id:
          type: integer
        amount:
          type: number
          format: float
        refunded_by_employee_id:
          type: integer
        payment_type:
          type: string
        pos_register_id:
          type: integer
        refund_id:
          type: integer
        created_at:
          type: string
        updated_at:
          type: string
    PaymentRefundSubject:
      type: object
      properties:
        payment_refund:
          $ref: '#/components/schemas/PaymentRefund'
    Photo:
      type: object
      properties:
        id:
          type: integer
        original:
          type: string
        medium:
          type: string
        thumb:
          type: string
        slate_black:
          type: string
        arm:
          type: string
        logo:
          type: string
        mini:
          type: string
        large_background:
          type: string
        large_arm:
          type: string
    PhotoSubject:
      type: object
      properties:
        photo:
          $ref: '#/components/schemas/Photo'
    IntakeForm:
      type: object
      properties:
        id:
          type: integer
        company_id:
          type: integer
        name:
          type: string
        resource_type:
          type: string
        mandatory:
          type: boolean
    IntakeFormSubject:
      type: object
      properties:
        intake_form:
          $ref: '#/components/schemas/IntakeForm'
    IntakeFormItem:
      type: object
      properties:
        id:
          type: integer
        ask_every_time:
          type: boolean
        custom_field_id:
          type: integer
        intake_form_id:
          type: integer
        required:
          type: boolean
        sort_order:
          type: integer
    IntakeFormItemSubject:
      type: object
      properties:
        intake_form_item:
          $ref: '#/components/schemas/IntakeFormItem'
    ClassSetting:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        cancellation_interval:
          type: integer
          description: Interval in seconds
        cancellation_policy:
          type: integer
          description: >-
           :no_charge => 0,
           :percentage => 1,
           :flat_fee => 2
        cancellation_value:
          type: number
          description: >-
            can be $10 or %10 based on the cancellation_policy attribute
    ClassSettingSubject:
      type: object
      properties:
        class_setting:
          $ref: '#/components/schemas/ClassSetting'
    CustomField:
      type: object
      properties:
        id:
          type: integer
        data:
          type: string
        deleted_at:
          type: string
        is_label:
          type: boolean
        is_secondary_label:
          type: boolean
        required:
          type: boolean
        required_internally:
          type: boolean
        resource_type:
          type: string
        sort_order:
          type: integer
        title:
          type: string
        type:
          type: string
        uuid:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
        company_id:
          type: integer
        external_id:
          type: string
    CustomFieldSubject:
      type: object
      properties:
        custom_field:
          $ref: '#/components/schemas/CustomField'
    CustomFieldValue:
      type: object
      properties:
        id:
          type: integer
        uuid:
          type: string
        custom_field_id:
          type: integer
        value:
          type: string
        data:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
        resource_type:
          type: string
        resource_id:
          type: integer
        deleted_at:
          type: string
    CustomFieldValueSubject:
      type: object
      properties:
        custom_field:
          $ref: '#/components/schemas/CustomFieldValue'
    CustomFieldOption:
      type: object
      properties:
        id:
          type: integer
        option_value:
          type: string
        sort_order:
          type: integer
        created_at:
          type: string
        updated_at:
          type: string
        custom_field_id:
          type: integer
        external_id:
          type: string
    CustomFieldOptionSubject:
      type: object
      properties:
        custom_field:
          $ref: '#/components/schemas/CustomFieldOption'
    SessionEnrollment:
      type: object
      properties:
        id:
          type: integer
        company_id:
          type: integer
        session_id:
          type: integer
        amount:
          type: number
          format: float
        my_client_client_id:
          type: integer
        my_client_child_id:
          type: integer
        attendee_id:
          type: integer
        attendee_name:
          type: string
        status:
          type: string
        virtual_event_token:
          type: string
    SessionEnrollmentSubject:
      type: object
      properties:
        session_enrollment:
          $ref: '#/components/schemas/SessionEnrollment'
    SessionAttendee:
      type: object
      properties:
        id:
          type: integer
        session_id:
          type: integer
        attendee_id:
          type: integer
        price:
          type: number
          format: float
        capacity:
          type: integer
        num_enrolled:
          type: integer
        booking_from_interval:
          type: integer
        booking_from_datatype:
          type: string
        booking_upto_interval:
          type: integer
        booking_upto_datatype:
          type: string
        members_only:
          type: boolean
        name:
          type: string
    SessionAttendeeSubject:
      type: object
      properties:
        session_attendee:
          $ref: '#/components/schemas/SessionAttendee'
    ExternalLocation:
      type: object
      properties:
        id:
          type: integer
        nickname:
          type: string
        country:
          type: string
        street_address:
          type: string
        street_address_2:
          type: string
        city:
          type: string
        state:
          type: string
        zip_code:
          type: string
        deleted_at:
          type: string
        company_id:
          type: integer
        lat:
          type: string
        lng:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
        external_id:
          type: string
        time_zone:
          type: string
    ExternalLocationSubject:
      type: object
      properties:
        external_location:
          $ref: '#/components/schemas/ExternalLocation'
    Package:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        appointments_count:
          type: integer
        expiry_interval:
          type: integer
        price:
          type: number
          format: float
        user_id:
          type: integer
        company_id:
          type: integer
        created_at:
          type: string
        updated_at:
          type: string
        discount:
          type: integer
        deleted_at:
          type: string
        details:
          type: string
        auto_created:
          type: boolean
        is_existing_customer:
          type: boolean
        sort_order:
          type: integer
        original_calapi_id:
          type: integer
        unlimited:
          type: boolean
        external_id:
          type: string
        in_membership:
          type: boolean
    Bundle:
      type: object
      properties:
        id:
          type: integer
        available_online:
          type: boolean
        commission_type:
          type: integer
        data:
          type: string
        deleted_at:
          type: string
        description:
          type: string
        for_child:
          type: boolean
        in_membership:
          type: boolean
        name:
          type: string
        validity_duration:
          type: integer
        validity_type:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
        company_id:
          type: integer
        external_id:
          type: string
    PackageSubject:
      type: object
      properties:
        category:
          $ref: '#/components/schemas/Package'
    MembershipTemplate:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        description:
          type: string
        membership_period:
          type: string
        billing_cycle:
          type: string
        payment_type:
          type: integer
        membership_price:
          type: string
        registration_fee_amount:
          type: number
          format: float
        cancellation_fee:
          type: number
          format: float
        rollover_unused_benefits_to_next_period:
          type: boolean
        agreement:
          type: string
        agreement_requires_signature:
          type: boolean
        created_at:
          type: string
        updated_at:
          type: string
        external_id:
          type: string
        deleted_at:
          type: string
        auto_renew:
          type: boolean
        company_id:
          type: integer
        pause_fee_amount:
          type: number
          format: float
        should_associate_client_memberships_with_all_locations:
          type: boolean
        should_associate_with_all_new_locations:
          type: boolean
        available_online:
          type: boolean
        for_child:
          type: boolean
        upgrade_membership_template_id:
          type: integer
    MembershipTemplateSubject:
      type: object
      properties:
        category:
          $ref: '#/components/schemas/MembershipTemplate'
    MembershipLocation:
      type: object
      properties:
        id:
          type: integer
        membership_template_id:
          type: integer
        location_id:
          type: integer
        created_at:
          type: string
        updated_at:
          type: string
        price:
          type: number
          format: float
    MembershipLocationSubject:
      type: object
      properties:
        category:
          $ref: '#/components/schemas/MembershipLocation'
    MembershipCredit:
      type: object
      properties:
        id:
          type: integer
        amount:
          type: number
          format: float
        created_at:
          type: string
        updated_at:
          type: string
        applies_to_all_variations:
          type: boolean
        applies_to_all_skus:
          type: boolean
        external_id:
          type: string
    MembershipCreditSubject:
      type: object
      properties:
        category:
          $ref: '#/components/schemas/MembershipCredit'
    MembershipBenefit:
      type: object
      properties:
        id:
          type: integer
        membership_template_id:
          type: integer
        benefit_type:
          type: string
        benefit_id:
          type: integer
        created_at:
          type: string
        updated_at:
          type: string
        external_id:
          type: string
    MembershipBenefitSubject:
      type: object
      properties:
        category:
          $ref: '#/components/schemas/MembershipBenefit'
    Note:
      type: object
      properties:
        id:
          type: integer
        content:
          type: string
        last_edited_at:
          type: string
        last_edited_by:
          type: integer
        notable_type:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
        employee_id:
          type: integer
        notable_id:
          type: integer
    NoteSubject:
      type: object
      properties:
        category:
          $ref: '#/components/schemas/Note'
    BundleItemGroup:
      type: object
      properties:
        id:
          type: integer
        data:
          type: string
        deleted_at:
          type: string
        include_all_classes:
          type: boolean
        include_all_skus:
          type: boolean
        include_all_variations:
          type: boolean
        quantity:
          type: number
          format: float
        created_at:
          type: string
        updated_at:
          type: string
        bundle_id:
          type: integer
        external_id:
          type: string
    BundleItemGroupSubject:
      type: object
      properties:
        category:
          $ref: '#/components/schemas/BundleItemGroup'
    BundleItemGroupCommissionPrice:
      type: object
      properties:
        id:
          type: integer
        include_all_employees:
          type: boolean
        include_all_items:
          type: boolean
        include_all_locations:
          type: boolean
        price:
          type: number
          format: float
        created_at:
          type: string
        updated_at:
          type: string
        bundle_item_group_id:
          type: integer
    BundleItemGroupCommissionPriceSubject:
      type: object
      properties:
        category:
          $ref: '#/components/schemas/BundleItemGroupCommissionPrice'
    ForMembership:
      type: object
      properties:
        id:
          type: integer
        applies_to_all_classes:
          type: boolean
        applies_to_all_skus:
          type: boolean
        applies_to_all_variations:
          type: boolean
        applies_to_gift_cards:
          type: boolean
        barcode:
          type: string
        commissionable:
          type: boolean
        data:
          type: string
        deleted_at:
          type: string
        discount:
          type: number
          format: float
        discount_type:
          type: string
        discount_id:
          type: integer
        name:
          type: string
        one_per_client:
          type: boolean
        only_new_client:
          type: boolean
        push_sent_at:
          type: string
        type:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
        company_id:
          type: integer
        external_id:
          type: string
    ForMembershipSubject:
      type: object
      properties:
        category:
          $ref: '#/components/schemas/ForMembership'
    Promo:
      type: object
      properties:
        id:
          type: integer
        applies_to_all_classes:
          type: boolean
        applies_to_all_skus:
          type: boolean
        applies_to_all_variations:
          type: boolean
        applies_to_gift_cards:
          type: boolean
        barcode:
          type: string
        commissionable:
          type: boolean
        data:
          type: string
        deleted_at:
          type: string
        name:
          type: string
        one_per_client:
          type: boolean
        only_new_client:
          type: boolean
        push_sent_at:
          type: string
        type:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
        company_id:
          type: integer
        external_id:
          type: string
    PromoSubject:
      type: object
      properties:
        category:
          $ref: '#/components/schemas/Promo'
    Promotion:
      type: object
      properties:
        id:
          type: integer
        auto_apply:
          type: boolean
        barcode:
          type: string
        commissionable:
          type: boolean
        data:
          type: string
        deleted_at:
          type: string
        description:
          type: string
        funding_limit:
          type: number
          format: float
        name:
          type: string
        one_per_client:
          type: boolean
        only_new_client:
          type: boolean
        promo_code:
          type: string
        requires_membership:
          type: boolean
        single_use_per_ticket:
          type: boolean
        sort_order:
          type: integer
        status:
          type: integer
        usable_with_other_promotions:
          type: boolean
        created_at:
          type: string
        updated_at:
          type: string
        company_id:
          type: integer
        discount_id:
          type: string
        external_id:
          type: string
    PromotionSubject:
      type: object
      properties:
        promotion:
          $ref: '#/components/schemas/Promotion'
    Ticket:
      type: object
      properties:
        id:
          type: integer
        location_id:
          type: integer
        my_client_client_id:
          type: integer
        status:
          type: string
        uuid:
          type: string
        employee_id:
          type: integer
        closed_by_employee_id:
          type: integer
        created_at:
          type: string
        updated_at:
          type: string
        closed_at:
          type: string
        external_id:
          type: string
    TicketSubject:
      type: object
      properties:
        ticket:
          $ref: '#/components/schemas/Ticket'
    Tip:
      type: object
      properties:
        id:
          type: integer
        user_id:
          type: integer
        slot_id:
          type: integer
        purchase_id:
          type: integer
        value:
          type: number
          format: float
        amount:
          type: number
          format: float
        tip_source:
          type: string
        payable_amount:
          type: number
          format: float
        created_at:
          type: string
        updated_at:
          type: string
    TipSubject:
      type: object
      properties:
        ticket:
          $ref: '#/components/schemas/Tip'
    Product:
      type: object
      properties:
        id:
          type: integer
        company_id:
          type: integer
        category_id:
          type: integer
        brand_id:
          type: integer
        name:
          type: string
        description:
          type: string
        visible_to_clients:
          type: boolean
        commissionable:
          type: boolean
        discontinued:
          type: boolean
        created_at:
          type: string
        updated_at:
          type: string
        deleted_at:
          type: string
        external_id:
          type: integer
    ProductSubject:
      type: object
      properties:
        product:
          $ref: '#/components/schemas/Product'
    Brand:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
    BrandSubject:
      type: object
      properties:
        brand:
          $ref: '#/components/schemas/Brand'
    Category:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
    CategorySubject:
      type: object
      properties:
        category:
          $ref: '#/components/schemas/Category'
    SkuLocationConfiguration:
      type: object
      properties:
        id:
          type: integer
        sku_id:
          type: integer
        location_id:
          type: integer
        retail_enabled:
          type: boolean
        back_bar_enabled:
          type: boolean
        min:
          type: integer
        max:
          type: integer
        created_at:
          type: string
        updated_at:
          type: string
    SkuLocationConfigurationSubject:
      type: object
      properties:
        sku:
          $ref: '#/components/schemas/SkuLocationConfiguration'
    Sku:
      type: object
      properties:
        id:
          type: integer
        company_id:
          type: integer
        product_id:
          type: integer
        name:
          type: string
        code:
          type: string
        upc:
          type: string
        cost:
          type: number
          format: float
        created_at:
          type: string
        updated_at:
          type: string
        deleted_at:
          type: string
    SkuSubject:
      type: object
      properties:
        sku:
          $ref: '#/components/schemas/Sku'
    Stock:
      type: object
      properties:
        id:
          type: integer
        location_id:
          type: integer
        sku_id:
          type: integer
        quantity:
          type: integer
        price:
          type: number
          format: float
        created_at:
          type: string
        updated_at:
          type: string
        deleted_at:
          type: string
        cost:
          type: number
          format: float
        vendor_id:
          type: integer
        expiration_date:
          type: string
        stock_type:
          type: integer
    StockSubject:
      type: object
      properties:
        stock:
          $ref: '#/components/schemas/Stock'
    StockAdjustment:
      type: object
      properties:
        id:
          type: integer
        deleted_at:
          type: string
        quantity_delta:
          type: number
          format: double
        created_at:
          type: string
        updated_at:
          type: string
        adjustment_event_id:
          type: integer
        external_id:
          type: string
        stock_id:
          type: integer
    StockAdjustmentSubject:
      type: object
      properties:
        stock_adjustment:
          $ref: '#/components/schemas/StockAdjustment'
    Variation:
      type: object
      properties:
        id:
          type: integer
        deal_id:
          type: integer
        name:
          type: string
        sort_order:
          type: integer
        duration:
          type: string
        price_varies:
          type: boolean
        description:
          type: string
        sku:
          type: string
        add_on:
          type: string
        external_id:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
    VariationSubject:
      type: object
      properties:
        variation:
          $ref: '#/components/schemas/Variation'
    SlotVariation:
      type: object
      properties:
        id:
          type: integer
        slot_id:
          type: integer
        variation_id:
          type: integer
        duration:
          type: string
        price:
          type: number
          format: float
        amount:
          type: number
          format: float
        amount_before_discount:
          type: number
          format: float
        uuid:
          type: string
    SlotVariationSubject:
      type: object
      properties:
        slot_variation:
          $ref: '#/components/schemas/SlotVariation'
    Transaction:
      type: object
      properties:
        id:
          type: integer
        purchase_id:
          type: integer
        transaction_id:
          type: integer
        amount:
          type: number
          format: float
        created_at:
          type: string
        updated_at:
          type: string
        my_client_client_id:
          type: integer
    TransactionSubject:
      type: object
      properties:
        transaction:
          $ref: '#/components/schemas/Transaction'
    Item:
      type: object
      properties:
        id:
          type: integer
        type:
          type: string
        itemizable_id:
          type: integer
        amount:
          type: number
          format: float
        created_at:
          type: string
        updated_at:
          type: string
        my_client_appointment_id:
          type: integer
        membership_template_id:
          type: integer
        client_membership_id:
          type: integer
        status:
          type: integer
        my_class_session_enrollment_id:
          type: integer
        amount_before_discount:
          type: number
          format: float
        commission_employee_id:
          type: integer
    ItemSubject:
      type: object
      properties:
        item:
          $ref: '#/components/schemas/Item'
    ClientBenefit:
      type: object
      properties:
        id:
          type: integer
        deleted_at:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
        client_membership_id:
          type: integer
        membership_benefit_id:
          type: integer
    ClientBenefitSubject:
      type: object
      properties:
        client_benefit:
          $ref: '#/components/schemas/ClientBenefit'
    ClientPromo:
      type: object
      properties:
        id:
          type: integer
        membership_client_benefit_id:
          type: integer
        promotion_promo_id:
          type: integer
        client_id:
          type: integer
        starts_at:
          type: string
        expires_at:
          type: string
        limit:
          type: integer
        created_at:
          type: string
        updated_at:
          type: string
        client_membership_charge_id:
          type: integer
    ClientPromoSubject:
      type: object
      properties:
        client_promo:
          $ref: '#/components/schemas/ClientPromo'
    ClientMembership:
      type: object
      properties:
        id:
          type: integer
        membership_template_id:
          type: integer
        created_at:
          type: string
        updated_at:
          type: string
        client_id:
          type: integer
        status:
          type: integer
        start_date:
          type: string
        end_date:
          type: string
        membership_purchase_id:
          type: integer
        by_employee:
          type: integer
        canceled_at:
          type: string
        external_id:
          type: integer
        date_of_last_charge:
          type: string
        deleted_at:
          type: string
        auto_renew:
          type: boolean
        renewed_at:
          type: string
        billing_day:
          type: integer
        company_id:
          type: integer
        cancellation_date:
          type: string
        pausing_start_date:
          type: string
        pausing_end_date:
          type: string
        pause_fee_amount:
          type: number
          format: float
        registration_fee_amount:
          type: number
          format: float
        cancellation_fee_amount:
          type: number
          format: float
        membership_price:
          type: number
          format: float
        name:
          type: string
        rollover_unused_benefits_to_next_period:
          type: boolean
        location_id:
          type: integer
        date_of_next_charge:
          type: string
        payment_type:
          type: integer
        client_only:
          type: boolean
    ClientMembershipSubject:
      type: object
      properties:
        client_membership:
          $ref: '#/components/schemas/ClientMembership'
    ClientMembershipCharge:
      type: object
      properties:
        id:
          type: integer
        type:
          type: string
        itemizable_id:
          type: integer
        amount:
          type: number
        created_at:
          type: string
        updated_at:
          type: string
        my_client_appointment_id:
          type: integer
        membership_template_id:
          type: integer
        client_membership_id:
          type: integer
        status:
          type: integer
        my_class_session_enrollment_id:
          type: integer
        amount_before_discount:
          type: number
          format: float
        commission_employee_id:
          type: integer
    ClientMembershipChargeSubject:
      type: object
      properties:
        client_membership_charge:
          $ref: '#/components/schemas/ClientMembershipCharge'
    PayloadHeader:
      type: object
      properties:
        company_id:
          type: integer
        action:
          type: string
        user_id:
          type: integer
        version:
          type: string
        type:
          type: string
    AppointmentPayload:
      type: object
      allOf:
        - $ref: '#/components/schemas/PayloadHeader'
        - properties:
            object:
              type: object
              properties:
                appointment:
                  $ref: '#/components/schemas/Appointment'
            subjects:
              type: array
              items:
                oneOf:
                  - $ref: '#/components/schemas/LocationSubject'
                  - $ref: '#/components/schemas/EmployeeSubject'
                  - $ref: '#/components/schemas/ClientSubject'
                  - $ref: '#/components/schemas/ChildSubject'
                  - $ref: '#/components/schemas/TicketSubject'
                  - $ref: '#/components/schemas/SlotVariationSubject'
                  - $ref: '#/components/schemas/VariationSubject'
                  - $ref: '#/components/schemas/AdjustmentSubject'
    LocationPayload:
      type: object
      allOf:
        - $ref: '#/components/schemas/PayloadHeader'
        - properties:
            object:
              type: object
              properties:
                location:
                  $ref: '#/components/schemas/Location'
            subjects:
              type: array
              items:
                oneOf:
                  - $ref: '#/components/schemas/EmailSubject'
    ClientPayload:
      type: object
      allOf:
        - $ref: '#/components/schemas/PayloadHeader'
        - properties:
            object:
              allOf:
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - client
                - $ref: '#/components/schemas/Client'
                - $ref: '#/components/schemas/CustomField'
                - $ref: '#/components/schemas/CustomFieldValue'
                - $ref: '#/components/schemas/CustomFieldOption'
    ChildPayload:
      type: object
      allOf:
        - $ref: '#/components/schemas/PayloadHeader'
        - properties:
            object:
              type: object
              properties:
                child:
                  $ref: '#/components/schemas/Child'
            subjects:
              type: array
              items:
                oneOf:
                  - $ref: '#/components/schemas/ClientSubject'
    ExternalLocationPayload:
      type: object
      allOf:
        - $ref: '#/components/schemas/PayloadHeader'
        - properties:
            object:
              type: object
              properties:
                external_location:
                  $ref: '#/components/schemas/ExternalLocation'
    EmployeePayload:
      type: object
      allOf:
        - $ref: '#/components/schemas/PayloadHeader'
        - properties:
            object:
              type: object
              properties:
                employee:
                  $ref: '#/components/schemas/Employee'
    EmployeeTitlePayload:
      type: object
      allOf:
        - $ref: '#/components/schemas/PayloadHeader'
        - properties:
            object:
              type: object
              properties:
                employee_title:
                  $ref: '#/components/schemas/EmployeeTitle'
    ClassPayload:
      type: object
      allOf:
        - $ref: '#/components/schemas/PayloadHeader'
        - properties:
            object:
              type: object
              properties:
                class:
                  $ref: '#/components/schemas/Class'
            subjects:
              type: array
              items:
                oneOf:
                  - $ref: '#/components/schemas/ClassCategorySubject'
                  - $ref: '#/components/schemas/ClassSettingSubject'
    ClassSessionPayload:
      type: object
      allOf:
        - $ref: '#/components/schemas/PayloadHeader'
        - properties:
            object:
              type: object
              properties:
                class_session:
                  $ref: '#/components/schemas/ClassSession'
            subjects:
              type: array
              items:
                oneOf:
                  - $ref: '#/components/schemas/ClassCategorySubject'
                  - $ref: '#/components/schemas/LocationSubject'
                  - $ref: '#/components/schemas/EmployeeSubject'
                  - $ref: '#/components/schemas/ClassSubject'
                  - $ref: '#/components/schemas/SessionAttendeeSubject'
                  - $ref: '#/components/schemas/ExternalLocationSubject'
                  - $ref: '#/components/schemas/PhotoSubject'
                  - $ref: '#/components/schemas/IntakeFormSubject'
                  - $ref: '#/components/schemas/IntakeFormItemSubject'
                  - $ref: '#/components/schemas/CustomFieldSubject'
                  - $ref: '#/components/schemas/ClassSettingSubject'
    SessionEnrollmentPayload:
      type: object
      allOf:
        - $ref: '#/components/schemas/PayloadHeader'
        - properties:
            object:
              type: object
              properties:
                session_enrollment:
                  $ref: '#/components/schemas/SessionEnrollment'
            subjects:
              type: array
              items:
                oneOf:
                  - $ref: '#/components/schemas/ClassSessionSubject'
                  - $ref: '#/components/schemas/AttendeeSubject'
                  - $ref: '#/components/schemas/LocationSubject'
    ClassCategoryPayload:
      type: object
      allOf:
        - $ref: '#/components/schemas/PayloadHeader'
        - properties:
            object:
              type: object
              properties:
                class_category:
                  $ref: '#/components/schemas/ClassCategory'
    TicketPayload:
      type: object
      allOf:
        - $ref: '#/components/schemas/PayloadHeader'
        - properties:
            object:
              type: object
              properties:
                ticket:
                  $ref: '#/components/schemas/Ticket'
            subjects:
              type: array
              items:
                oneOf:
                  - $ref: '#/components/schemas/LocationSubject'
                  - $ref: '#/components/schemas/ClientSubject'
                  - $ref: '#/components/schemas/AdjustmentSubject'
                  - $ref: '#/components/schemas/SlotVariationSubject'
                  - $ref: '#/components/schemas/AppointmentSubject'
                  - $ref: '#/components/schemas/EmployeeSubject'
                  - $ref: '#/components/schemas/AdjustmentSubject'
                  - $ref: '#/components/schemas/PromotionSubject'
                  - $ref: '#/components/schemas/NoteSubject'
                  - $ref: '#/components/schemas/AppliedDiscountSubject'
                  - $ref: '#/components/schemas/PromoSubject'
                  - $ref: '#/components/schemas/ClientPromoSubject'
                  - $ref: '#/components/schemas/ClientBenefitSubject'
    ProductPayload:
      type: object
      allOf:
        - $ref: '#/components/schemas/PayloadHeader'
        - properties:
            object:
              type: object
              properties:
                product:
                  $ref: '#/components/schemas/Product'
            subjects:
              type: array
              items:
                oneOf:
                  - $ref: '#/components/schemas/BrandSubject'
                  - $ref: '#/components/schemas/CategorySubject'
                  - $ref: '#/components/schemas/SkuSubject'
                  - $ref: '#/components/schemas/StockSubject'
                  - $ref: '#/components/schemas/SkuLocationConfigurationSubject'
    AdjustmentEventPayload:
      type: object
      allOf:
        - $ref: '#/components/schemas/PayloadHeader'
        - properties:
            object:
              type: object
              properties:
                adjustment_event:
                  $ref: '#/components/schemas/AdjustmentEvent'
            subjects:
              type: array
              items:
                oneOf:
                  - $ref: '#/components/schemas/StockAdjustmentSubject'
                  - $ref: '#/components/schemas/ProductSubject'
                  - $ref: '#/components/schemas/SkuSubject'
                  - $ref: '#/components/schemas/StockSubject'
