# Waitwhile

> Manage Waitwhile visits and customers, find booking slots, and look up locations, services, and resources.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/waitwhile

## Actions

### Create a customer

Create a customer.

**Inputs**

- Name (`name`, text): Name to use.
- First name (`first_name`, text): First name to use.
- Last name (`last_name`, text): Last name to use.
- Phone (`phone`, text): Phone to use.
- Email (`email`, text): Email to use.
- Notes (`notes`, text): Notes to use.
- Tags (`tags`, list): Tags to use. One or more of: `NO-SHOW`, `CANCELLED`, `REMOVED`, `ALERTED`, `ARRIVED`, `DELAYED`, `CONFIRMED`, `EXPIRED`, `FLAGGED`, `IMPORTED`, and 4 more.
- Location IDs (`location_ids`, list): Location IDs to use.
- External ID (`external_id`, text): External ID to use.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "created": "example",
    "createdBy": "example",
    "email": "example",
    "externalId": "example",
    "firstName": "example",
    "id": "example",
    "isAnonymized": false,
    "lastName": "example",
    "lastVisits": {},
    "locationIds": [],
    "metadata": {},
    "name": "example",
    "notes": "example",
    "phone": "example",
    "states": {},
    "tags": [],
    "updated": "example",
    "updatedBy": "example"
  }
}
```

### Delete a customer

Delete a customer.

**Inputs**

- Customer ID (`customer_id`, text, required): Identifier of customer, automatically derived from visitor contact information if not provided.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "error": "example",
    "errorCode": "access_blocked",
    "message": "example",
    "statusCode": 1
  }
}
```

### Get a customer

Get a customer.

**Inputs**

