Get all accounting items
POST /api/connector/v1/accountingItems/getAll
Use payments/getAll
or orderItems/getAll
.
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.
Extent of data to be returned. E.g. it is possible to specify that together with the accounting items, credit card transactions should be also returned.
object
Unique identifiers of the Accounting items. Required if no other filter is provided.
Unique identifiers of the Accounting items we are finding rebates for. Required if no other filter is provided.
object
object
object
ISO-4217 code of the Currency the item costs should be converted to.
States the accounting items should be in. If not specified, accounting items in Open or Closed states are returned.
Example
{ "ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D", "AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D", "Client": "Sample Client 1.0.0", "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" }, "ItemIds": [ "cb643cb7-8b6e-48a6-b67e-ad4c0041f550", "44ca12b8-f009-455e-be91-ad4c013fcbc5" ], "Extent": { "OrderItems": true, "PaymentItems": true, "CreditCardTransactions": false }, "States": [ "Open" ]}
Responses
Section titled “ Responses ”OK
object
object
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.
Code of tax exemption reason. Restricted! This property is currently intended for Mews’ internal usage and may be subject to change.
Updated order items (consumed items such as nights or products).
object
Unique identifier of the item.
Unique identifier of the account (for example Customer) the item belongs to.
Unique identifier of the order (or Reservation which is a special type of order) the item belongs to.
Unique identifier of the Bill the item is assigned to.
Unique identifier of the Accounting category the item belongs to.
Unit count of item, i.e. the number of sub-items or units, if applicable.
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.
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.
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.
Revenue type of the item.
Date and time of the item consumption in UTC timezone in ISO 8601 format.
Date and time of the item bill closure in UTC timezone in ISO 8601 format.
Accounting state of the item.
Additional data specific to particular order item.
object
object
object
Updated payment items (such as cash, credit card payments or invoices).
Payment item
object
Unique identifier of the item.
Unique identifier of the account (for example Customer) the item belongs to.
Unique identifier of the Bill the item is assigned to.
Unique identifier of the Accounting category the item belongs to.
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.
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.
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.
Additional notes.
Identifier of the settled payment from the external system (ApplePay/GooglePay).
Date and time of the item consumption in UTC timezone in ISO 8601 format.
Date and time of the item bill closure in UTC timezone in ISO 8601 format.
Accounting state of the item.
Payment state of the item.
Additional data specific to particular payment item.
object
object
object
The credit card payment transactions.
object
Unique identifier of the PaymentItem
.
Identifier of the settlement.
Settlement date and time in UTC timezone in ISO 8601 format.
Transaction fee - this includes an estimate of bank charges.
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.
Transaction fee (adjusted) - this is the final confirmed transaction fee, including confirmed bank charges.
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.
Charged amount of the transaction.
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.
Settled amount of the transaction.
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.
Example
{ "OrderItems": [ { "Id": "6c2897de-620a-4f48-af1e-ada8004202bd", "AccountId": "182a56ee-037d-4da5-b6f8-ada8006e7d5c", "OrderId": "f9090129-fb49-46d2-9dc5-ad9d015d43b9", "BillId": "9e3791dc-95c7-439a-aa8a-ada8007de0ca", "AccountingCategoryId": "d250149e-a29d-4c70-b607-a1759faf7320", "Amount": { "Currency": "GBP", "NetValue": 95.24, "GrossValue": 100, "TaxValues": [ { "Code": "UK-2020-R", "Value": 4.76 } ], "Breakdown": { "Items": [ { "TaxRateCode": "UK-2020-R", "NetValue": 95.24, "TaxValue": 4.76 } ] } }, "RevenueType": "Additional", "ConsumedUtc": "2021-09-19T04:00:20Z", "ClosedUtc": null, "AccountingState": "Open", "Data": { "Discriminator": "CancellationFee", "Value": null } } ], "PaymentItems": []}
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.