Orders
Last updated
Was this helpful?
Last updated
Was this helpful?
Creates a new order, with the specified products and items. If the product being posted already exists in Mews, then use . If the product does not exist in Mews, then use . If the time of consumption is specified, this must be either in the future or within the Editable History Interval for the enterprise. Compared to a stay service order (i.e. a reservation), which is consumed over certain span of time, a product service order is consumed at a single point in time. Note this operation supports .
Linking orders to reservationsSpecify parameter
LinkedReservationId
in order to link the order to a guest reservation. This will greatly assist the property when using billing automation.
[PlatformAddress]/api/connector/v1/orders/add
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.
EnterpriseId
string
optional
CustomerId
string
required
AccountId
string
required
ServiceId
string
required
BillId
string
optional
LinkedReservationId
string
optional
ConsumptionUtc
string
optional
Notes
string
optional
Additional notes of the order.
ProductOrders
optional
Parameters of the ordered products.
Items
optional
Parameters of the ordered custom items.
ProductId
string
required
Count
number
optional
Count of products to be ordered, e.g. 10 in case of 10 beers.
UnitAmount
optional
Unit amount of the product that overrides the amount defined in Mews.
StartUtc
string
optional
EndUtc
string
optional
Name
string
required
Name of the item.
UnitCount
number
required
Count of units to be ordered, e.g. 10 in case of 10 beers.
UnitAmount
required
Unit amount, e.g. amount for one beer (note that total amount of the item is therefore UnitAmount
times UnitCount
).
AccountingCategoryId
string
optional
OrderId
string
required
Unique identifier of the created order.
Unique identifier of the . Required when using a , ignored otherwise.
Identifier of the to be charged. Deprecated!
Identifier of the or to be charged. Company billing may not be enabled for your integration.
Identifier of the to be ordered.
Identifier of the to which the created order will be assigned. The bill needs to be issued to the same account as the order.
Identifier of the to which the created order will be linked.
Date and time of the order consumption in UTC timezone in ISO 8601 format. If not specified, current date and time is used. Please note, as order consumption is one-time event, the optional parameters StartUtc
and EndUtc
in should not be used.
array of
array of
Unique identifier of the to be ordered.
Product start in UTC timezone in ISO 8601 format. For products with charging Once
and PerPerson
must be set to same value as EndUtc
. Use only with operation or , can be omitted for operation.
Product end in UTC timezone in ISO 8601 format. For products with charging Once
and PerPerson
must be set to same value as StartUtc
. Use only with operation or , can be omitted for operation.
Unique identifier of an to be assigned to the item.