# Momence

> Read studio members, memberships, class sessions, and bookings.

App · 18 actions. Web page: https://docs.lodol.com/docs/integrations/momence

## Actions

### Get logged in user

Get logged in user.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Momence.

**Example output**

```json
{
  "data": {
    "email": "example",
    "firstName": "example",
    "lastName": "example",
    "memberId": 1,
    "userId": 1
  }
}
```

### Get member

Get member.

**Inputs**

- Member ID (`member_id`, number, required): Member ID.

**Outputs**

- `data` (object): The response from Momence.

**Example output**

```json
{
  "data": {
    "customerFields": [
      {
        "id": 1,
        "label": "example",
        "type": "text",
        "value": "example"
      }
    ],
    "customerTags": [
      {
        "badgeColor": "example",
        "badgeLabel": "example",
        "corporateTagId": 1,
        "id": 1,
        "isCustomerBadge": true,
        "name": "example"
      }
    ],
    "email": "example",
    "firstName": "example",
    "firstSeen": "example",
    "id": 1,
    "lastName": "example",
    "lastSeen": "example",
    "phoneNumber": "example",
    "pictureUrl": "example",
    "visits": {
      "appointments": 1,
      "appointmentsVisits": 1,
      "bookings": 1,
      "bookingsVisits": 1,
      "openAreaVisits": 1,
      "total": 1,
      "totalVisits": 1
    }
  }
}
```

### Get session

Get session.

**Inputs**

- Session (`session_id`, number, required): Session ID.

**Outputs**

- `data` (object): The response from Momence.

**Example output**

```json
{
  "data": {
    "additionalTeachers": [
      {
        "email": "example",
        "firstName": "example",
        "id": 1,
        "lastName": "example",
        "pictureUrl": "example"
      }
    ],
    "bookingCount": 1,
    "capacity": 1,
    "endsAt": "example",
    "id": 1,
    "inPersonLocation": {
      "id": 1,
      "name": "example"
    },
    "isCancelled": true,
    "isDraft": true,
    "isInPerson": true,
    "isRecurring": true,
    "name": "example",
    "onlineStreamPassword": "example",
    "onlineStreamUrl": "example",
    "originalTeacher": {
      "email": "example",
      "firstName": "example",
      "id": 1,
      "lastName": "example",
      "pictureUrl": "example"
    },
    "semesterId": 1,
    "startsAt": "example",
    "tags": [
      {
        "badgeColor": "example",
        "badgeLabel": "example",
        "id": 1,
        "isCustomerBadge": true,
        "name": "example"
      }
    ],
    "teacher": {
      "email": "example",
      "firstName": "example",
      "id": 1,
      "lastName": "example",
      "pictureUrl": "example"
    },
    "waitlistBookingCount": 1,
    "waitlistCapacity": 1,
    "zoomLink": "example",
    "zoomMeetingId": "example",
    "zoomMeetingPassword": "example"
  }
}
```

### List appointment reservations

List appointment reservations.

**Inputs**

- Page (`page`, number): Starts at 0. At least 0.
- Page size (`page_size`, number): Page size. From 1 to 200.
- Sort order (`sort_order`, text): Sort order. One of: `ASC`, `DESC`.
- Sort by (`sort_by`, text): Field to sort by. One of: `startsAt`.
- Start after (`start_after`, date and time): Start after.
- Start before (`start_before`, date and time): Start before.
- End after (`end_after`, date and time): End after.
- End before (`end_before`, date and time): End before.
- Include cancelled (`include_cancelled`, true/false): Include cancelled.
- Include cancelled attendees (`include_cancelled_attendees`, true/false): Include cancelled attendees.
- Is paid (`is_paid`, true/false): Is paid.

**Outputs**

- `data` (object): The response from Momence.

**Example output**

```json
{
  "data": {
    "pagination": {
      "page": 1,
      "pageSize": 1,
      "sortBy": "example",
      "sortOrder": "ASC",
      "totalCount": 1
    },
    "payload": [
      {
        "additionalTeacher": {},
        "appointmentAttendees": [
          {}
        ],
        "board": {
          "id": 1,
          "name": "example"
        },
        "cancelledAt": "example",
        "capacity": 1,
        "createdAt": "example",
        "currency": "example",
        "depositInCurrency": "example",
        "durationInMinutes": 1,
        "endsAt": "example",
        "id": 1,
        "inPersonLocation": {},
        "isDepositPaid": true,
        "isInPerson": true,
        "isPaid": true,
        "onlineStreamPassword": "example",
        "onlineStreamUrl": "example",
        "priceInCurrency": 1,
        "service": {
          "id": 1,
          "name": "example"
        },
        "serviceVariant": {},
        "startsAt": "example",
        "teacher": {}
      }
    ]
  }
}
```

### List customer lead sources

List customer lead sources.

**Inputs**

- Page (`page`, number): Starts at 0. At least 0.
- Page size (`page_size`, number): Page size. From 1 to 100.
- Sort order (`sort_order`, text): Sort order. One of: `ASC`, `DESC`.
- Sort by (`sort_by`, text): Field to sort by. One of: `name`.
- Query (`query`, text): Search lead sources by name

**Outputs**

- `data` (object): The response from Momence.

**Example output**

```json
{
  "data": {
    "pagination": {
      "page": 1,
      "pageSize": 1,
      "sortBy": "example",
      "sortOrder": "ASC",
      "totalCount": 1
    },
    "payload": [
      {
        "id": 1,
        "name": "example"
      }
    ]
  }
}
```

### List customer lead stages

List customer lead stages.

**Inputs**

- Page (`page`, number): Starts at 0. At least 0.
- Page size (`page_size`, number): Page size. From 1 to 100.
- Sort order (`sort_order`, text): Sort order. One of: `ASC`, `DESC`.
- Sort by (`sort_by`, text): Field to sort by. One of: `name`, `order`.
- Query (`query`, text): Search lead stages by name

**Outputs**

- `data` (object): The response from Momence.

**Example output**

```json
{
  "data": {
    "pagination": {
      "page": 1,
      "pageSize": 1,
      "sortBy": "example",
      "sortOrder": "ASC",
      "totalCount": 1
    },
    "payload": [
      {
        "id": 1,
        "name": "example"
      }
    ]
  }
}
```

### List customer leads

List customer leads.

**Inputs**

- Page (`page`, number): Starts at 0. At least 0.
- Page size (`page_size`, number): Page size. From 1 to 100.
- Sort order (`sort_order`, text): Sort order. One of: `ASC`, `DESC`.
- Sort by (`sort_by`, text): Field to sort by. One of: `createdAt`.
- Query (`query`, text): Search leads by first name, last name, email or phone number
- Source (`source_id`, number): Only leads from this lead source
- Stage (`stage_id`, number): Only leads in this lead stage

**Outputs**

- `data` (object): The response from Momence.

**Example output**

```json
{
  "data": {
    "pagination": {
      "page": 1,
      "pageSize": 1,
      "sortBy": "example",
      "sortOrder": "ASC",
      "totalCount": 1
    },
    "payload": [
      {
        "createdAt": "example",
        "email": "example",
        "firstName": "example",
        "id": 1,
        "lastName": "example",
        "memberId": 1,
        "phoneNumber": "example",
        "sourceId": 1,
        "stageId": 1
      }
    ]
  }
}
```

### List member active memberships

List member active memberships.

**Inputs**

- Member ID (`member_id`, number, required): Member ID.
- Page (`page`, number): Starts at 0. At least 0.
- Page size (`page_size`, number): Page size. From 1 to 200.
- Include frozen (`include_frozen`, true/false): Include frozen.

**Outputs**

- `data` (object): The response from Momence.

**Example output**

