Skip to content

Get all outlet items

POST
/api/connector/v1/outletItems/getAll

Returns all outlet items of the enterprise that were consumed (posted) or will be consumed within the specified interval. If the Currency is specified, costs of the items are converted to that currency. Note this operation uses Pagination and supports Portfolio Access Tokens.

OutletItemsFilterParameters
object
ClientToken
required

Token identifying the client application.

string
>= 1 characters
AccessToken
required

Access token of the client application.

string
>= 1 characters
Client
required

Name and version of the client application.

string
>= 1 characters
Limitation
required

Limitation on the quantity of data returned and optional Cursor for the starting point of data.

object
Count
required
integer format: int32
Cursor
string format: uuid
nullable
EnterpriseIds

Unique identifiers of the Enterprises. If not specified, the operation returns data for all enterprises within scope of the Access Token.

Array<string>
nullable >= 1 items <= 1000 items
Ids

Unique identifiers of the Outlet items. If not specified, the operation returns data for all Outlet items within scope of the Access Token.

Array<string>
nullable >= 1 items <= 1000 items
ConsumedUtc
TimeFilterInterval

Interval in which the Outlet item was consumed. Required if no other filter is provided.

object
StartUtc
string format: date-time
nullable
EndUtc
string format: date-time
nullable
UpdatedUtc
TimeFilterInterval

Interval in which the Outlet bill was updated.

object
StartUtc
string format: date-time
nullable
EndUtc
string format: date-time
nullable
ClosedUtc
TimeFilterInterval

Interval in which the Outlet bill was closed.

object
StartUtc
string format: date-time
nullable
EndUtc
string format: date-time
nullable
Currency

ISO-4217 code of the Currency the item costs should be converted to.

string format: currency
nullable
Example
{
"ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
"AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
"Client": "Sample Client 1.0.0",
"EnterpriseIds": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"4d0201db-36f5-428b-8d11-4f0a65e960cc"
],
"ConsumedUtc": {
"StartUtc": "2020-01-05T00:00:00Z",
"EndUtc": "2020-01-10T00:00:00Z"
},
"ClosedUtc": {
"StartUtc": "2020-01-05T00:00:00Z",
"EndUtc": "2020-01-10T00:00:00Z"
},
"UpdatedUtc": {
"StartUtc": "2020-01-05T00:00:00Z",
"EndUtc": "2020-01-10T00:00:00Z"
},
"Currency": "EUR",
"Limitation": {
"Count": 100
}
}

OK

OutletItemResult
object
OutletItems
required

The outlet items.

Array<object>
Outlet item
object
Id
required

Unique identifier of the item.

string format: uuid
EnterpriseId
required

Unique identifier of the Enterprise.

string format: uuid
BillId
required

Unique identifier of the Outlet bill the item belongs to.

string format: uuid
AccountingCategoryId

Unique identifier of the Accounting category the item belongs to.

string format: uuid
nullable
Type
required
Outlet item type

Type of the outlet item.

string
Allowed values: Revenue NonRevenue Payment
Name

Name of the item.

string
nullable
UnitCount
required

Unit count of the item.

integer format: int32
UnitAmount
required
Amount

Unit amount of the item.

object
Currency
required

ISO-4217 code of the Currency.

string format: currency
>= 1 characters
NetValue
required

Net value without taxes.

number format: double
GrossValue
required

Gross value including all taxes.

number format: double
TaxValues
required

The tax values applied.

Array<object>
Tax value
object
Code

Code corresponding to tax type.

string
nullable
Value
required

Amount of tax applied.

number format: double
Breakdown
required
Tax breakdown

Information about individual tax amounts.

object
Items
required

Tax breakdown items per each tax rate applied.

Array<object>
Tax breakdown item
object
TaxRateCode

Tax rate code for the item. null for untaxed amounts.

string
nullable
NetValue
required

The net value that the tax is calculated from.

number format: double
TaxValue
required

The value of the tax.

number format: double
CreatedUtc
required

Date and time of the item creation in UTC timezone in ISO 8601 format.

string format: date-time
>= 1 characters
UpdatedUtc
required

Last update date and time of the item in UTC timezone in ISO 8601 format.

string format: date-time
>= 1 characters
ConsumedUtc
required

Date and time of the item consumption in UTC timezone in ISO 8601 format.

string format: date-time
>= 1 characters
ExternalIdentifier

An identifier of this item from another system.

string
nullable
Notes

Additional notes.

string
nullable
PaymentCardPaymentId

Unique identifier of the payment card Payment this item is linked to. This is only applicable to items where Type is Payment.

