Sales, responses and analytics
Every sale and every response in one list, with per-form counts, partial refunds and a beep when money arrives.
Sales
Each row carries the reference code, status, buyer, amount, method and date.
A status is pending, confirmed, failed or refunded. From here you confirm bank transfers, capture or release skip-capture authorisations, refund in full or in part, and export to CSV.
Amounts stay in the currency the sale was recorded in: US$24.90 for a USD sale, RM24.90 for an MYR one.
With a buyer-borne fee the amount column also shows the fee and You receive (total − fee); the drawer breaks it down in that order.
The workspace's current setting never relabels history. GET /v1/rest/sales and list_sales carry it as currency, and a refund is asked for in that same currency.
GET /v1/rest/forms reports the mode as mode.Sale states and the actions they allow
A sale is in one state: pending, authorized, paid, confirmed, refunded, cancelled or failed.
Which action moves it is one table in the API, not a rule per screen, so the dashboard, the API and an agent cannot disagree.
- pay — the gateway reported the purchase paid: pending → paid. A redelivered callback is a no-op, not a second receipt.
- capture — you capture a skip-capture authorisation: pending, authorized, paid or confirmed → paid, and only while the authorisation is uncaptured.
- release — you void the authorisation so the card is never charged: → cancelled, and only while it is uncaptured.
- confirm — you confirm the sale (a bank transfer, or a settled card payment): pending, authorized or paid → confirmed.
- refund — the money goes back: paid or confirmed → refunded once the whole balance is returned. A partial refund keeps the state.
- fail — the payment failed, or the purchase could not be started: pending → failed.
refunded, cancelled and failed are terminal: the only move they accept repeats the event that produced them.
Capture all pending offers exactly the sales a capture accepts — including one you confirmed before its authorisation was captured — and charges only what qualifies.
The dashboard does not guess: available_events on GET /v1/rest/sales lists the actions a sale accepts, each with enabled and a reason when refused.
describe_lifecycle: aggregate: "sales" returns the table, id returns a sale's available_events. Refusals carry lifecycle.illegalTransition or lifecycle.transitionRefused.status: "authorized" is not the authorized field. That field is derived from captured_at — the stored copy is gone; no write path sets the status. The status wins.One list for sales and responses
With no form filter the page is the whole record set: every sale and every response, newest first, under one combined count.
- Filter by a form to see that form's own entries. A response form switches the table to the answer columns.
- Export CSV writes the same rows with the same filters. A combined export adds a record_type column (sale or submission).
- Money columns are total, fee, net, refunded and outstanding, in the sale's own currency. net is total − fee: what you keep.
list_sales and export_sales_csv read the same rows, so the page, the CSV and your agent never disagree.Responses (response-only forms)
Set the form mode to response in the builder: no products, no payment. Entries are stored as responses and still appear on the Sales page.
Open a response form from Forms → Submission to see when each entry arrived, plus the buyer and the answers. The detail drawer holds every field value.
A response has no payment status, so the status filter does not appear. Export CSV, capture and refund are payment-only.
list_form_submissions. list_sales also returns them for a response form's id.Form analytics (the per-form counter)
The dashboard shows one card per form with the number of entries that form recorded, read from the table it writes to.
- Response form: the card says Submissions and counts responses.
- Payment form: the card says Entries and counts sales in every status.
The two tables are never added together, so a form cannot double count.
Beside the count sit Paid+Confirmed, Pending, Failed and revenue net of refunds, labelled in the currency each sale was recorded in.
get_form_analytics reports the same rollup and names the form's mode, so the figure is labelled correctly. GET /v1/rest/dashboard-bundle carries it as form_analytics.Partial refunds
Refund a paid or confirmed sale in full or in part. JomForm records how much was actually returned, in refunded_sen.
A partial refund keeps the status and adds a Partially refunded marker. The balance in outstanding_sen stays refundable until it reaches zero, and only then does the sale read refunded.
The Sales page, get_sales_summary, analytics, the CSV export and refund_sale all report the same refunded and outstanding figures.
Realtime and the order-screen beep
While the page is open it listens to your workspace's realtime stream, so a new sale appears without a refresh. The Live pill shows whether the stream is connected.
The sound switch beside it plays a short beep on each new sale or response. That is what makes an unattended kitchen or counter screen useful.
It is a per-workspace setting, not a browser one: enable it, reload the page, and it is still on.
If saving fails, the switch goes back to its previous position and the failure is shown.
Every workspace starts muted: only the dashboard plays a sound.
sound_enabled in the workspace settings, the set_realtime_sound tool, and Settings → Storefront. get_realtime_status reads sound_enabled and stream_url.