```json
{
  "data": {
    "pagination": {
      "page": 1,
      "pageSize": 1,
      "sortBy": "example",
      "sortOrder": "ASC",
      "totalCount": 1
    },
    "payload": [
      {
        "combinedUsage": 1,
        "combinedUsageLimit": 1,
        "declinedRenewal": {},
        "endDate": "example",
        "eventCreditsLeft": 1,
        "eventCreditsTotal": 1,
        "freeze": {},
        "id": 1,
        "isFrozen": true,
        "membership": {},
        "moneyCreditsLeft": 1,
        "moneyCreditsTotal": 1,
        "startDate": "example",
        "type": "subscription",
        "usageLimitEndDate": "example",
        "usageLimitForAppointments": 1,
        "usageLimitForSessions": 1,
        "usageLimitStartDate": "example",
        "usedAppointments": 1,
        "usedSessions": 1
      }
    ]
  }
}
```

### List member appointments

List member appointments.

**Inputs**

- Member ID (`member_id`, number, required): Member ID.
- Page (`page`, number): Starts at 0. At least 0.
- Page size (`page_size`, number): Page size. From 1 to 200.
- Sort order (`sort_order`, text): Sort order. One of: `ASC`, `DESC`.
- Sort by (`sort_by`, text): Field to sort by. One of: `startsAt`.
- Start after (`start_after`, date and time): Start after.
- Start before (`start_before`, date and time): Start before.
- End after (`end_after`, date and time): End after.
- End before (`end_before`, date and time): End before.
- Include cancelled (`include_cancelled`, true/false): Include cancelled.

**Outputs**

- `data` (object): The response from Momence.

**Example output**

```json
{
  "data": {
    "pagination": {
      "page": 1,
      "pageSize": 1,
      "sortBy": "example",
      "sortOrder": "ASC",
      "totalCount": 1
    },
    "payload": [
      {
        "additionalTeacher": {},
        "board": {
          "id": 1,
          "name": "example"
        },
        "cancelledAt": "example",
        "capacity": 1,
        "createdAt": "example",
        "currency": "example",
        "depositInCurrency": "example",
        "durationInMinutes": 1,
        "endsAt": "example",
        "id": 1,
        "inPersonLocation": {},
        "isDepositPaid": true,
        "isInPerson": true,
        "isPaid": true,
        "member": {
          "attendanceStatus": "checkedIn",
          "bookedAt": "example",
          "cancelledAt": "example",
          "checkedInAt": "example",
          "firstName": "example",
          "id": 1,
          "isDepositPaid": true,
          "isLateCancelled": true,
          "isPaid": true,
          "lastName": "example"
        },
        "onlineStreamPassword": "example",
        "onlineStreamUrl": "example",
        "priceInCurrency": 1,
        "service": {
          "id": 1,
          "name": "example"
        },
        "serviceVariant": {},
        "startsAt": "example",
        "teacher": {}
      }
    ]
  }
}
```

### List member bookings

List member bookings.

**Inputs**

- Member ID (`member_id`, number, required): Member ID.
- Page (`page`, number): Starts at 0. At least 0.
- Page size (`page_size`, number): Page size. From 1 to 100.
- Sort order (`sort_order`, text): Sort order. One of: `ASC`, `DESC`.
- Sort by (`sort_by`, text): Field to sort by. One of: `startsAt`.
- Start after (`start_after`, date and time): Start after.
- Start before (`start_before`, date and time): Start before.
- End after (`end_after`, date and time): End after.
- End before (`end_before`, date and time): End before.
- Include cancelled (`include_cancelled`, true/false): Include cancelled.

**Outputs**

- `data` (object): The response from Momence.

**Example output**

