TransactionsService
Available as client.transactions. Transaction creation and query payloads carry workspace scope; entity-ID operations resolve the workspace server-side.
| Method | Purpose |
|---|---|
create(data) | Create a transaction; data.workspace_id is required |
get(id) | Get a transaction |
update(id, data) | Update a transaction |
assignClient(request) | Assign a client to transactions in bulk |
list(query) | List transactions; query.workspace_id is required |
aggregate(query) | Aggregate transactions |
getAov(query) | Calculate average order value |
getMix(query) | Calculate transaction mix |
getAovByTier(query) | Calculate average order value by tier |
deleteBatch(ids, workspaceId) | Delete a workspace-scoped batch |
getSources(workspaceId) | List distinct sources |
getLocations(workspaceId) | List distinct locations |