Mews · Example Payload

Mews Vouchers Add Example

HospitalityHotelsPMSProperty Management

Mews Vouchers Add Example is an example object payload from Mews, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummaryrequestExamplesresponseExamples

Example Payload

Raw ↑
{
  "operationId": "vouchers_add",
  "method": "POST",
  "path": "/api/connector/v1/vouchers/add",
  "summary": "Add vouchers",
  "requestExamples": [
    {
      "contentType": "application/json",
      "example": {
        "ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
        "AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
        "Client": "Sample Client 1.0.0",
        "VoucherParameters": [
          {
            "ServiceId": "bd26d8db-86da-4f96-9efc-e5a4654a4a94",
            "Name": "Weekend Voucher",
            "Type": "Public",
            "AssignedRateIds": [
              "ed4b660b-19d0-434b-9360-a4de2ea42eda",
              "b7e6a1c2-4f3a-4e2b-9c1d-2a5e7b8c9d0f"
            ]
          },
          {
            "ServiceId": "bd26d8db-86da-4f96-9efc-e5a4654a4a94",
            "Name": "Sample company voucher",
            "Type": "PartnerCompany",
            "CompanyId": "c6f5c82d-621a-4c8a-903b-1b0a9a23b71f",
            "AssignedRateIds": [
              "ed4b660b-19d0-434b-9360-a4de2ea42eda",
              "b7e6a1c2-4f3a-4e2b-9c1d-2a5e7b8c9d0f"
            ],
            "OccupiableIntervalStartUtc": "2023-12-31T22:00:00Z",
            "OccupiableIntervalEndUtc": "2024-01-01T22:00:00Z",
            "ExternalIdentifier": "VCHR-278"
          }
        ],
        "EnterpriseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      }
    }
  ],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "example": {
        "Vouchers": [
          {
            "Id": "fe568bbd-1ecb-4bb2-bf77-96c3698de20d",
            "ServiceId": "bd26d8db-86da-4f96-9efc-e5a4654a4a94",
            "EnterpriseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "Name": "Weekend Voucher",
            "CreatedUtc": "2018-11-29T08:17:05Z",
            "UpdatedUtc": "2020-10-30T13:38:49Z",
            "Type": "Public",
            "ActivityState": "Active",
            "CompanyId": "c6f5c82d-621a-4c8a-903b-1b0a9a23b71f",
            "TravelAgencyId": null,
            "OccupiableIntervalStartUtc": null,
            "OccupiableIntervalEndUtc": null,
            "ExternalIdentifier": "VCHR-278",
            "IsActive": true
          },
          {
            "Id": "f4a9942c-2616-4074-b1f4-4b959515e933",
            "ServiceId": "bd26d8db-86da-4f96-9efc-e5a4654a4a94",
            "EnterpriseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "Name": "Sample company voucher",
            "CreatedUtc": "2023-12-01T08:17:05Z",
            "UpdatedUtc": "2023-12-02T13:38:49Z",
            "Type": "PartnerCompany",
            "ActivityState": "Active",
            "CompanyId": "c6f5c82d-621a-4c8a-903b-1b0a9a23b71f",
            "TravelAgencyId": null,
            "OccupiableIntervalStartUtc": "2023-12-31T22:00:00Z",
            "OccupiableIntervalEndUtc": "2024-01-01T22:00:00Z",
            "ExternalIdentifier": "VCHR-278",
            "IsActive": true
          }
        ]
      }
    }
  ]
}