```json
{
  "data": {
    "pagination": {
      "page": 1,
      "pageSize": 1,
      "sortBy": "example",
      "sortOrder": "ASC",
      "totalCount": 1
    },
    "payload": [
      {
        "cancelledAt": "example",
        "checkedIn": true,
        "createdAt": "example",
        "id": 1,
        "roomSpotId": 1,
        "session": {
          "bannerImageUrl": "example",
          "capacity": 1,
          "description": "example",
          "durationInMinutes": 1,
          "endsAt": "example",
          "hostPhotoUrl": "example",
          "id": 1,
          "inPersonLocation": {},
          "isInPerson": true,
          "isLocationPrivate": true,
          "isRecurring": true,
          "name": "example",
          "onlineStreamPassword": "example",
          "onlineStreamUrl": "example",
          "startsAt": "example",
          "teacher": {},
          "type": "private"
        }
      }
    ]
  }
}
```

### List member notes

List member notes.

**Inputs**

- Page (`page`, number): Starts at 0. At least 0.
- Page size (`page_size`, number): Page size. From 1 to 100.
- Sort order (`sort_order`, text): Sort order. One of: `ASC`, `DESC`.
- Sort by (`sort_by`, text): Field to sort by. One of: `createdAt`, `modifiedAt`.
- Member ID (`member_id`, number, required): Member ID.

**Outputs**

- `data` (object): The response from Momence.

**Example output**

```json
{
  "data": {
    "pagination": {
      "page": 1,
      "pageSize": 1,
      "sortBy": "example",
      "sortOrder": "ASC",
      "totalCount": 1
    },
    "payload": [
      {
        "appointmentReservationId": 1,
        "boughtMembershipId": 1,
        "createdAt": "example",
        "customerNoteTemplateId": 1,
        "id": 1,
        "imageLink": "example",
        "lockedAt": "example",
        "lockedByUserId": 1,
        "modifiedAt": "example",
        "note": "example",
        "paymentTransactionId": 1,
        "productOrderId": 1,
        "sessionBookingId": 1,
        "type": "regular"
      }
    ]
  }
}
```

### List members

List members.

**Inputs**

- Page (`page`, number): Starts at 0. At least 0.
- Page size (`page_size`, number): Page size. From 1 to 100.
- Sort order (`sort_order`, text): Sort order. One of: `ASC`, `DESC`.
- Sort by (`sort_by`, text): Field to sort by. One of: `lastSeenAt`, `firstSeenAt`, `firstName`, `lastName`, `email`.
- Query (`query`, text): Search customers by query
- Filter preset (`filter_preset`, text): Filter preset. One of: `with-active-membership`.
- Static segment ID (`static_segment_id`, number): Filter customers by static segment ID

**Outputs**

- `data` (object): The response from Momence.

**Example output**

```json
{
  "data": {
    "pagination": {
      "page": 1,
      "pageSize": 1,
      "sortBy": "example",
      "sortOrder": "ASC",
      "totalCount": 1
    },
    "payload": [
      {
        "customerFields": [
          {}
        ],
        "customerTags": [
          {}
        ],
        "email": "example",
        "firstName": "example",
        "firstSeen": "example",
        "id": 1,
        "lastName": "example",
        "lastSeen": "example",
        "phoneNumber": "example",
        "pictureUrl": "example",
        "visits": {
          "appointments": 1,
          "appointmentsVisits": 1,
          "bookings": 1,
          "bookingsVisits": 1,
          "openAreaVisits": 1,
          "total": 1,
          "totalVisits": 1
        }
      }
    ]
  }
}
```

### List memberships

List memberships.

**Inputs**

- Page (`page`, number): Starts at 0. At least 0.
- Page size (`page_size`, number): Page size. From 1 to 200.
- Sort order (`sort_order`, text): Sort order. One of: `ASC`, `DESC`.
- Sort by (`sort_by`, text): Field to sort by. One of: `name`, `orderNumber`.
- Include disabled (`include_disabled`, true/false): Include disabled.
- Only featured (`only_featured`, true/false): Only featured.
- Compatible with session ID (`compatible_with_session_id`, number): Compatible with session ID.
- Compatible with appointment ID (`compatible_with_appointment_id`, number): Compatible with appointment ID.

