Summarize money collected at a venue by method

Changed on

Returns, per currency, the money collected, refunded and retained at the venue over dateRange, broken down by payment type and method, plus tips by receipt method. dateRange is an inclusive pair of venue-local calendar dates resolved in the venue's time zone: payments count by when they were received, refunds and tips by their posting date. An imported Fortis payment counts when its sale's accepted source payment parts proved full settlement (the latest acceptance, so every tender of a split sale shares that date), never its import time or the sale's paidAt; imported collections without that evidence, and refunds with no posting date, are reported separately as undated amounts, in total and by method in undatedMethods, and are not limited by the range. Undated means no proven date, not unpaid. It reads every matching order with no row cap and is cash collected, not recognized revenue; use query_financial_sales for sales. A caller with order:readAllShifts may omit shiftId to read every shift or name one; any other caller must name a shift they actively take part in (BAD_REQUEST when omitted, FORBIDDEN otherwise). A shift-scoped read counts only orders carrying that shift. Refused with FORBIDDEN as paywallLocked when the caller is an Owner or Manager of a business the merchant Paywall locks: one with no verified subscription that has taken 5 orders while the Paywall's rollout reaches it, an order counting from its first saved line, whether or not it is paid or completed, until it is archived or cancelled before activation. Nothing is read or written; a verified subscription lifts the lock.

post/api/public/v1/orders/collections

Request

  • Base URL
    https://app.fortuneos.ai
  • Auth
    none declared

Request body

object required
locationId, string required
shiftId, string
dateRange, object required

Response

OK

object[] required
collectedCents, integer required
refundedCents, integer required
retainedCents, integer required
currency, string required
undatedRefundCents, integer required
undatedCollectionCents, integer required
undatedMethods, object[] required
methods, object[] required
tips, object[] required

Changes

    • warning

      added the new geidea enum value to the items/tips/items/receiptMethod/anyOf[subschema #1]/anyOf[subschema #2]/anyOf[subschema #1] response property for the response status

    • info

      added the required property items/undatedMethods to the response with the status