Mews · Arazzo Workflow

Mews Reservation Accounting Summary

Version 1.0.0

Resolve a reservation's guest account, then pull its accounting items.

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

Provider

mews-com

Workflows

reservation-accounting-summary
Resolve a reservation and list its accounting items for a date range.
Reads the reservation to confirm it exists, then returns the order and payment accounting items consumed within the supplied date range.
2 steps inputs: accessToken, client, clientToken, consumedEndUtc, consumedStartUtc, endUtc, reservationId, serviceId, startUtc outputs: customerId, orderItems, paymentItems, reservationId
1
getReservation
Load the reservation to confirm it exists before pulling accounting items.
2
getAccountingItems
Return the order and payment accounting items consumed within the supplied window.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Mews Reservation Accounting Summary
  summary: Resolve a reservation's guest account, then pull its accounting items.
  description: >-
    The Mews folio-review pattern. The Connector API reservations/getAll action
    resolves the reservation and exposes its guest account id, then
    accountingItems/getAll returns the order and payment items posted to that
    account over a date range. 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
  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
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: accountingItemsApi
  url: ../openapi/mews-com-accounting-items-api-openapi.yml
  type: openapi
- name: reservationsApi
  url: ../openapi/mews-com-reservations-api-openapi.yml
  type: openapi
workflows:
- workflowId: reservation-accounting-summary
  summary: Resolve a reservation and list its accounting items for a date range.
  description: >-
    Reads the reservation to confirm it exists, then returns the order and
    payment accounting items consumed within the supplied date range.
  inputs:
    type: object
    required:
    - clientToken
    - accessToken
    - client
    - reservationId
    - serviceId
    - startUtc
    - endUtc
    - consumedStartUtc
    - consumedEndUtc
    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.
      reservationId:
        type: string
        description: The reservation to summarize accounting for.
      serviceId:
        type: string
        description: The bookable service the reservation belongs to.
      startUtc:
        type: string
        description: Lower bound of the reservation collision interval, in UTC.
      endUtc:
        type: string
        description: Upper bound of the reservation collision interval, in UTC.
      consumedStartUtc:
        type: string
        description: Start of the accounting item consumption window, in UTC.
      consumedEndUtc:
        type: string
        description: End of the accounting item consumption window, in UTC.
  steps:
  - stepId: getReservation
    description: >-
      Load the reservation to confirm it exists before pulling accounting items.
    operationId: reservations_getAll
    requestBody:
      contentType: application/json
      payload:
        ClientToken: $inputs.clientToken
        AccessToken: $inputs.accessToken
        Client: $inputs.client
        StartUtc: $inputs.startUtc
        EndUtc: $inputs.endUtc
        ServiceIds:
        - $inputs.serviceId
        ReservationIds:
        - $inputs.reservationId
        Extent:
          Reservations: true
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      customerId: $response.body#/Reservations/0/CustomerId
    onSuccess:
    - name: found
      type: goto
      stepId: getAccountingItems
      criteria:
      - context: $response.body
        condition: $.Reservations.length > 0
        type: jsonpath
    - name: notFound
      type: end
      criteria:
      - context: $response.body
        condition: $.Reservations.length == 0
        type: jsonpath
  - stepId: getAccountingItems
    description: >-
      Return the order and payment accounting items consumed within the supplied
      window.
    operationId: accountingItems_getAll
    requestBody:
      contentType: application/json
      payload:
        ClientToken: $inputs.clientToken
        AccessToken: $inputs.accessToken
        Client: $inputs.client
        ConsumedUtc:
          StartUtc: $inputs.consumedStartUtc
          EndUtc: $inputs.consumedEndUtc
        Extent:
          OrderItems: true
          PaymentItems: true
          CreditCardTransactions: false
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      orderItems: $response.body#/OrderItems
      paymentItems: $response.body#/PaymentItems
  outputs:
    reservationId: $inputs.reservationId
    customerId: $steps.getReservation.outputs.customerId
    orderItems: $steps.getAccountingItems.outputs.orderItems
    paymentItems: $steps.getAccountingItems.outputs.paymentItems

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-reservation-accounting-summary-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.