- Customer ID (`customer_id`, text, required): Identifier of customer, automatically derived from visitor contact information if not provided.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "created": "example",
    "createdBy": "example",
    "email": "example",
    "externalId": "example",
    "firstName": "example",
    "id": "example",
    "isAnonymized": false,
    "lastName": "example",
    "lastVisits": {},
    "locationIds": [],
    "metadata": {},
    "name": "example",
    "notes": "example",
    "phone": "example",
    "states": {},
    "tags": [],
    "updated": "example",
    "updatedBy": "example"
  }
}
```

### Get a location

Get a location.

**Inputs**

- Short name or (`short_name_or_id`, text, required): Short name or identifier

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "addGoals": [],
    "addLabels": [],
    "address": {
      "city": "example",
      "country": {
        "code": "example",
        "name": "example"
      },
      "state": {
        "code": "example",
        "name": "example"
      },
      "street": "example",
      "street2": "example",
      "zip": "example"
    },
    "allowEstWaitToExceedHours": false,
    "assignedPlugins": [],
    "bookingAllowOverbooking": false,
    "bookingHours": {
      "fri": {
        "isOpen": false,
        "periods": []
      },
      "mon": {
        "isOpen": false,
        "periods": []
      },
      "sat": {
        "isOpen": false,
        "periods": []
      },
      "sun": {
        "isOpen": false,
        "periods": []
      },
      "thu": {
        "isOpen": false,
        "periods": []
      },
      "tue": {
        "isOpen": false,
        "periods": []
      },
      "wed": {
        "isOpen": false,
        "periods": []
      }
    },
    "bookingHoursByDate": {},
    "bookingRejectUnknownCustomers": false,
    "bookingSlotColor": "DEFAULT",
    "bookingWaitlistOrder": "FIRST",
    "businessName": "example",
    "businessType": "ANIMAL",
    "coordinates": {
      "geohash": "example",
      "lat": 1.0,
      "lng": 1.0
    },
    "created": "example",
    "createdBy": "example",
    "currency": "example",
    "customStyleUrl": "example",
    "customerSearchMethod": "TYPEAHEAD",
    "customerSessionOverlapMode": "ALLOW",
    "defaultNumServers": 1,
    "defaultServeDuration": 1,
    "defaultVisitOrderValue": 1.0,
    "displayName": "example",
    "email": "example",
    "emailReplyToAddress": "example",
    "enableResourceAutoAway": false,
    "enableResourceAwayAtLogout": false,
    "expiryRules": {
      "BOOKED": {
        "duration": 1,
        "state": "COMPLETE",
        "suppressMessages": false,
        "tags": []
      },
      "SERVING": {
        "duration": 1,
        "state": "WAITING",
        "suppressMessages": false,
        "tags": []
      },
      "WAITING": {
        "duration": 1,
        "state": "SERVING",
        "suppressMessages": false,
        "tags": []
      }
    },
    "externalCustomerIdValidation": "example",
    "externalId": "example",
    "goals": [],
    "hours": {
      "fri": {
        "isOpen": false,
        "periods": []
      },
      "mon": {
        "isOpen": false,
        "periods": []
      },
      "sat": {
        "isOpen": false,
        "periods": []
      },
      "sun": {
        "isOpen": false,
        "periods": []
      },
      "thu": {
        "isOpen": false,
        "periods": []
      },
      "tue": {
        "isOpen": false,
        "periods": []
      },
      "wed": {
        "isOpen": false,
        "periods": []
      }
    },
    "hoursByDate": {},
    "i18n": {},
    "id": "example",
    "isActive": false,
    "isForceClosed": false,
    "isForceOpen": false,
    "isGoogleWaitlist": false,
    "isMaxCapacityActive": false,
    "isPublicBooking": false,
    "isPublicCheckIn": false,
    "isPublicIndexed": false,
    "isPublicSearch": false,
    "isPublicWaitlist": false,
    "labels": [],
    "logoUrl": "example",
    "maxPartySize": 1,
    "maxPartySizeBookings": 1,
    "maxServing": 1,
    "maxServingActive": false,
    "maxServingIncludeUpcoming": false,
    "maxWaiting": 1,
    "maxWaitingActive": false,
    "metadata": {},
    "name": "example",
    "openWaitlistOnlyAtMaxCapacity": false,
    "phone": "example",
    "publicLocales": [],
    "publicLogoUrl": "example",
    "publicRegistrationHeaderContent": "LOCATION_LOGO",
    "publicStyleUrl": "example",
    "publicTheme": {
      "bgColor": "example",
      "bgImageUrl": "example",
      "btnBgColor": "example",
      "btnBorderRadius": "example",
      "btnTextColor": "example",
      "contentBgColor": "example",
      "headingFont": "example",
      "layout": "CENTERED",
      "secondaryBtnBgColor": "example",
      "secondaryBtnTextColor": "example",
      "textColor": "example",
      "textFont": "example"
    },
    "quickVisitRules": {
      "enabled": false,
      "requireCustomerId": false,
      "requireEmail": false,
      "requireName": false,
      "requireNotes": false,
      "requirePartySize": false,
      "requirePhone": false,
      "requireQuote": false,
      "requireService": false,
      "requiredDataFieldIds": [],
      "requiredResourceCategoryIds": [],
      "requiredServiceCategoryIds": []
    },
    "recaptchaIpAllowlist": [],
    "recaptchaMinScore": 1.0,
    "removeGoals": [],
    "removeLabels": [],
    "replyTriggers": [],
    "resourceCategoryDisplay": "LIST",
    "resourceCategoryOpenState": "OPEN_FIRST",
    "resourceItemLayout": "LIST",
    "savedReplies": [],
    "serviceCategoryDisplay": "LIST",
    "serviceCategoryOpenState": "OPEN_FIRST",
    "serviceItemLayout": "LIST",
    "shortName": "example",
    "showEmailQrCode": false,
    "signUpTriggers": [],
    "smsSignupAction": "ADD_TO_WAITLIST",
    "theme": "white",
    "ticketPrefix": "example",
    "ticketPrefixMode": "STATIC",
    "timezone": "example",
    "updated": "example",
    "updatedBy": "example",
    "visitLockDisabled": false,
    "visitQrCodeAction": "SHOW-PUBLIC",
    "visitRules": [],
    "visitSteps": {
      "BOOKED": {
        "color": "example",
        "i18n": {},
        "name": "example",
        "nextStepId": "PENDING",
        "order": 1,
        "state": "BOOKED"
      },
      "COMPLETE": {
        "color": "example",
        "i18n": {},
        "name": "example",
        "nextStepId": "PENDING",
        "order": 1,
        "state": "COMPLETE"
      },
      "DRAFT": {
        "color": "example",
        "i18n": {},
        "name": "example",
        "nextStepId": "PENDING",
        "order": 1,
        "state": "DRAFT"
      },
      "PENDING": {
        "color": "example",
        "i18n": {},
        "name": "example",
        "nextStepId": "PENDING",
        "order": 1,
        "state": "PENDING"
      },
      "SERVING": {
        "color": "example",
        "i18n": {},
        "name": "example",
        "nextStepId": "PENDING",
        "order": 1,
        "state": "SERVING"
      },
      "WAITING": {
        "color": "example",
        "i18n": {},
        "name": "example",
        "nextStepId": "PENDING",
        "order": 1,
        "state": "WAITING"
      }
    },
    "visitTagRules": [],
    "waitlistHours": {
      "fri": {
        "isOpen": false,
        "periods": []
      },
      "mon": {
        "isOpen": false,
        "periods": []
      },
      "sat": {
        "isOpen": false,
        "periods": []
      },
      "sun": {
        "isOpen": false,
        "periods": []
      },
      "thu": {
        "isOpen": false,
        "periods": []
      },
      "tue": {
        "isOpen": false,
        "periods": []
      },
      "wed": {
        "isOpen": false,
        "periods": []
      }
    },
    "waitlistHoursByDate": {},
    "waitlistRejectUnknownCustomers": false,
    "website": "example"
  }
}
```

