Arrows to move, Enter to openSee all results →

Standards / commerce@1

PublishedVersion 1.1.02026-12-02MITDeveloper reference

commerce@1 orders, refunds and tax, ticket sales, point-of-sale summaries, supplier costs and partnerships

A connector writes the grains present in its source. A board can read just the tables it needs, leaving the other tables empty. Order-level exports, summarized POS reports, affiliate reports and supplier invoices are kept at their own grain, without creating synthetic orders or adding overlapping totals. Subscription state and invoice receivables belong to billing@1.

Tables184 requiredFields193no viewsVocabularies9shared word listsDashboards0read it
JSON Schema/spec/commerce/1.1.0/commerce@1.schema.jsonSQL tables (SQLite)/spec/commerce/1.1.0/schema.sqlREADME/spec/commerce/1.1.0/README.mdChangelog/spec/commerce/CHANGELOG.md

Check a database or a board against it: dashremix spec check. Start a new board on it: dashremix new <id> --schema commerce@1. Hash 7963278a44fc91bc…

Dashboards that read it

No board in the catalog reads it yet.

Tables and fields

Required tables must exist in every database that says it follows commerce@1; required fields must be filled. Columns a board adds start with x_.

metarequired table

Database metadata. See standard.json for required keys.

FieldTypeRequiredMeaning
keyTEXTyesmetadata key, e.g. base_currency
valueTEXTnotext value

channels

One channel within a merchant account, including an offline register or ticket outlet.

FieldTypeRequiredMeaning
channel_idTEXTyesstable namespaced id
nameTEXTyesdisplay label, e.g. Lobby box office
kindTEXTchannel_kindsyeschannel_kinds vocabulary
sourceTEXTyesconnector id
source_refTEXTyesexport location or source object id
imported_atTEXTinstantyesUTC import instant
confidenceTEXTconfidencenoconfidence vocabulary, only when inferred

products

One product, ticket class, or POS item from the merchant's catalogue.

FieldTypeRequiredMeaning
product_idTEXTyesstable namespaced product or variant id
nameTEXTyesdisplay label, e.g. Ceramic cup
skuTEXTnomerchant's published item code
categoryTEXTnosource category, if provided
sourceTEXTyesconnector id
source_refTEXTyesexport location or source object id
imported_atTEXTinstantyesUTC import instant
confidenceTEXTconfidencenoconfidence vocabulary, only when inferred

events

One ticketed event or performance. Every separately sold occurrence has its own event id.

FieldTypeRequiredMeaning
event_idTEXTyesstable namespaced id
nameTEXTyesevent label, e.g. Paper Lantern Night
starts_atTEXTinstantyesUTC start instant
tzTEXTyesIANA time zone of the event
capacityINTEGERnosellable admission count, when declared
sourceTEXTyesconnector id
source_refTEXTyesexport location or source object id
imported_atTEXTinstantyesUTC import instant
confidenceTEXTconfidencenoconfidence vocabulary, only when inferred

orders

One merchant order at its original value, before refunds.

FieldTypeRequiredMeaning
order_idTEXTyesstable merchant-scoped id
channel_idTEXTyessales channel, including an explicitly unknown channel
customer_idTEXTnoopaque merchant-scoped buyer id, when repeat buyers can be identified
ordered_onTEXTdateyesmerchant-local order day
ordered_atTEXTinstantnoUTC order instant when available
tzTEXTnoIANA time zone used for ordered_on, when available
ship_countryTEXTcountrynoISO 3166-1 alpha-2 country the order shipped to (or was collected in), when the export gives it (1.1)
ship_regionTEXTnoISO 3166-2 subdivision code without the country prefix (CA, ON, NSW), when given; the tax jurisdiction a sales-tax board groups by (1.1)
statusTEXTorder_statusyesorder_status vocabulary
currencyTEXTcurrencyyesISO 4217 of every amount on this row
gross_amountREALyesmerchandise amount before discounts, shipping and tax
discount_amountREALyesreduction in merchandise price
shipping_amountREALyesshipping charged, excluding tax
tax_amountREALyestotal tax charged, including shipping tax where applicable
total_amountREALyesgross minus discount plus shipping and tax
sourceTEXTyesconnector id
source_refTEXTyesexport location or source object id
imported_atTEXTinstantyesUTC import instant
confidenceTEXTconfidencenoconfidence vocabulary, only when inferred

order_lines

One merchandise line on an order. A ticket line links to its event; other lines leave event_id empty.

FieldTypeRequiredMeaning
line_idTEXTyesstable namespaced id
order_idTEXTyesoriginal order id
product_idTEXTnoknown product or ticket class
event_idTEXTnoticketed occurrence
quantityREALyessold quantity; fractional quantities are valid for weighed goods
currencyTEXTcurrencyyesISO 4217, same as the order
gross_amountREALyesline amount before discounts and tax
discount_amountREALyesdiscount allocated to this line, including order-level discounts if allocated
sourceTEXTyesconnector id
source_refTEXTyesexport location or source object id
imported_atTEXTinstantyesUTC import instant
confidenceTEXTconfidencenoconfidence vocabulary, only when inferred

