Mews · Arazzo Workflow

Mews Reassign Reservation Guest

Version 1.0.0

Find or create a guest profile, then set it as a reservation's customer.

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

Provider

mews-com

Workflows

reassign-reservation-guest
Resolve a guest profile and set it as a reservation's customer.
Searches for the guest by name, creates the profile when missing, and assigns the resolved guest as the primary customer of the reservation.
4 steps inputs: accessToken, client, clientToken, email, enterpriseId, firstName, lastName, name, reservationId outputs: createdCustomerId, matchedCustomerId, reservationId
1
searchCustomer
Search for an existing guest profile by name before deciding whether to create one.
2
createCustomer
Create the guest profile when the search returned no match.
3
assignExisting
Set the matched existing guest as the reservation's primary customer.
4
assignCreated
Set the newly created guest as the reservation's primary customer.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Mews Reassign Reservation Guest
  summary: Find or create a guest profile, then set it as a reservation's customer.
  description: >-
    The Mews guest-reassignment pattern. The Connector API customers/search action
    looks for an existing guest by name and branches to customers/add when none is
    found, then reservations/updateCustomer sets the resolved guest as the
    reservation's primary customer. Each step inlines its action-style POST body
    with the ClientToken, AccessToken, and Client authentication fields Mews
    requires so the flow reads and runs without opening the 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: reassign-reservation-guest
  summary: Resolve a guest profile and set it as a reservation's customer.
  description: >-
    Searches for the guest by name, creates the profile when missing, and assigns
    the resolved guest as the primary customer of the reservation.
  inputs:
    type: object
    required:
    - clientToken
    - accessToken
    - client
    - enterpriseId
    - reservationId
    - name
    - firstName
    - lastName
    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.
      enterpriseId:
        type: string
        description: The enterprise (property) the reservation belongs to.
      reservationId:
        type: string
        description: The reservation whose customer is being reassigned.
      name:
        type: string
        description: The guest name to search for.
      firstName:
        type: string
        description: First name used when creating a new profile.
      lastName:
        type: string
        description: Last name used when creating a new profile.
      email:
        type: string
        description: Email used when creating a new profile.
  steps:
  - stepId: searchCustomer
    description: >-
      Search for an existing guest profile by name before deciding whether to
      create one.
    operationId: customers_search
    requestBody:
      contentType: application/json
      payload:
        ClientToken: $inputs.clientToken
        AccessToken: $inputs.accessToken
        Client: $inputs.client
        Name: $inputs.name
        Extent:
          Customers: true
          Documents: false
          Addresses: false
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      matchedCustomerId: $response.body#/Customers/0/Customer/Id
    onSuccess:
    - name: customerExists
      type: goto
      stepId: assignExisting
      criteria:
      - context: $response.body
        condition: $.Customers.length > 0
        type: jsonpath
    - name: customerMissing
      type: goto
      stepId: createCustomer
      criteria:
      - context: $response.body
        condition: $.Customers.length == 0
        type: jsonpath
  - stepId: createCustomer
    description: >-
      Create the guest profile when the search returned no match.
    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:
      createdCustomerId: $response.body#/Id
    onSuccess:
    - name: assignCreated
      type: goto
      stepId: assignCreated
      criteria:
      - condition: $statusCode == 200
  - stepId: assignExisting
    description: >-
      Set the matched existing guest as the reservation's primary customer.
    operationId: reservations_updateCustomer
    requestBody:
      contentType: application/json
      payload:
        ClientToken: $inputs.clientToken
        AccessToken: $inputs.accessToken
        Client: $inputs.client
        EnterpriseId: $inputs.enterpriseId
        ReservationId: $inputs.reservationId
        CustomerId: $steps.searchCustomer.outputs.matchedCustomerId
    successCriteria:
    - condition: $statusCode == 200
    onSuccess:
    - name: done
      type: end
  - stepId: assignCreated
    description: >-
      Set the newly created guest as the reservation's primary customer.
    operationId: reservations_updateCustomer
    requestBody:
      contentType: application/json
      payload:
        ClientToken: $inputs.clientToken
        AccessToken: $inputs.accessToken
        Client: $inputs.client
        EnterpriseId: $inputs.enterpriseId
        ReservationId: $inputs.reservationId
        CustomerId: $steps.createCustomer.outputs.createdCustomerId
    successCriteria:
    - condition: $statusCode == 200
  outputs:
    reservationId: $inputs.reservationId
    matchedCustomerId: $steps.searchCustomer.outputs.matchedCustomerId
    createdCustomerId: $steps.createCustomer.outputs.createdCustomerId

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-reassign-reservation-guest-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.