### Get a location status

Get a location status.

**Inputs**

- Location (`location_id`, text, required): Identifier of location

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "accountBusinessName": "example",
    "accountDisplayName": "example",
    "accountId": "example",
    "accountShortName": "example",
    "activeResources": [],
    "activeServices": [],
    "address": {
      "city": "example",
      "country": {
        "code": "example",
        "name": "example"
      },
      "state": {
        "code": "example",
        "name": "example"
      },
      "street": "example",
      "street2": "example",
      "zip": "example"
    },
    "allowIncomingMessages": false,
    "allowSMSSignup": false,
    "availabilityStateByResource": {
      "array": "ACTIVE"
    },
    "availableBookingResourceIds": [],
    "availableBookingServiceIds": [],
    "availableWaitlistResourceIds": [],
    "availableWaitlistServiceIds": [],
    "businessName": "example",
    "businessType": "ANIMAL",
    "currency": "example",
    "displayName": "example",
    "email": "example",
    "hasCapacitySinceByResource": {
      "array": "example"
    },
    "id": "example",
    "isActive": false,
    "isBookingActive": false,
    "isBookingOpen": false,
    "isForceClosed": false,
    "isForceOpen": false,
    "isFreeAccount": false,
    "isOpen": false,
    "isPublicBooking": false,
    "isPublicCheckIn": false,
    "isPublicSearch": false,
    "isPublicWaitlist": false,
    "isServingFull": false,
    "isWaitlistActive": false,
    "isWaitlistFull": false,
    "isWaitlistOpen": false,
    "labels": [],
    "lastActive": "example",
    "lastBookingUpdate": "example",
    "logoUrl": "example",
    "maxPartySize": 1,
    "maxPartySizeBookings": 1,
    "naEstWaitReason": "LOCATION_IS_CLOSED_FOR_DAY",
    "name": "example",
    "nextTicket": 1,
    "numBooked": 1,
    "numBookedGuests": 1,
    "numDraftBooked": 1,
    "numDraftBookedGuests": 1,
    "numDraftWaiting": 1,
    "numDraftWaitingGuests": 1,
    "numPendingWaiting": 1,
    "numPendingWaitingGuests": 1,
    "numServers": 1,
    "numServing": 1,
    "numServingByPartySize": {},
    "numServingByResource": {},
    "numServingByService": {},
    "numServingGuests": 1,
    "numServingGuestsByResource": {},
    "numWaiting": 1,
    "numWaitingByPartySize": {},
    "numWaitingByResource": {},
    "numWaitingByService": {},
    "numWaitingGuests": 1,
    "numWaitingGuestsByResource": {},
    "openDuration": 1,
    "phone": "example",
    "publicLocales": [],
    "publicLogoUrl": "example",
    "publicPagesExperiments": [],
    "resources": [],
    "services": [],
    "shortName": "example",
    "showCheckInWelcome": false,
    "smsProviderNumbers": [],
    "timezone": "example",
    "updated": "example",
    "wait": 1,
    "waitByPartySize": {},
    "waitByResource": {},
    "waitByService": {},
    "waitEstimationMethodInfo": {
      "estimateServiceDuration": false,
      "method": "example",
      "partySizeServiceDurationFactor": 1.0,
      "version": "example"
    }
  }
}
```

### Get a message

Get a message.

**Inputs**

- Message ID (`message_id`, text, required): Unique identifier

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "body": "example",
    "channel": "EMAIL",
    "created": "example",
    "createdBy": "example",
    "customerId": "example",
    "errorCode": "example",
    "errorMessage": "example",
    "externalId": "example",
    "id": "example",
    "isAnonymized": false,
    "isIncoming": false,
    "isRead": false,
    "locationId": "example",
    "providerId": "TWILIO",
    "recipient": "example",
    "recipientName": "example",
    "sender": "example",
    "senderName": "example",
    "state": "PENDING",
    "subject": "example",
    "substitutions": {},
    "templateId": "example",
    "type": "example",
    "updated": "example",
    "updatedBy": "example",
    "visitId": "example"
  }
}
```

