Price reservations
POST /api/connector/v1/reservations/price
Returns prices of reservations with the specified parameters. Note that the operation doesn’t check the maximum capacity of requested resource category. Requesting person counts above the capacity will return prices for the maximum available capacity.
This operation supports Portfolio Access Tokens.
Request Body
Section titled “Request Body ”object
Token identifying the client application.
Access token of the client application.
Name and version of the client application.
Unique identifier of the Service
to be priced.
Parameters of the reservations to price. Note that CustomerId
is not required when pricing reservations.
object
Identifier of the reservation within the transaction.
Reservation start in UTC timezone in ISO 8601 format.
Reservation end in UTC timezone in ISO 8601 format.
Release date and time of an unconfirmed reservation in UTC timezone in ISO 8601 format.
Number of people per age category the reservation was booked for. At least one category with valid count must be provided.
object
Unique identifier of the Age category.
Number of people of a given age category. Only positive value is accepted.
Unique identifier of the Customer
who owns the reservation.
Unique identifier of the Customer
on whose behalf the reservation was made.
Identifier of the requested ResourceCategory
.
Identifier of the reservation Rate
.
Voucher code value providing access to specified private Rate
applied to this reservation.
Identifier of CreditCard
belonging either to the Customer
who owns the reservation or to the Booker
.
Identifier of the Company
that mediated the reservation.
Identifier of the Company
on behalf of which the reservation was made.
Identifier of the reservation BusinessSegment
.
Additional notes.
Amount of each night of the reservation.
object
Prices for time units of the reservation. E.g. prices for the first or second night.
object
Index of the unit. Indexing starts with 0
. E.g. the first night of the reservation has index 0
.
Amount of the unit.
object
Parameters of the products ordered together with the reservation.
object
Price of the product that overrides the price defined in Mews.
object
Unique identifier of the AvailabilityBlock
the reservation is assigned to.
Example
{ "ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D", "AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D", "Client": "Sample Client 1.0.0", "EnterpriseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ServiceId": "bd26d8db-86da-4f96-9efc-e5a4654a4a94", "Reservations": [ { "Identifier": "1234", "StartUtc": "2018-01-01T14:00:00Z", "EndUtc": "2018-01-02T10:00:00Z", "RequestedCategoryId": "0a5da171-3663-4496-a61e-35ecbd78b9b1", "RateId": "33667cab-f17f-4089-ad07-c2cd50fa0df1", "Notes": "Test reservation", "ProductOrders": [ { "ProductId": "3dc5d79b-67ce-48ed-9238-47fcf5d1a59f" } ], "PersonCounts": [ { "AgeCategoryId": "1f67644f-052d-4863-acdf-ae1600c60ca0", "Count": 2 }, { "AgeCategoryId": "ab58c939-be30-4a60-8f75-ae1600c60c9f", "Count": 2 } ] } ]}
Responses
Section titled “ Responses ”OK
object
The reservation prices.
object
Identifier of the reservation within the transaction.
Total price of the reservation.
object
ISO-4217 code of the Currency.
Net value without taxes.
Gross value including all taxes.
The tax values applied.
object
Code corresponding to tax type.
Amount of tax applied.
Information about individual tax amounts.
object
Tax breakdown items per each tax rate applied.
object
Tax rate code for the item. null
for untaxed amounts.
The net value that the tax is calculated from.
The value of the tax.
Total price of the reservation.
object
Example
{ "ReservationPrices": [ { "Identifier": "1234", "Total": { "Currency": "GBP", "NetValue": 20, "GrossValue": 23, "TaxValues": [ { "Code": "UK-S", "Value": 3 } ] } } ]}
Server has successfully fulfilled the request and there is no additional information to send back.
object
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).
object
Error caused by usage of invalid ClientToken, AccessToken, or you may not have the necessary permission to use the endpoint.
object
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.
object
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
object
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.
object
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.