Mews · Example Payload

Mews Outletbills Add Example

HospitalityHotelsPMSProperty Management

Mews Outletbills 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": "outletBills_add",
  "method": "POST",
  "path": "/api/connector/v1/outletBills/add",
  "summary": "Add outlet bills",
  "requestExamples": [
    {
      "contentType": "application/json",
      "example": {
        "ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
        "AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
        "Client": "Sample Client 1.0.0",
        "Bills": [
          {
            "OutletId": "7700469f-7667-4ebd-a1c0-10380afc9bd0",
            "Number": "1257",
            "ClosedUtc": "2017-01-01T00:00:00Z",
            "Items": [
              {
                "Type": "Payment",
                "Name": "Cash payment",
                "UnitCount": 1,
                "UnitAmount": {
                  "Currency": "GBP",
                  "GrossValue": -25,
                  "TaxCodes": [
                    "UK-S"
                  ]
                },
                "ConsumedUtc": "2017-01-01T00:00:00Z",
                "ExternalIdentifier": "PaymentReference123"
              },
              {
                "Type": "Revenue",
                "Name": "Beer",
                "UnitCount": 10,
                "UnitAmount": {
                  "Currency": "GBP",
                  "GrossValue": 2.5,
                  "TaxCodes": [
                    "UK-S"
                  ]
                },
                "ConsumedUtc": "2017-01-01T00:00:00Z",
                "AccountingCategoryId": null
              }
            ]
          }
        ]
      }
    }
  ],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "example": {
        "OutletBillIds": [
          "f2ee1bd2-dd55-4cd3-bab1-ab6800bf0301"
        ]
      }
    }
  ]
}