### Get a resource

Get a resource.

**Inputs**

- Resource (`resource_id`, text, required): Identifier of resource

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "access": "PUBLIC",
    "addLocationIds": [],
    "addSupportedServiceIds": [],
    "alias": "example",
    "allowSharing": false,
    "bookingHours": {
      "fri": {
        "isOpen": false,
        "periods": []
      },
      "mon": {
        "isOpen": false,
        "periods": []
      },
      "sat": {
        "isOpen": false,
        "periods": []
      },
      "sun": {
        "isOpen": false,
        "periods": []
      },
      "thu": {
        "isOpen": false,
        "periods": []
      },
      "tue": {
        "isOpen": false,
        "periods": []
      },
      "wed": {
        "isOpen": false,
        "periods": []
      }
    },
    "bookingHoursByDate": {},
    "bookingSpotsPerDay": 1,
    "color": "example",
    "created": "example",
    "createdBy": "example",
    "description": "example",
    "displayName": "example",
    "email": "example",
    "enableAutoAway": false,
    "externalId": "example",
    "firstAvailableDisplay": "hidden",
    "hours": {
      "fri": {
        "isOpen": false,
        "periods": []
      },
      "mon": {
        "isOpen": false,
        "periods": []
      },
      "sat": {
        "isOpen": false,
        "periods": []
      },
      "sun": {
        "isOpen": false,
        "periods": []
      },
      "thu": {
        "isOpen": false,
        "periods": []
      },
      "tue": {
        "isOpen": false,
        "periods": []
      },
      "wed": {
        "isOpen": false,
        "periods": []
      }
    },
    "hoursByDate": {},
    "i18n": {},
    "id": "example",
    "includeInRestrictedMode": false,
    "includeInWaitEstimation": false,
    "isActive": false,
    "isActiveBooking": false,
    "isActiveWaitlist": false,
    "isAway": false,
    "isAwayFrom": "example",
    "isAwayReason": "example",
    "isAwayTo": "example",
    "isCategory": false,
    "isMale": false,
    "isPublic": false,
    "isRequired": false,
    "labels": [],
    "location": "example",
    "locationIds": [],
    "maxSelection": 1,
    "maxSelectionStaff": 1,
    "maxServed": 1,
    "metadata": {},
    "minSelection": 1,
    "minServed": 1,
    "name": "example",
    "order": 1,
    "parentId": "example",
    "phone": "example",
    "photoUrl": "example",
    "removeLocationIds": [],
    "removeSupportedServiceIds": [],
    "requireUserActiveOnLocation": false,
    "serviceDurationModifier": 1.0,
    "staffPreSelectionModes": {},
    "staffSelectionComponent": "BUTTON",
    "supportedServiceIds": [],
    "type": "RESOURCE",
    "updated": "example",
    "updatedBy": "example",
    "url": "example",
    "userId": "example",
    "waitlistHours": {
      "fri": {
        "isOpen": false,
        "periods": []
      },
      "mon": {
        "isOpen": false,
        "periods": []
      },
      "sat": {
        "isOpen": false,
        "periods": []
      },
      "sun": {
        "isOpen": false,
        "periods": []
      },
      "thu": {
        "isOpen": false,
        "periods": []
      },
      "tue": {
        "isOpen": false,
        "periods": []
      },
      "wed": {
        "isOpen": false,
        "periods": []
      }
    },
    "waitlistHoursByDate": {}
  }
}
```

### Get a service

Get a service.

**Inputs**

- Service (`service_id`, text, required): Identifier of service

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "access": "PUBLIC",
    "addLocationIds": [],
    "alias": "example",
    "allowSharing": false,
    "bookingHours": {
      "fri": {
        "isOpen": false,
        "periods": []
      },
      "mon": {
        "isOpen": false,
        "periods": []
      },
      "sat": {
        "isOpen": false,
        "periods": []
      },
      "sun": {
        "isOpen": false,
        "periods": []
      },
      "thu": {
        "isOpen": false,
        "periods": []
      },
      "tue": {
        "isOpen": false,
        "periods": []
      },
      "wed": {
        "isOpen": false,
        "periods": []
      }
    },
    "bookingHoursByDate": {},
    "bookingSpotsPerDay": 1,
    "bookingSyncDisabled": false,
    "bufferDuration": 1,
    "color": "example",
    "created": "example",
    "createdBy": "example",
    "currency": "example",
    "description": "example",
    "displayName": "example",
    "duration": 1,
    "externalId": "example",
    "hours": {
      "fri": {
        "isOpen": false,
        "periods": []
      },
      "mon": {
        "isOpen": false,
        "periods": []
      },
      "sat": {
        "isOpen": false,
        "periods": []
      },
      "sun": {
        "isOpen": false,
        "periods": []
      },
      "thu": {
        "isOpen": false,
        "periods": []
      },
      "tue": {
        "isOpen": false,
        "periods": []
      },
      "wed": {
        "isOpen": false,
        "periods": []
      }
    },
    "hoursByDate": {},
    "i18n": {},
    "id": "example",
    "isActive": false,
    "isActiveBooking": false,
    "isActiveWaitlist": false,
    "isCategory": false,
    "isPublic": false,
    "labels": [],
    "locationIds": [],
    "maxBookingLeadDuration": 1,
    "maxSelection": 1,
    "metadata": {},
    "minBookingLeadDuration": 1,
    "minSelection": 1,
    "name": "example",
    "order": 1,
    "orderValue": 1.0,
    "parentId": "example",
    "photoUrl": "example",
    "price": 1.0,
    "publicSlotDuration": 1,
    "removeLocationIds": [],
    "schedulingMode": "HOURS",
    "sessions": [],
    "slotDuration": 1,
    "staffSelectionComponent": "BUTTON",
    "type": "RESOURCE",
    "updated": "example",
    "updatedBy": "example",
    "waitlistHours": {
      "fri": {
        "isOpen": false,
        "periods": []
      },
      "mon": {
        "isOpen": false,
        "periods": []
      },
      "sat": {
        "isOpen": false,
        "periods": []
      },
      "sun": {
        "isOpen": false,
        "periods": []
      },
      "thu": {
        "isOpen": false,
        "periods": []
      },
      "tue": {
        "isOpen": false,
        "periods": []
      },
      "wed": {
        "isOpen": false,
        "periods": []
      }
    },
    "waitlistHoursByDate": {}
  }
}
```

