| Qore MewsRestDataProvider Module Reference 1.0

Loading...
Searching...
No Matches
MewsRestDataProvider Module

Qore MewsRestDataProvider module definition

# Introduction to the MewsRestDataProvider Module

The MewsRestDataProvider module provides a data provider API for Mews cloud instances and data.

This data provider provides MewsRest API access to:

- Data as read-only tables:
  - tables/accountnotes
  - tables/accountingcategories
  - tables/addresses
  - tables/agecategories
  - tables/availabilityadjustments
  - tables/availabilityblocks
  - tables/bills
  - tables/businesssegments
  - tables/cancellationpolicies
  - tables/companies
  - tables/countries
  - tables/customers
  - tables/enterprises
  - tables/exchangerates
  - tables/languages
  - tables/orderitems
  - tables/outletitems
  - tables/outlets
  - tables/payments
  - tables/preauthorizations
  - tables/products
  - tables/rates
  - tables/reservations
  - tables/resourceblocks
  - tables/resourcecategories
  - tables/resourcefeatures
  - tables/resources
  - tables/restrictions
  - tables/services
  - tables/taxenvironments
  - tables/taxations
  - tables/vouchercodes
  - tables/vouchers
- API endpoints under:
  - api

# MewsRest Data Provider Factory

The name of the MewsRest data provider factory is `mewsrest`.

# MewsRest Data Provider Examples

These examples are with `qdp`, the command-line interface to the Data Provider API.

Record-Based Example: List Payments

      qdp mews/tables/payments se ClosedUtcStart=2023-11-01

Record-Based Example: List Open Accounting Items

      qdp mews/tables/orderitems se {}

Record-Based Example: List Customers

      qdp mews/tables/customers se {}

API Example: Create a Preauthorization Payment

      qdp mews/api/paymentRequests/add/POST dor body='{PaymentRequests=({AccountId=362b6d02-f3ff-4174-b046-b0bd00948d45,Amount={Currency=EUR,Value=14},Type=Preauthorization,Reason=Prepayment,ExpirationUtc=2023-11-22,Description=test},)}'

# Release Notes

## MewsRestDataProvider v1.0

- initial release of the module