Accounting Item - Reservation relationship
You have an API endpoint https://mews-systems.gitbook.io/connector-api/operations/finance#get-all-accounting-items
Returned Accounting Item data has OrderId field:
Unique identifier of the order (or Reservation which is a special type of order) the item belongs to.
Can you add ReservationId field into Accounting Item?
The problem is that we can't know if an accounting item belongs to any specific reservation or not.
I tried to collect unique OrderId values from the list of accounting items and next fetch reservations with ReservationIds filter (to see if we have a reservation with Id same as OrderId), but if I pass non-reservation ID - I see the error "Invalid ReservationIds". So, this will not work.
It's the problem for our app because we need to understand if an accounting item belongs to a specific reservation or not.
Adding ReservationId field into Accounting item will solve this issue: if ReservationId is empty - the item belongs to order.
Otherwise, ReservationId has Id of reservation ( ReservationId equals to Orderid).
Hello from the Mews product team. Unfortunately, this request has not received the necessary upvotes to be added to the Mews development roadmap and is unlikely to be delivered. Thank you for sharing your suggestions.