### Get a visit

Get a visit.

**Inputs**

- Visit ID (`visit_id`, text, required): Identifier of visit

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "alertedTime": "example",
    "arrivedTime": "example",
    "bookingTime": "example",
    "cancelTime": "example",
    "completedTime": "example",
    "confirmedTime": "example",
    "created": "example",
    "createdBy": "example",
    "customerId": "example",
    "dataFields": [],
    "date": "example",
    "delayedTime": "example",
    "draftTime": "example",
    "duration": 1,
    "email": "example",
    "estWaitDuration": 1,
    "expiredTime": "example",
    "externalCustomerId": "example",
    "externalId": "example",
    "firstName": "example",
    "flaggedTime": "example",
    "id": "example",
    "importedTime": "example",
    "isAnonymized": false,
    "isBlock": false,
    "lastAlertedTime": "example",
    "lastName": "example",
    "liveActivityToken": {
      "apnsToken": "example",
      "fcmToken": "example"
    },
    "locale": "ca-AD",
    "locationId": "example",
    "messagingTokens": [],
    "metadata": {},
    "name": "example",
    "nextInLineTime": "example",
    "nextInLineTriggerTime": "example",
    "noShowTime": "example",
    "notes": "example",
    "orderValue": {
      "currency": "example",
      "value": 1.0
    },
    "originalEstWaitDuration": 1,
    "originalPosition": 1,
    "partySize": 1,
    "pendingExpireTime": "example",
    "pendingTime": "example",
    "phone": "example",
    "position": 1,
    "prioritizedTime": "example",
    "publicId": "example",
    "quotedWaitDuration": 1,
    "rejectedTime": "example",
    "removedTime": "example",
    "resourceIds": [],
    "serveDuration": 1,
    "serveTime": "example",
    "serviceIds": [],
    "sessionSeriesId": "example",
    "source": "WEB-APP",
    "state": "PENDING",
    "stepId": "PENDING",
    "surveyTime": "example",
    "tags": [],
    "ticket": "example",
    "triggeredSurveys": [],
    "type": "WAITLIST",
    "updated": "example",
    "updatedBy": "example",
    "waitDuration": 1,
    "waitlistTime": "example"
  }
}
```

### Get visit analytics by date

Get visit analytics by date.

**Inputs**

- Location (`location_id`, text): Identifier of location
- From date (`from_date`, date and time): Date and time in ISO-8601 format or milliseconds from epoch
- To date (`to_date`, date and time): Date and time in ISO-8601 format or milliseconds from epoch

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "dates": [],
    "fromDate": "example",
    "locationIds": [],
    "timezone": "example",
    "toDate": "example"
  }
}
```

