POS sales

An in-store sale at a register, with its lines, payments, stock issue, and customer invoice.

Fields

The API name is what the API, MCP and the CLI use.

NameAPI nameTypeRequiredDescription
IDidRecord IDYes
NamelabelText
Sale numberuidTextThe number is a human-readable, unique identifier for the record.
DaydateDateYesCalendar date for this value.
Register sessionstorecashregistersessionIdReferenceYes
InvoicefinancesinvoiceIdReference
CustomercustomerIdReferenceYes
UseruserIdUser
POS terminalposterminalIdReferenceYes
POS sale claimstorepossaleclaimIdReference
Price basispriceBasisConstantYesWhether unit prices include tax (gross) or exclude tax (net).
Amount paidamountPaidUnit priceYesAmount in the document or line currency.
SubtotalsubtotalUnit priceYesSum of line amounts before tax and withholding on this document.
Fiscal compliancetaxUnit priceYesTax amount for this scope, in document currency, from the configured tax engine.
WithholdingwithholdingUnit priceYesWithholding tax amount retained on this scope, in document currency.
TotaltotalUnit priceYesDocument total after discounts, tax, and withholding in document currency.
TagstagIdsTags
DescriptiondescriptionText Area
DatadataData
Created bycreatedByUser
Created atcreatedAtDate and TimeYes
Updated byupdatedByUser
Updated atupdatedAtDate and TimeYes
Processed byprocessedByUser
Processed atprocessedAtDate and Time
Sent bysentByUser
Sent atsentAtDate and Time
Canceled bycanceledByUser
Canceled atcanceledAtDate and Time
Blocked byblockedByUser
Blocked atblockedAtDate and Time
Archived byarchivedByUser
Archived atarchivedAtDate and Time

Relations

Owned records (solid line) are deleted with their owner. Grouped records (dashed line) can exist alone.

FieldPoints toKind
Register session storecashregistersessionIdRegister sessionsreference
Invoice financesinvoiceIdInvoicesreference
Customer customerIdCustomersreference
User userIdUsersreference
POS terminal posterminalIdPOS terminalsreference
POS sale claim storepossaleclaimIdPOS sale claimsreference
Tags tagIdsTagsreference

Actions

What you can do with a record. Every action also sends the webhook event storepossales.<action>. Reads (find, get, count) work on every table.

NameAPI nameDescriptionWhere
CreatecreateAdd a new sale.App · API · MCP · CLI
EditupdateSave changes to this sale.App · API · MCP · CLI
SendsendSend this sale to the customer.App · API · MCP · CLI
ProcessprocessPost this sale. You cannot undo it.App · API · MCP · CLI
CancelcancelReverse the posted effect of this sale.App · API · MCP · CLI
BlockblockStop edits and deletion of this sale. It stays visible and can still appear on existing documents. Unblock to edit again.App · API · MCP · CLI
UnblockunblockAllow edits and deletion of this sale again.App · API · MCP · CLI
ArchivearchiveRetire this sale from daily use. It leaves active lists and pickers, and most actions stop. Unarchive to restore it.App · API · MCP · CLI
RestoreunarchiveReturn this sale to active lists and actions.App · API · MCP · CLI
DeletedeleteDelete this sale and the data that belongs with it. This cannot be undone.App · API · CLI

States

How a record moves from state to state. Archive and block can happen in any state.

ProcessSendCancelCancelCreatedProcessedSent · ProcessedProcessed · CanceledSent · Processed ·Canceled