**Outputs**

- `data` (object): The response from Momence.

**Example output**

```json
{
  "data": {
    "pagination": {
      "page": 1,
      "pageSize": 1,
      "sortBy": "example",
      "sortOrder": "ASC",
      "totalCount": 1
    },
    "payload": [
      {
        "activationDeadlineInDays": 1,
        "autoRenewing": true,
        "combinedUsageLimit": 1,
        "combinedUsageLimitEnabled": true,
        "contractAgreement": "example",
        "description": "example",
        "disabled": true,
        "duration": 1,
        "durationUnit": "days",
        "endDate": "example",
        "eventCredits": 1,
        "featured": true,
        "freeTrialDurationInDays": 1,
        "freeTrialPrice": 1,
        "hasFreeTrial": true,
        "id": 1,
        "isActivatedOnFirstUse": true,
        "isIntroOffer": true,
        "locationId": 1,
        "maximumPrice": 1,
        "minimumAutoRenews": 1,
        "minimumPrice": 1,
        "moneyCredits": 1,
        "name": "example",
        "order": 1,
        "price": 1,
        "priceIncludesTax": true,
        "priceType": "fixed-price",
        "recommendedPrice": 1,
        "startDate": "example",
        "tags": [
          {}
        ],
        "taxRateInPercent": 1,
        "type": "subscription",
        "usageLimitForAppointments": 1,
        "usageLimitForSessions": 1,
        "usageLimitRenewalDuration": 1,
        "usageLimitRenewalDurationUnit": "days",
        "usageLimitRenewalEnabled": true,
        "usageLimitRolloverEnabled": true,
        "usageLimitRolloverExpirationDuration": 1,
        "usageLimitRolloverExpirationDurationUnit": "days",
        "usageLimitRolloverMode": "next-renewal"
      }
    ]
  }
}
```

### List sales

List sales.

**Inputs**

- Page (`page`, number): Starts at 0. At least 0.
- Page size (`page_size`, number): Page size. At least 1.
- Sort order (`sort_order`, text): Sort order. One of: `ASC`, `DESC`.
- Sort by (`sort_by`, text): Field to sort by

**Outputs**

- `data` (object): The response from Momence.

**Example output**

```json
{
  "data": {
    "pagination": {
      "page": 1,
      "pageSize": 1,
      "sortBy": "example",
      "sortOrder": "ASC",
      "totalCount": 1
    },
    "payload": [
      {
        "id": 1,
        "items": [
          {}
        ],
        "paymentTransaction": {
          "items": [
            {}
          ]
        },
        "saleDate": "example"
      }
    ]
  }
}
```

### List semesters

List semesters.

**Inputs**

- Page (`page`, number): Starts at 0. At least 0.
- Page size (`page_size`, number): Page size. From 1 to 200.
- Sort order (`sort_order`, text): Sort order. One of: `ASC`, `DESC`.
- Sort by (`sort_by`, text): Field to sort by. One of: `startsAt`, `endsAt`, `name`.
- Active from (`active_from`, date and time): only return semesters that are still running on or after this date
- Active to (`active_to`, date and time): only return semesters that have started on or before this date
- Include cancelled (`include_cancelled`, true/false): also include cancelled semesters
- Include drafts (`include_drafts`, true/false): also include unpublished (draft) semesters

**Outputs**

- `data` (object): The response from Momence.

**Example output**

```json
{
  "data": {
    "pagination": {
      "page": 1,
      "pageSize": 1,
      "sortBy": "example",
      "sortOrder": "ASC",
      "totalCount": 1
    },
    "payload": [
      {
        "endsAt": "example",
        "id": 1,
        "isCancelled": true,
        "isDraft": true,
        "name": "example",
        "startsAt": "example"
      }
    ]
  }
}
```

### List session bookings

List session bookings.

**Inputs**