### List booking slots

List booking slots.

**Inputs**

- Location (`location_id`, text, required): Identifier of location
- From date (`from_date`, date): Local date and time in YYYY-MM-DDThh:mm format
- To date (`to_date`, date): Local date and time in YYYY-MM-DDThh:mm format
- Resource IDs (`resource_ids`, list): Resource identifiers
- Service IDs (`service_ids`, list): Service identifiers

**Outputs**

- `data` (list): Response.

**Example output**

```json
{
  "data": []
}
```

### List customers

List customers.

**Inputs**

- Limit (`limit`, number): Max number of results. From 1 to 100.
- Start after (`start_after`, text): Identifier(s) or value(s) to paginate results (comma-separated)
- Location (`location_id`, text): Identifier of location
- External ID (`external_id`, text): External identifier, optionally provided by client
- From date (`from_date`, date and time): Date and time in ISO-8601 format or milliseconds from epoch
- To date (`to_date`, date and time): Date and time in ISO-8601 format or milliseconds from epoch

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "endAt": "example",
    "limit": 1,
    "results": [],
    "startAt": "example"
  }
}
```

### List first available slots

List first available slots.

**Inputs**

- Location (`location_id`, text, required): Identifier of location
- From date (`from_date`, date): Local date and time in YYYY-MM-DDThh:mm format
- To date (`to_date`, date): Local date and time in YYYY-MM-DDThh:mm format
- Max num slots (`max_num_slots`, number): Max number of booking slots to return. From 1 to 150.
- Party size (`party_size`, number): Party size. From 1 to 100.
- Resource IDs (`resource_ids`, list): Resource identifiers
- Service IDs (`service_ids`, list): Service identifiers

**Outputs**

- `data` (list): Response.

**Example output**

```json
{
  "data": []
}
```

### List location statuses

List location statuses.

**Inputs**

- Limit (`limit`, number): Max number of results. From 1 to 100.
- Start after (`start_after`, text): Identifier(s) or value(s) to paginate results (comma-separated)

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "endAt": "example",
    "limit": 1,
    "results": [],
    "startAt": "example"
  }
}
```

### List locations

List locations.

**Inputs**

