Mews · Arazzo Workflow

Mews Add Customer and Add Reservation

Version 1.0.0

Create a guest profile, then book a reservation for that guest.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub HospitalityHotelPMSProperty ManagementTravelBookingReservationsCloudSoftware-as-a-ServiceArazzoWorkflows

Provider

mews-com

Workflows

add-customer-add-reservation
Create a customer profile and book a reservation for them.
Adds a new customer to the enterprise then immediately creates a reservation for that customer on the supplied service and rate for the requested stay interval.
2 steps inputs: accessToken, client, clientToken, email, endUtc, firstName, lastName, rateId, requestedCategoryId, serviceId, startUtc outputs: customerId, reservationId, reservationNumber
1
addCustomer
Create the guest profile. The returned customer id is required to attach a reservation to the guest.
2
addReservation
Book the reservation for the newly created customer on the supplied service, rate and category for the requested interval.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Mews Add Customer and Add Reservation
  summary: Create a guest profile, then book a reservation for that guest.
  description: >-
    The foundational Mews booking pattern. A new guest profile is created with
    the Connector API customers/add action, the resulting customer id is carried
    forward, and a reservation is added for that guest against a service and rate
    using reservations/add. Every step spells out its action-style POST body
    inline — including the ClientToken, AccessToken, and Client authentication
    fields Mews requires — so the flow can be read and executed without opening
    the underlying OpenAPI description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-4020
  - BC-4040.10
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-4020
      capability_name: Reservation & Booking Management
      spec: mews-com-reservations-api-openapi.yml
      confidence: 0.95
    - capability_id: BC-4040.10
      capability_name: Guest Profile & Identity Management
      spec: mews-com-customers-api-openapi.yml
      confidence: 0.85
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: customersApi
  url: ../openapi/mews-com-customers-api-openapi.yml
  type: openapi
- name: reservationsApi
  url: ../openapi/mews-com-reservations-api-openapi.yml
  type: openapi
workflows:
- workflowId: add-customer-add-reservation
  summary: Create a customer profile and book a reservation for them.
  description: >-
    Adds a new customer to the enterprise then immediately creates a reservation
    for that customer on the supplied service and rate for the requested stay
    interval.
  inputs:
    type: object
    required:
    - clientToken
    - accessToken
    - client
    - firstName
    - lastName
    - serviceId
    - rateId
    - requestedCategoryId
    - startUtc
    - endUtc
    properties:
      clientToken:
        type: string
        description: The Mews ClientToken identifying the integration.
      accessToken:
        type: string
        description: The Mews AccessToken identifying the enterprise.
      client:
        type: string
        description: The client application name and version (e.g. "Sample Client 1.0.0").
      firstName:
        type: string
        description: The guest first name.
      lastName:
        type: string
        description: The guest last name.
      email:
        type: string
        description: The guest email address.
      serviceId:
        type: string
        description: The bookable service (reservable) the reservation belongs to.
      rateId:
        type: string
        description: The rate applied to the reservation.
      requestedCategoryId:
        type: string
        description: The requested resource (room) category for the stay.
      startUtc:
        type: string
        description: The reservation start in UTC (e.g. 2021-01-01T14:00:00Z).
      endUtc:
        type: string
        description: The reservation end in UTC (e.g. 2021-01-03T10:00:00Z).
  steps:
  - stepId: addCustomer
    description: >-
      Create the guest profile. The returned customer id is required to attach a
      reservation to the guest.
    operationId: customers_add
    requestBody:
      contentType: application/json
      payload:
        ClientToken: $inputs.clientToken
        AccessToken: $inputs.accessToken
        Client: $inputs.client
        FirstName: $inputs.firstName
        LastName: $inputs.lastName
        Email: $inputs.email
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      customerId: $response.body#/Id
  - stepId: addReservation
    description: >-
      Book the reservation for the newly created customer on the supplied
      service, rate and category for the requested interval.
    operationId: reservations_add
    requestBody:
      contentType: application/json
      payload:
        ClientToken: $inputs.clientToken
        AccessToken: $inputs.accessToken
        Client: $inputs.client
        ServiceId: $inputs.serviceId
        SendConfirmationEmail: true
        Reservations:
        - State: Confirmed
          StartUtc: $inputs.startUtc
          EndUtc: $inputs.endUtc
          CustomerId: $steps.addCustomer.outputs.customerId
          RequestedCategoryId: $inputs.requestedCategoryId
          RateId: $inputs.rateId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      reservationId: $response.body#/Reservations/0/Reservation/Id
      reservationNumber: $response.body#/Reservations/0/Reservation/Number
      reservationState: $response.body#/Reservations/0/Reservation/State
  outputs:
    customerId: $steps.addCustomer.outputs.customerId
    reservationId: $steps.addReservation.outputs.reservationId
    reservationNumber: $steps.addReservation.outputs.reservationNumber

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/mews-com-add-customer-add-reservation-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.