- Page (`page`, number): Starts at 0. At least 0.
- Page size (`page_size`, number): Page size. From 1 to 100.
- Sort order (`sort_order`, text): Sort order. One of: `ASC`, `DESC`.
- Sort by (`sort_by`, text): Field to sort by. One of: `createdAt`, `firstName`, `lastName`.
- Include cancelled (`include_cancelled`, true/false): also include cancelled bookings
- Session (`session_id`, number, required): Session ID.

**Outputs**

- `data` (object): The response from Momence.

**Example output**

```json
{
  "data": {
    "pagination": {
      "page": 1,
      "pageSize": 1,
      "sortBy": "example",
      "sortOrder": "ASC",
      "totalCount": 1
    },
    "payload": [
      {
        "cancelledAt": "example",
        "checkedIn": true,
        "createdAt": "example",
        "id": 1,
        "isRecurring": true,
        "member": {
          "email": "example",
          "firstName": "example",
          "id": 1,
          "lastName": "example",
          "phoneNumber": "example",
          "pictureUrl": "example"
        },
        "recurringBookingId": 1,
        "roomSpotId": 1,
        "ticketsBought": 1
      }
    ]
  }
}
```

### List sessions

List sessions.

**Inputs**

- Page (`page`, number): Starts at 0. At least 0.
- Page size (`page_size`, number): Page size. From 1 to 200.
- Sort order (`sort_order`, text): Sort order. One of: `ASC`, `DESC`.
- Sort by (`sort_by`, text): Field to sort by. One of: `name`, `startsAt`, `endsAt`.
- Include cancelled (`include_cancelled`, true/false): also include cancelled sessions
- Types (`types`, list): only return specified session types. One or more of: `private`, `special-event`, `special-event-new`, `retreat`, `fitness`, `course`, `course-class`, `semester`, `recital`.
- Teacher ID (`teacher_id`, number): Teacher ID.
- Location ID (`location_id`, number): Location ID.
- Include child locations (`include_child_locations`, true/false): when filtering by location, include the locations child locations
- Start after (`start_after`, date and time): Start after.
- Start before (`start_before`, date and time): Start before.
- End after (`end_after`, date and time): End after.
- End before (`end_before`, date and time): End before.

**Outputs**

- `data` (object): The response from Momence.

**Example output**

```json
{
  "data": {
    "pagination": {
      "page": 1,
      "pageSize": 1,
      "sortBy": "example",
      "sortOrder": "ASC",
      "totalCount": 1
    },
    "payload": [
      {
        "bannerImageUrl": "example",
        "bookingCount": 1,
        "capacity": 1,
        "description": "example",
        "durationInMinutes": 1,
        "endsAt": "example",
        "hostPhotoUrl": "example",
        "id": 1,
        "inPersonLocation": {},
        "isCancelled": true,
        "isDraft": true,
        "isInPerson": true,
        "isRecurring": true,
        "name": "example",
        "onlineStreamPassword": "example",
        "onlineStreamUrl": "example",
        "semesterId": 1,
        "startsAt": "example",
        "tags": [
          {}
        ],
        "teacher": {},
        "type": "private"
      }
    ]
  }
}
```

### List tags

List tags.

**Inputs**

- Page (`page`, number): Starts at 0. At least 0.
- Page size (`page_size`, number): Page size. From 1 to 100.
- Sort order (`sort_order`, text): Sort order. One of: `ASC`, `DESC`.
- Sort by (`sort_by`, text): Field to sort by. One of: `name`.

**Outputs**

- `data` (object): The response from Momence.

**Example output**

```json
{
  "data": {
    "pagination": {
      "page": 1,
      "pageSize": 1,
      "sortBy": "example",
      "sortOrder": "ASC",
      "totalCount": 1
    },
    "payload": [
      {
        "badgeColor": "example",
        "badgeLabel": "example",
        "corporateTagId": 1,
        "id": 1,
        "isCustomerBadge": true,
        "name": "example"
      }
    ]
  }
}
```