refunds

One non-overlapping amount refunded. An export can contain order-level rows, item allocations or both at distinct grains.

FieldTypeRequiredMeaning
refund_idTEXTyesstable refund id or refund-allocation id
order_idTEXTyesoriginal order id
line_idTEXTnorefunded item where known
refunded_onTEXTdateyesmerchant-local effective refund day
quantityREALnorefunded item units if the source reports them
currencyTEXTcurrencyyesISO 4217, same as the order
merchandise_amountREALyesrefunded merchandise after applicable discounts
shipping_amountREALyesrefunded shipping, excluding tax
tax_amountREALyestax returned to the buyer
total_amountREALyesmerchandise plus shipping and tax
sourceTEXTyesconnector id
source_refTEXTyesexport location or source object id
imported_atTEXTinstantyesUTC import instant
confidenceTEXTconfidencenoconfidence vocabulary, only when inferred

order_taxes

One tax component by jurisdiction on an order or refund, where the source breaks it out.

FieldTypeRequiredMeaning
tax_idTEXTyesstable namespaced tax component id
order_idTEXTyesoriginal order id
refund_idTEXTnotax returned; NULL means tax charged on sale
jurisdictionTEXTyessource tax jurisdiction code or stable mapped label
tax_kindTEXTtax_kindsyestax_kinds vocabulary
rateREALnoapplied share as a decimal, e.g. 0.075
taxable_amountREALnoreported taxable basis for this component, including a zero basis
currencyTEXTcurrencyyesISO 4217, same as the order
tax_amountREALyesnonnegative collected or returned component
sourceTEXTyesconnector id
source_refTEXTyesexport location or source object id
imported_atTEXTinstantyesUTC import instant
confidenceTEXTconfidencenoconfidence vocabulary, only when inferred

event_sales_targets

One planned end-of-day cumulative ticket target for an event.

FieldTypeRequiredMeaning
target_idTEXTyesstable id derived from event and target day
event_idTEXTyestarget event
target_onTEXTdateyesdate in events.tz
tickets_targetINTEGERyesdesired cumulative net tickets by end of day
sourceTEXTyesconnector id
source_refTEXTyesexport location or source object id
imported_atTEXTinstantyesUTC import instant
confidenceTEXTconfidencenoconfidence vocabulary, only when inferred

pos_daily

One non-overlapping daily or daypart POS summary for a channel, with no synthetic order rows.

FieldTypeRequiredMeaning
summary_idTEXTyesstable namespaced id
channel_idTEXTyesreporting location or register
sold_onTEXTdateyeslocal business date of the shift
daypartTEXTdaypartsyesdayparts vocabulary
coversINTEGERnoguests seated; NULL if unavailable
checksINTEGERnoclosed checks; NULL if unavailable
currencyTEXTcurrencyyesISO 4217 of every amount on this row
gross_amountREALyesmerchandise sales before discounts/refunds, excluding tax
discount_amountREALyesdiscounts applied
refund_amountREALyesmerchandise refunds recorded that day or daypart
net_amountREALyesgross minus discounts and refunds, possibly negative
sourceTEXTyesconnector id
source_refTEXTyesexport location or source object id
imported_atTEXTinstantyesUTC import instant
confidenceTEXTconfidencenoconfidence vocabulary, only when inferred

supplier_invoice_lines

One supplier invoice or supplier credit line for food and other inventory costs.

FieldTypeRequiredMeaning
line_idTEXTyesstable namespaced source invoice line id
invoice_idTEXTyesmerchant-scoped source supplier invoice id
supplier_idTEXTyesopaque supplier id in this merchant's account
issued_onTEXTdateyessupplier invoice date
item_idTEXTnoopaque supplier item id, when available
item_nameTEXTyesproduct display label
categoryTEXTnoexplicit category, e.g. food or beverages
kindTEXTsupplier_line_kindsyessupplier_line_kinds vocabulary
quantityREALnopositive billed or credited units when available
unitTEXTnounit of quantity, e.g. kg or each
currencyTEXTcurrencyyesISO 4217 of the amount
amountREALyescost or returned cost excluding tax; credits subtract
sourceTEXTyesconnector id
source_refTEXTyesexport location or source object id
imported_atTEXTinstantyesUTC import instant
confidenceTEXTconfidencenoconfidence vocabulary, only when inferred

affiliate_daily

One reported day and partner commission bucket. Buckets on a day have disjoint source attribution.

FieldTypeRequiredMeaning
activity_idTEXTyesstable namespaced id
partner_idTEXTyesopaque affiliate partner or program id
partner_nameTEXTnodisplay label, when reported
activity_onTEXTdateyesconversion or reporting date stated in the export
statusTEXTaffiliate_statusyesaffiliate_status vocabulary
payout_idTEXTnoopaque payout reference when one is reported
clicksINTEGERnoattributed clicks if reported for this bucket
conversionsINTEGERnoattributed conversions if reported for this bucket
currencyTEXTcurrencyyesISO 4217 of the commission
commission_amountREALyescommission amount; reversed buckets subtract
sourceTEXTyesconnector id
source_refTEXTyesexport location or source object id
imported_atTEXTinstantyesUTC import instant
confidenceTEXTconfidencenoconfidence vocabulary, only when inferred

