Orders
Add order
Creates a new order, with the specified products and items. If the time of consumption is specified, it 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 Portfolio Access Tokens.
Request
[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.
Product order parameters
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
Item parameters
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
Response
OrderId
string
required
Unique identifier of the created order.
Last updated
Was this helpful?