---
title: "Get all reservation items"
method: POST
path: "/api/connector/v1/reservations/getAllItems"
tags: ["Reservations"]
deprecated: true
---

# Get all reservation items

`POST /api/connector/v1/reservations/getAllItems`

> **Deprecated.**

Use orderItems/getAll.

## Request body

- ReservationItemParameters
  - `ClientToken` string, required — Token identifying the client application.
  - `AccessToken` string, required — Access token of the client application.
  - `Client` string, required — Name and version of the client application.
  - `ReservationIds` string[], required — Unique identifiers of the reservation.
  - `Currency` string, currency, nullable — ISO-4217 code of the [Currency](https://mews-systems.gitbook.io/connector-api/operations/currencies/#currency) the item costs should be converted to.
  - `AccountingStates` string[], nullable — States the items should be in. If not specified, items in Open or Closed states are returned.

## Response `200`

OK

- ReservationItemResult
  - `Reservations` ReservationItems[], required — The reservations with their items.
    - `ReservationId` string, uuid — Unique identifier of the reservation.
    - `Items` AccountingItem[], required — Accounting items associated with the reservation.
      - `Id` string, uuid
      - `AccountId` string, uuid
      - `CustomerId` string, uuid, nullable
      - `OrderId` string, uuid, nullable
      - `ServiceId` string, uuid, nullable
      - `ProductId` string, uuid, nullable
      - `BillId` string, uuid, nullable
      - `InvoiceId` string, uuid, nullable
      - `AccountingCategoryId` string, uuid, nullable
      - `CreditCardId` string, uuid, nullable
      - `Type` string, nullable
      - `SubType` string, nullable
      - `Name` string, nullable
      - `Notes` string, nullable
      - `ConsumptionUtc` string, nullable
      - `ClosedUtc` string, nullable
      - `State` string, nullable
      - `SubState` string, nullable
      - `Amount` ExtendedAmount
        - `Currency` string, currency, required — ISO-4217 code of the [Currency](https://mews-systems.gitbook.io/connector-api/operations/currencies/#currency).
        - `NetValue` number, double, required — Net value without taxes.
        - `GrossValue` number, double, required — Gross value including all taxes.
        - `TaxValues` TaxValue[], required — The tax values applied.
          - `Code` string, nullable — Code corresponding to tax type.
          - `Value` number, double, required — Amount of tax applied.
        - `Breakdown` TaxBreakdown, required
          - `Items` TaxBreakdownItem[], required — Tax breakdown items per each tax rate applied.
            - `TaxRateCode` string, nullable — Tax rate code for the item. `null` for untaxed amounts.
            - `NetValue` number, double, required — The net value that the tax is calculated from.
            - `TaxValue` number, double, required — The value of the tax.
        - `Value` number, double, nullable
        - `Net` number, double, nullable
        - `Tax` number, double, nullable
        - `TaxRate` number, double, nullable
      - `TaxExemptionReasonCode` string, nullable — Code of tax exemption reason. **Restricted!** This property is currently intended for Mews' internal usage and may be subject to change.
    - `OrderItems` OrderItemOld[], required — Order items associated with the reservation.
      - `Id` string, uuid, required — Unique identifier of the item.
      - `AccountId` string, uuid, required — Unique identifier of the account (for example `Customer`) the item belongs to.
      - `OrderId` string, uuid, required — Unique identifier of the order (or `Reservation` which is a special type of order) the item belongs to.
      - `BillId` string, uuid, nullable — Unique identifier of the `Bill` the item is assigned to.
      - `AccountingCategoryId` string, uuid, nullable — Unique identifier of the `AccountingCategory` the item belongs to.
      - `UnitCount` integer — Unit count of item, i.e. the number of sub-items or units, if applicable.
      - `UnitAmount` Amount, required
        - `Currency` string, currency, required — ISO-4217 code of the [Currency](https://mews-systems.gitbook.io/connector-api/operations/currencies/#currency).
        - `NetValue` number, double, required — Net value without taxes.
        - `GrossValue` number, double, required — Gross value including all taxes.
        - `TaxValues` TaxValue[], required — The tax values applied.
          - `Code` string, nullable — Code corresponding to tax type.
          - `Value` number, double, required — Amount of tax applied.
        - `Breakdown` TaxBreakdown, required
          - `Items` TaxBreakdownItem[], required — Tax breakdown items per each tax rate applied.
            - `TaxRateCode` string, nullable — Tax rate code for the item. `null` for untaxed amounts.
            - `NetValue` number, double, required — The net value that the tax is calculated from.
            - `TaxValue` number, double, required — The value of the tax.
      - `Amount` ExtendedAmount, required
        - `Currency` string, currency, required — ISO-4217 code of the [Currency](https://mews-systems.gitbook.io/connector-api/operations/currencies/#currency).
        - `NetValue` number, double, required — Net value without taxes.
        - `GrossValue` number, double, required — Gross value including all taxes.
        - `TaxValues` TaxValue[], required — The tax values applied.
          - `Code` string, nullable — Code corresponding to tax type.
          - `Value` number, double, required — Amount of tax applied.
        - `Breakdown` TaxBreakdown, required
          - `Items` TaxBreakdownItem[], required — Tax breakdown items per each tax rate applied.
            - `TaxRateCode` string, nullable — Tax rate code for the item. `null` for untaxed amounts.
            - `NetValue` number, double, required — The net value that the tax is calculated from.
            - `TaxValue` number, double, required — The value of the tax.
        - `Value` number, double, nullable
        - `Net` number, double, nullable
        - `Tax` number, double, nullable
        - `TaxRate` number, double, nullable
      - `OriginalAmount` ExtendedAmount, required
        - `Currency` string, currency, required — ISO-4217 code of the [Currency](https://mews-systems.gitbook.io/connector-api/operations/currencies/#currency).
        - `NetValue` number, double, required — Net value without taxes.
        - `GrossValue` number, double, required — Gross value including all taxes.
        - `TaxValues` TaxValue[], required — The tax values applied.
          - `Code` string, nullable — Code corresponding to tax type.
          - `Value` number, double, required — Amount of tax applied.
        - `Breakdown` TaxBreakdown, required
          - `Items` TaxBreakdownItem[], required — Tax breakdown items per each tax rate applied.
            - `TaxRateCode` string, nullable — Tax rate code for the item. `null` for untaxed amounts.
            - `NetValue` number, double, required — The net value that the tax is calculated from.
            - `TaxValue` number, double, required — The value of the tax.
        - `Value` number, double, nullable
        - `Net` number, double, nullable
        - `Tax` number, double, nullable
        - `TaxRate` number, double, nullable
      - `RevenueType` string, required — Revenue type of the item.
      - `CreatorProfileId` string, uuid, required — Unique identifier of the user who created the item.
      - `UpdaterProfileId` string, uuid, required — Unique identifier of the user who updated the item.
      - `CreatedUtc` string, date, required — Creation date and time of the item in UTC timezone in ISO 8601 format.
      - `UpdatedUtc` string, date, required — Last update date and time of the item in UTC timezone in ISO 8601 format.
      - `ConsumedUtc` string, date, nullable — Date and time of the item consumption in UTC timezone in ISO 8601 format.
      - `CanceledUtc` string, date, nullable — Cancellation date and time of the item in UTC timezone in ISO 8601 format.
      - `ClosedUtc` string, date, nullable — Date and time of the item bill closure in UTC timezone in ISO 8601 format.
      - `StartUtc` string, date, nullable — Start date and time of the item in UTC timezone in ISO 8601 format.
      - `AccountingState` string, required — Accounting state of the item.
      - `Data` object, required — Additional data specific to particular order item.
        - `Discriminator` 'CancellationFee' | 'Rebate' | 'Deposit' | 'ExchangeRateDifference' | 'CustomItem' | 'Surcharge' | 'SurchargeDiscount' | 'SpaceOrder' | 'ProductOrder' | 'Other' | 'TaxCorrection' | 'ResourceUpgradeFee' | 'InvoiceFee'
        - `Value` union — Based on order item discriminator or `null` for types without any additional data.
          - RebateOrderItemData
            - `RebatedItemId` string, uuid, required — Unique identifier of `OrderItem` which has been rebated by current item.
          - ProductOrderItemData
            - `ProductId` string, uuid, required — Unique identifier of the `Product`.
            - `AgeCategoryId` string, uuid, nullable — Unique identifier of the `AgeCategory`.

## Other responses

- `204` — Server has successfully fulfilled the request and there is no additional information to send back.
- `400` — 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).
- `401` — Error caused by usage of invalid ClientToken, AccessToken, or you may not have the necessary permission to use the endpoint.
- `403` — 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.
- `408` — 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](https://mews-systems.gitbook.io/connector-api/guidelines/requests#request-timeouts)
- `429` — 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](https://mews-systems.gitbook.io/connector-api/guidelines/requests#request-limits).
- `500` — 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](https://github.com/MewsSystems/gitbook-connector-api).

---

[API](https://skmtc.net/mews/apis/connector-api.md) · [All operations](https://skmtc.net/mews/apis/connector-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mews/connector-api/versions/81933a8ff730/schema)