sponsorship_deals

One booked creator sponsorship deal; split distinct campaign bookings into separate rows.

FieldTypeRequiredMeaning
deal_idTEXTyesstable namespaced deal id
sponsor_idTEXTyesopaque sponsor id
sponsor_nameTEXTnocompany display label, when reported
campaignTEXTyesdeal or placement label
booked_onTEXTdateyesdate agreement was booked
due_onTEXTdatenoagreed delivery day, when known
delivered_onTEXTdatenodate final contracted delivery was completed
statusTEXTsponsorship_statusyessponsorship_status vocabulary
currencyTEXTcurrencyyesISO 4217 of booked_amount
booked_amountREALyescontracted amount excluding tax
sourceTEXTyesconnector id
source_refTEXTyesexport location or source object id
imported_atTEXTinstantyesUTC import instant
confidenceTEXTconfidencenoconfidence vocabulary, only when inferred

sponsorship_payouts

One payment applied to a sponsorship. A payment split across deals has one row per allocation.

FieldTypeRequiredMeaning
payment_idTEXTyesstable namespaced payment or allocation id
deal_idTEXTyespaid sponsorship
received_onTEXTdateyeslocal settlement day
currencyTEXTcurrencyyesISO 4217, same as the deal
amountREALyesreceived revenue applied to the deal, excluding tax
sourceTEXTyesconnector id
source_refTEXTyesexport location or source object id
imported_atTEXTinstantyesUTC import instant
confidenceTEXTconfidencenoconfidence vocabulary, only when inferred

import_issues

Connector accounting or unresolved rows recorded for the board's to-review page.

FieldTypeRequiredMeaning
issue_idTEXTyesstable namespaced issue id
severityTEXTseveritiesyesseverities vocabulary
codeTEXTyesconnector's stable issue kind
detailTEXTyesexplanation without private row content
sourceTEXTyesconnector id
source_refTEXTyesexport location or source object id
imported_atTEXTinstantyesUTC import instant
confidenceTEXTconfidencenoconfidence vocabulary, only when inferred

overridesrequired table

Local corrections to source data, with the reason and evidence kept.

FieldTypeRequiredMeaning
override_idTEXTyesstable id
targetTEXTyestable.key.column the override applies to
fieldTEXTnocolumn name
old_valueTEXTnovalue before
new_valueTEXTnovalue after
reasonTEXTyeswhy, in the person's words
evidenceTEXTnowhere it comes from
authorTEXTnoperson or assistant
created_atTEXTnoISO 8601 instant

annotationsrequired table

Notes on metrics and pages (platform table). Numbers only through {{metric:...}} placeholders.

FieldTypeRequiredMeaning
annotation_idTEXTyesstable id
targetTEXTyesmetric id or page id
kindTEXTyesnote | caveat | flag | decision | open_item
bodyTEXTyesthe note text
authorTEXTnoperson or assistant
source_refTEXTnowhere it came from
created_atTEXTnoISO 8601 instant
data_hashTEXTnohash of the cited metric values when written (stale when they change)
statusTEXTnoactive | stale | retired

metric_registryrequired table

The board's metrics, installed from metrics.sql by the importer (platform table).

FieldTypeRequiredMeaning
metric_idTEXTyese.g. kpi.mrr
versionINTEGERnothe metric's own version
unitTEXTnousd | rows | pct | date | count ...
paramsTEXTnocomma list of parameters it honours
descriptionTEXTnothe @desc line
sqlTEXTnoexpanded SQL
testTEXTnothe @test line (check that covers it)

Vocabularies

Shared word lists, so every board and connector means the same thing by the same word.

affiliate_status5 values

pending · approved · paid · reversed · unknown

channel_kinds6 values

online_store · marketplace · pos · ticketing · direct · unknown

confidence4 values

rule · default · detected · manual

dayparts7 values

all_day · breakfast · lunch · afternoon · dinner · late_night · other

order_status4 values

pending · completed · cancelled · unknown

severities3 values

info · warn · error

sponsorship_status3 values

booked · delivered · cancelled

supplier_line_kinds2 values

purchase · credit

tax_kinds5 values

sales_tax · vat · gst · other · unknown

Changelog

1.1.0 (2026-12-02)

  • Minor. Optional orders.ship_country (ISO 3166-1 alpha-2) and orders.ship_region (ISO 3166-2 subdivision) so Sales
  • Tax / VAT can group sales by jurisdiction; NULL means the place is unknown, never inferred. standard.json lists the
  • planned boards that read the standard. Conformance tests cover every fail check with invalid data.

1.0.0 (2026-12-02)

  • Initial commerce@1 release. Defines merchant orders, items, returns, jurisdictional tax, ticket events and
  • targets, POS summaries, supplier invoice costs, affiliate activity, and sponsorship deals and receipts.

Other standards