- Limit (`limit`, number): Max number of results. From 1 to 100.
- Start after (`start_after`, text): Identifier(s) or value(s) to paginate results (comma-separated)
- Country code (`country_code`, text): Country code

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "endAt": "example",
    "limit": 1,
    "results": [],
    "startAt": "example"
  }
}
```

### List messages

List messages.

**Inputs**

- Limit (`limit`, number): Max number of results. From 1 to 100.
- Start after (`start_after`, text): Identifier(s) or value(s) to paginate results (comma-separated)
- Location (`location_id`, text): Identifier of location
- State (`state`, text): Current state of message. One of: `PENDING`, `BLOCKED`, `FAILED`, `DELIVERED`, `UNCONFIRMED`, `RECEIVED`.
- Visit ID (`visit_id`, text): Identifier of visit
- Customer ID (`customer_id`, text): Identifier of customer, automatically derived from visitor contact information if not provided.
- From date (`from_date`, date and time): Date and time in ISO-8601 format or milliseconds from epoch
- To date (`to_date`, date and time): Date and time in ISO-8601 format or milliseconds from epoch

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "endAt": "example",
    "limit": 1,
    "results": [],
    "startAt": "example"
  }
}
```

### List resources

List resources.

**Inputs**

- Limit (`limit`, number): Max number of results. From 1 to 100.
- Start after (`start_after`, text): Identifier(s) or value(s) to paginate results (comma-separated)
- Location (`location_id`, list): Location identifiers
- Q (`q`, text): Search query, prefix match on name or display name

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "endAt": "example",
    "limit": 1,
    "results": [],
    "startAt": "example"
  }
}
```

### List services

List services.

**Inputs**

- Limit (`limit`, number): Max number of results. From 1 to 100.
- Start after (`start_after`, text): Identifier(s) or value(s) to paginate results (comma-separated)
- Location (`location_id`, list): Location identifiers
- Q (`q`, text): Search query, prefix match on name or display name

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "endAt": "example",
    "limit": 1,
    "results": [],
    "startAt": "example"
  }
}
```

### List visits

List visits.

**Inputs**

- Limit (`limit`, number): Max number of results. From 1 to 100.
- Start after (`start_after`, text): Identifier(s) or value(s) to paginate results (comma-separated)
- Location (`location_id`, text): Identifier of location
- State (`state`, text): State of visit. One of: `PENDING`, `DRAFT`, `BOOKED`, `WAITING`, `SERVING`, `COMPLETE`.
- Service (`service_id`, text): Identifier of service
- Resource (`resource_id`, text): Identifier of resource
- From booking date (`from_booking_date`, date): Local date and time in YYYY-MM-DDThh:mm format
- To booking date (`to_booking_date`, date): Local date and time in YYYY-MM-DDThh:mm format
- From date (`from_date`, date and time): Date and time in ISO-8601 format or milliseconds from epoch
- To date (`to_date`, date and time): Date and time in ISO-8601 format or milliseconds from epoch

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "endAt": "example",
    "limit": 1,
    "results": [],
    "startAt": "example"
  }
}
```

### Update a customer

Update a customer.

**Inputs**

- Customer ID (`customer_id`, text, required): Identifier of customer, automatically derived from visitor contact information if not provided.
- Name (`name`, text): Name to use.
- First name (`first_name`, text): First name to use.
- Last name (`last_name`, text): Last name to use.
- Phone (`phone`, text): Phone to use.
- Email (`email`, text): Email to use.
- Notes (`notes`, text): Notes to use.
- Tags (`tags`, list): Tags to use. One or more of: `NO-SHOW`, `CANCELLED`, `REMOVED`, `ALERTED`, `ARRIVED`, `DELAYED`, `CONFIRMED`, `EXPIRED`, `FLAGGED`, `IMPORTED`, and 4 more.
- Location IDs (`location_ids`, list): Location IDs to use.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "created": "example",
    "createdBy": "example",
    "email": "example",
    "externalId": "example",
    "firstName": "example",
    "id": "example",
    "isAnonymized": false,
    "lastName": "example",
    "lastVisits": {},
    "locationIds": [],
    "metadata": {},
    "name": "example",
    "notes": "example",
    "phone": "example",
    "states": {},
    "tags": [],
    "updated": "example",
    "updatedBy": "example"
  }
}
```
