Mews · Example Payload

Mews Vouchercodes Add Example

HospitalityHotelsPMSProperty Management

Mews Vouchercodes 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": "voucherCodes_add",
  "method": "POST",
  "path": "/api/connector/v1/voucherCodes/add",
  "summary": "Add voucher codes",
  "requestExamples": [
    {
      "contentType": "application/json",
      "example": {
        "ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
        "AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
        "Client": "Sample Client 1.0.0",
        "EnterpriseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "VoucherCodeParameters": [
          {
            "VoucherId": "8c364829-c7ae-4972-b67f-93ea704d7228",
            "Value": "0E5856B0A73E62B7E446",
            "ValidityStartUtc": "2023-10-09T22:00:00Z",
            "ValidityEndUtc": "2023-10-09T22:00:00Z"
          },
          {
            "VoucherId": "dc9d3488-7fc4-4fc9-a524-14e6504d8734",
            "Value": "021D047E42A5FD522CBA",
            "ValidityStartUtc": "2023-10-09T22:00:00Z",
            "ValidityEndUtc": "2023-10-09T22:00:00Z"
          }
        ]
      }
    }
  ],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "example": {
        "VoucherCodes": [
          {
            "Id": "8c364829-c7ae-4972-b67f-93ea704d7228",
            "VoucherId": "fe568bbd-1ecb-4bb2-bf77-96c3698de20d",
            "Value": "0E5856B0A73E62B7E446",
            "ValidityStartUtc": null,
            "ValidityEndUtc": null,
            "CreatedUtc": "2023-10-30T13:37:16Z",
            "UpdatedUtc": "2023-10-30T13:37:16Z",
            "ActivityState": "Active"
          },
          {
            "Id": "dc9d3488-7fc4-4fc9-a524-14e6504d8734",
            "VoucherId": "fe568bbd-1ecb-4bb2-bf77-96c3698de20d",
            "Value": "021D047E42A5FD522CBA",
            "ValidityStartUtc": "2023-10-09T22:00:00Z",
            "ValidityEndUtc": "2023-10-09T22:00:00Z",
            "CreatedUtc": "2023-10-09T15:08:14Z",
            "UpdatedUtc": "2023-10-09T15:08:14Z",
            "ActivityState": "Active"
          }
        ]
      }
    }
  ]
}