string format: uuid
nullable
UnitCost
Currency value (ver 2018-06-07)

Total price of the reservation.

object
Currency
required
string format: currency
>= 1 characters
Value
number format: double
nullable
Net
number format: double
nullable
Tax
number format: double
nullable
TaxRate
number format: double
nullable
OutletBills
required

The outlet bills of the items.

Array<object>
Outlet bill
object
Id
required

Unique identifier of the bill.

string format: uuid
EnterpriseId
required

Unique identifier of the Enterprise.

string format: uuid
OutletId
required

Unique identifier of the Outlet where the bill was issued.

string format: uuid
Number

Number of the bill.

string
nullable
ClosedUtc
required

Date and time of the bill closure in UTC timezone in ISO 8601 format.

string format: date-time
>= 1 characters
UpdatedUtc
required

Last update date and time of the bill in UTC timezone in ISO 8601 format.

string format: date-time
>= 1 characters
Notes

Additional notes on the bill.

string
nullable
Cursor

Unique identifier of the last and hence oldest outlet item returned. This can be used in Limitation in a subsequent request to fetch the next batch of older outlet items.

string format: uuid
nullable
Example
{
"OutletItems": [
{
"Id": "f29821b7-1659-4c96-a8c7-3725d0f1509b",
"EnterpriseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"BillId": "5c82a9bd-729c-4f80-af48-a56ab3aebbf6",
"AccountingCategoryId": "1131ddd1-fa2b-4150-bbf6-7fce94941f65",
"Type": "Revenue",
"Name": "sample revenue item",
"UnitCount": 4,
"UnitAmount": {
"Currency": "EUR",
"GrossValue": 11,
"NetValue": 11,
"TaxValues": []
},
"CreatedUtc": "2018-07-25T12:47:11Z",
"ConsumedUtc": "2018-07-26T12:19:07Z",
"UpdatedUtc": "2018-07-26T12:19:07Z",
"ExternalIdentifier": null,
"Notes": null
},
{
"Id": "dfec07c6-e278-4ed0-932f-41bbd1f38039",
"EnterpriseId": "4d0201db-36f5-428b-8d11-4f0a65e960cc",
"BillId": "7bdd3b53-7bb3-419d-8ff2-c9bde65d0c7e",
"AccountingCategoryId": "7EDAB816-BF4E-40CC-8936-7BC0B222908D",
"Type": "Payment",
"Name": "sample payment item",
"UnitCount": 77,
"UnitAmount": {
"Currency": "EUR",
"GrossValue": 2,
"NetValue": 2,
"TaxValues": []
},
"CreatedUtc": "2018-07-25T16:25:28Z",
"ConsumedUtc": "2018-07-26T10:11:08Z",
"UpdatedUtc": "2018-07-26T10:11:08Z",
"ExternalIdentifier": "PaymentReference123",
"Notes": null
}
],
"OutletBills": [
{
"Id": "5c82a9bd-729c-4f80-af48-a56ab3aebbf6",
"OutletId": "c9f09414-2fdf-41d6-bdb1-12158b01048e",
"Number": "1305",
"ClosedUtc": "2018-07-26T12:19:07Z",
"UpdatedUtc": "2018-07-26T12:19:07Z",
"Notes": null
},
{
"Id": "7bdd3b53-7bb3-419d-8ff2-c9bde65d0c7e",
"OutletId": "E0A29D6D-411E-4302-AA6D-9289935C5F14",
"Number": "1306",
"ClosedUtc": "2018-07-26T10:19:02Z",
"UpdatedUtc": "2018-07-26T10:19:02Z",
"Notes": null
}
],
"Cursor": "8d02142f-31cf-4115-90bf-ae5200c7a1ba"
}

Server has successfully fulfilled the request and there is no additional information to send back.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Error caused by the client app, e.g. in case of malformed request or invalid identifier of a resource. In most cases, such an error signifies a bug in the client app (consumer of the API).

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Error caused by usage of invalid ClientToken, AccessToken, or you may not have the necessary permission to use the endpoint.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Server error that should be reported to the end user of the client app. Happens for example when the server-side validation fails or when a business-logic check is violated.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Error caused by heavy request that takes too long to process (typically tens of seconds). To get around this, request data in smaller batches. For more information, see Request timeouts

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Error caused by too many requests sent in a given amount of time. Response contains Retry-After header indicating how long the user agent should wait before making a follow-up request. For more information, see Request limits.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Unexpected error on the Mews side. This may be due to a software fault. If such a situation occurs, the error will be logged and the development team notified, however you can raise an issue through GitHub on our documentation repository.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable