Screens

Every screen below was generated from this object by OODS Foundry 0.19.0, in React and Vue, and shows the calls that made it and its content hash. Each runs as its generated app runs, in this site's brand, Aquex, in the theme you choose, with the sample records this object's own file carries; the lists on its detail screens show related records from the shipped objects' samples, and a generated app copies the other objects' records among them when it is made. A value no record gives shows as a neutral one, such as an empty value or "Not recorded"; OODS Foundry invents none.

React app · sample recordsMaturity: not declaredsha256:ba4733f92038…Open full size: Transaction detail screen generated by OODS Foundry in React
The calls that made the Transaction detail apps, in React and Vue
3 calls, as the pipeline sent them
design_compose {
  "object": "Transaction",
  "context": "detail",
  "preferences": {
    "brand": "Aquex",
    "theme": "light"
  }
}

code_generate {
  "schemaRef": "compose-88a6ece4",
  "framework": "react",
  "profile": "build",
  "options": {
    "output": "application",
    "brand": "Aquex",
    "theme": "light",
    "payloadMode": "file"
  }
}

code_generate {
  "schemaRef": "compose-88a6ece4",
  "framework": "vue",
  "profile": "build",
  "options": {
    "output": "application",
    "brand": "Aquex",
    "theme": "light",
    "payloadMode": "file"
  }
}

The React app's content hash: sha256:ba4733f920386136870cac7ecb1726b0cade62a91c5d49517d6b6af8413c8ee8. Its src/ folder: App.tsx, GeneratedUI.tsx, app.css, main.tsx, oods-brand-aquex.css

The Vue app's content hash: sha256:44a0a300a28b4ab711276addad3dae884f186e4a4ad58ff9abacaea16e5c2f94. Its src/ folder: App.vue, GeneratedUI.vue, app.css, main.ts, oods-brand-aquex.css

Fields

The relationship diagram's key fields count 34 of these 36; they leave out the 2 marked below.

FieldTypeDescription
statusrequired string Canonical lifecycle state derived from the states parameter.
More This is the single source of truth for the entity's current lifecycle position. Consumed by Colorized to resolve visual tokens, and by view extensions to render StatusBadge and StatusTimeline.
state_history StateTransition[] Chronological log of state transitions.
More Each entry records the before/after states, timestamp, and (when governance is enabled) the actor, reason, and transition metadata. Rendered by StatusTimeline in the detail and timeline views. Entry structure: - from: string (previous state) - to: string (new state) - timestamp: ISO 8601 datetime - actor_id: string (user/system who triggered the transition, optional) - reason: string (human-readable justification, required when requireTransitionReason is true) - transition_metadata: Record<string, unknown> (arbitrary context, optional) Every recorded change can name who acted, who it acted for and who approved it. All optional, following Relationship's source_id/source_name pattern; only a *_name names a party, and an entry that names no one renders as it always has: - actor_name: string (who acted, as shown: "Billing Agent") - actor_kind: string (person, agent or system: the Actor trait's kinds) - on_behalf_of_name / on_behalf_of_id: string (the person or organization it acted for) - approved_by_name / approved_by_id: string (who approved the change, when someone did) StatusTimeline then reads "Billing Agent for Tidewater Co-op · approved by Ruth Adeyemi". A change someone approved can also say which approval it belongs to and what level of yes it was. Both optional; the id stays in the record's data, a pointer and not a link, and an entry without them renders as it always has: - approval_id: string (the Approval record the yes is kept in) - approval_level: string (the level of yes, one of the levels the product declares: "approval") StatusTimeline then reads "Billing Agent for Tidewater Co-op · approved by Ruth Adeyemi (level: Approval)". A change made as part of a task can also say which task it was. Both optional; the id stays in the record's data, a pointer and not a link, and an entry without them renders as it always has: - task_id: string (the Task record the change was made under) - task_name: string (the task, as shown: "Get INV-2026-0155 paid") StatusTimeline then reads "… · approved by Ruth Adeyemi (level: Approval) · task: Get INV-2026-0155 paid". A change made under a grant, the standing yes an actor acts under for a person or organization, can also say which grant it was. Both optional; the id stays in the record's data, a pointer and not a link, and an entry without them renders as it always has: - grant_id: string (the Grant record the change was made under) - grant_name: string (the grant, as shown: "Resend returned transfers") StatusTimeline names the grant after any approval and before the task: "Billing Agent for Tidewater Co-op · grant: Resend returned transfers".
allowed_transitions string[] Materialized list of the next states the product allows from the current status, written by the product from the transitionRules parameter.
More When transitionRules is null (open model), this contains all states except the current one. The detail page's StatusTimeline lists it when the record holds it. A generated StatusSelector reads transitionRules instead: it offers the current state and the moves the order allows (every state where no order is declared).
created_atrequired datetime Timestamp recording when the entity was first created.
updated_at datetime Timestamp for the most recent modification, when available.
last_eventrequired string Lifecycle event associated with the most recent timestamp mutation.
last_event_at datetime Timestamp for the lifecycle event captured in last_event.
unit_amount_centsrequired number Base unit price expressed in the smallest currency denomination.
currencyrequired string ISO currency code for the unit amount.
pricing_modelrequired string Monetization model applied to the entity.
billing_interval Unavailable: no view places it, and this object's samples leave it out string Billing cadence when pricing_model indicates recurring revenue.
tax_behaviorrequired string (exclusive, inclusive) Defines whether taxes are included in the displayed price.
cancel_at_period_end Unavailable: no view places it, and this object's samples leave it out boolean Whether cancellation occurs at the natural period end instead of immediately.
More When true the entity is in a REVERSIBLE pending-cancellation state: the schedule can be undone (set back to false) any time before period end, returning the entity to active. This is distinct from a terminal cancellation (a `terminated`/canceled subscription), which is irreversible and non-reactivatable. Mirrors Stripe's cancel_at_period_end flag (docs.stripe.com/billing/subscriptions/cancel).
cancellation_reason string Free-form detail describing why cancellation occurred.
cancellation_reason_code string Structured reason code chosen from the allowedReasons parameter.
cancellation_requested_at datetime Timestamp capturing when the cancellation workflow was initiated.
is_archivedrequired boolean Flag indicating whether the entity is currently archived (soft-deleted).
archived_at datetime? Timestamp for when the entity entered the archived state.
restored_at datetime? Timestamp for when the entity was most recently restored from an archived state.
archive_reason string Human-readable narrative describing why the entity was archived.
archived_by string User ID or system identifier of the actor who archived this entity.
More Set to "system" for automated/policy-driven archival. Supports audit trail queries like "show all entities archived by user X" or "show all auto-archived entities".
archive_metadata object Structured metadata about the archival action for compliance and audit purposes.
More Properties: - method: "manual" | "automated" | "policy" — how the archive was triggered - compliance_tags: string[] — regulatory labels (e.g., ["GDPR", "SOX", "HIPAA"]) - retention_policy_id: string — reference to the retention policy that triggered archival - original_status: string — the Stateful status before archival - related_entity_count: number — count of related entities also archived (cascade)
restoration_metadata object Metadata about the most recent restoration action.
More Properties: - restored_by: string — user ID or "system" - restored_fields: string[] — when partial restore, which fields were restored - restoration_reason: string — why the entity was restored - restored_from_snapshot: boolean — whether restored from a point-in-time snapshot
approval_state string The outcome, worked out by the product from the approvals that still stand and written here.
More Named apart from Stateful's `status`, so a thing keeps its lifecycle and its approval outcome side by side. Read-only: it is shown on the detail page and kept off the form.
approval_summary string One kept line saying what the outcome rests on ("Approved by Ruth Adeyemi · version 3 · 2 Nov"), or why no approval was asked.
More The product writes this line. A payment or article also lists the individual approvals that name it. Read-only.
transaction_idrequired uuid Unique identifier for the transaction record.
user_idrequired uuid Identifier of the user associated with the transaction.
user_name string Display name of the user associated with the transaction.
organization_id uuid Tenant organization responsible for the transaction.
organization_name string Display name of the tenant organization responsible for the transaction.
occurred_atrequired datetime Timestamp when the transaction occurred in the source system.
payment_methodrequired string (card, bank_transfer, digital_wallet, invoice) Funding source used to complete the transaction.
channelrequired string (online, in_app, point_of_sale, partner) Sales channel through which the transaction was initiated.
payment_reference string Provider reference code linking to the payment processor.
description string What the payment was for, as it appears on the customer's statement.
risk_score number Fraud assessment score assigned during authorization.

Traits

Each trait adds fields and behaviour. Every object with the trait gets the same.

Relationships

These arrows show declared relationships between object types. They don't join live records. Its detail screens also list related records, declared on the object as related lists, apart from relationships.

Relationships: Transaction3 object types and 2 declared associations. Arrows point from source to target. Labels state source-relative cardinality and the via field; they do not assert live referential integrity. Transaction to Organization: Tenant organization, many-to-one, via organization_id. Transaction to User: User, many-to-one, via user_id.Tenant organizationmany-to-onevia organization_idUsermany-to-onevia user_idCanonical account record for tenant and workspace governance across the platform.OrganizationTraits: Labelled, Stateful, Ownerable,Timestampable, Taggable, Addressable,Preferenceable, Authable, CommunicableKey fields (6 of 46)organization_id: uuid *label: string *billing_status: string *domain: string *plan_tier: string *billing_contact_email: emailCanonical transaction record tracking monetary movement, lifecycle, and audit metadata.TransactionTraits: Stateful, Timestampable,Priceable, Cancellable, Archivable,ApprovableKey fields (6 of 34)transaction_id: uuid *payment_reference: stringuser_id: uuid *organization_id: uuidchannel: string *occurred_at: datetime *Canonical identity record representing a platform user across lifecycle contexts.UserTraits: Actor, Stateful,Timestampable, Taggable, Addressable,Preferenceable, Authable, CommunicableKey fields (6 of 37)user_id: uuid *name: string *primary_email: email *role: string *description: stringpreferred_name: string

The object file

The Transaction object definition in YAML: objects/core/Transaction.object.yaml
object:
  name: Transaction
  version: 1.4.1
  domain: core.commerce
  description: Canonical transaction record tracking monetary movement, lifecycle, and audit metadata.
  tags:
    - universal
    - transaction
    - commerce

traits:
  - name: lifecycle/Stateful
    parameters:
      states:
        - pending
        - authorized
        - settled
        - failed
        - refunded
        - cancelled
      initialState: pending
  - name: lifecycle/Timestampable
    parameters:
      recordedEvents:
        - initiated
        - authorized
        - settled
        - refunded
        - failed
      timezone: UTC
  - name: financial/Priceable
    parameters:
      supportedCurrencies:
        - USD
        - EUR
        - GBP
        - JPY
        - AUD
      defaultCurrency: USD
      pricingModels:
        - one_time
        - usage_based
      billingIntervals:
        - one_time
      taxBehavior: exclusive
  - name: lifecycle/Cancellable
    parameters:
      allowCancellationAfterStart: false
      cancellationWindowHours: 24
      requireReason: true
      allowedReasons:
        - customer_request
        - suspected_fraud
        - duplicate_charge
        - payment_method_error
  - name: lifecycle/Archivable
    parameters:
      gracePeriodDays: 365
      retainHistory: true
      restoreWindowDays: 30
  # s245-m02: a payment can be approved. Its rule: a resend needs an approval from a person at the customer (an agent's
  # yes satisfies no level here), asked each time unless a person gave it in advance: s248-m02 opens resends to a
  # standing yes under a grant, within the grant's bounds, and the outcome then reads allowed in advance. Only resends
  # are opened, and the sign-off level is never given in advance. Its outcome is written by the product from the
  # Approval records that name it and the grant its resend line names, and kept off the form; OODS Foundry shows it
  # and does not work it out.
  - name: core/Approvable
    alias: PaymentApprovals
    parameters:
      levels:
        - approval
        - sign_off
      levelDefinitions:
        approval:
          who: A person at the customer who may move its money
          permits: The one resend or refund it was asked for
          shown: The amount, the method, the invoice it is for, and anything this resend must do differently
          cost: Money sent twice, or to the wrong place
          act: A deliberate yes or no
          lapses: Once it is used (the resend is sent and recorded, not when the bank answers), or when the amount changes
        sign_off:
          who: The customer's finance lead
          permits: A payment above the customer's own limit
          shown: The amount, the payee and the reason
          cost: A large payment the customer did not mean to make
          act: The most deliberate, with its meaning written down
          lapses: Never for that payment
      requiredLevels:
        resend: approval
      # A resend may be allowed in advance by a standing yes under the payer's grant; the Approval level above still
      # describes the one-time yes asked for a resend.
      inAdvance:
        - resend
      outcomes:
        - not_required
        - waiting
        - approved
        - allowed_in_advance
        - declined
        - out_of_date

schema:
  transaction_id:
    type: uuid
    required: true
    description: Unique identifier for the transaction record.
  user_id:
    type: uuid
    required: true
    description: Identifier of the user associated with the transaction.
  user_name:
    type: string
    required: false
    description: Display name of the user associated with the transaction.
  organization_id:
    type: uuid
    required: false
    description: Tenant organization responsible for the transaction.
  organization_name:
    type: string
    required: false
    description: Display name of the tenant organization responsible for the transaction.
  occurred_at:
    type: datetime
    required: true
    description: Timestamp when the transaction occurred in the source system.
  payment_method:
    type: string
    required: true
    description: Funding source used to complete the transaction.
    validation:
      enum:
        - card
        - bank_transfer
        - digital_wallet
        - invoice
  channel:
    type: string
    required: true
    default: online
    description: Sales channel through which the transaction was initiated.
    validation:
      enum:
        - online
        - in_app
        - point_of_sale
        - partner
  payment_reference:
    type: string
    required: false
    description: Provider reference code linking to the payment processor.
  description:
    type: string
    required: false
    description: What the payment was for, as it appears on the customer's statement.
    validation:
      maxLength: 160
  risk_score:
    type: number
    required: false
    description: Fraud assessment score assigned during authorization.
    validation:
      minimum: 0
      maximum: 100

semantics:
  transaction_id:
    semantic_type: commerce.transaction.id
    token_mapping: tokenMap(commerce.transaction.id)
  user_id:
    semantic_type: identity.user.id
    token_mapping: tokenMap(identity.id.primary)
    ui_hints:
      displayLabelField: user_name
  user_name:
    semantic_type: identity.user.name
    token_mapping: tokenMap(identity.name.primary)
  organization_id:
    semantic_type: organization.id
    token_mapping: tokenMap(organization.id.primary)
    ui_hints:
      displayLabelField: organization_name
  organization_name:
    semantic_type: organization.name
    token_mapping: tokenMap(organization.name.primary)
  # The one-line summary under the payment reference in lists: what the payment was for.
  description:
    semantic_type: text.summary
    token_mapping: tokenMap(commerce.transaction.description)
  occurred_at:
    semantic_type: commerce.transaction.timestamp
    token_mapping: tokenMap(commerce.transaction.timestamp)
  payment_method:
    semantic_type: commerce.payment.method
    token_mapping: tokenMap(commerce.payment.method)
  channel:
    semantic_type: commerce.transaction.channel
    token_mapping: tokenMap(commerce.transaction.channel)
  payment_reference:
    semantic_type: text.label
    token_mapping: tokenMap(commerce.transaction.id)
    ui_hints:
      displayFallbackField: transaction_id
  risk_score:
    semantic_type: risk.transaction.score
    token_mapping: tokenMap(risk.score.primary)

tokens:
  commerce.transaction.id: "var(--text-strong)"
  commerce.transaction.channel.partner: "var(--status-info)"
  risk.score.primary: "var(--status-warning)"

metadata:
  owners:
    - Finance team
    - Risk team
  steward: Platform team
  relatedLists:
    - id: approvals
      label: Approvals for this payment
      empty: No approvals are linked to this payment here.
      sources:
        - { from: Approval, via: subject_id, key: payment_reference, when: { subject_type: Transaction }, row: { line: [{ field: asked_of_name, says: Asked of }], time: due_at } }
    - id: tasks
      label: Tasks about this payment
      empty: No tasks are linked to this payment here.
      sources:
        - { from: Task, via: subject_id, key: payment_reference, when: { subject_type: Transaction }, row: { line: [{ field: asked_of_name, says: Doing it }], time: due_at } }
  changelog:
    - version: 1.4.1
      date: "2026-11-22"
      description: "Names who was asked on approval rows and who does the work on task rows. Empty lists describe linked records."
    - version: 1.4.0
      date: "2026-11-22"
      description: "Lists approvals and tasks that name the payment."
    - version: 1.3.0
      date: "2026-11-14"
      description: A resend may be allowed in advance by a standing yes under a grant, and its outcome then reads allowed in advance; the Billing Agent's resend names the grant it was made under.
    - version: 1.2.2
      date: "2026-11-13"
      description: The Billing Agent's resend names the task it was made under, "Get INV-2026-0155 paid".
    - version: 1.2.1
      date: "2026-11-12"
      description: The approval level says what its shown line carries, anything the resend must do differently included, and when a yes is used.
    - version: 1.2.0
      date: "2026-11-11"
      description: Composes Approvable; a resend needs an approval, and each sample says its outcome. The Billing Agent's resend points at its Approval.
    - version: 1.1.0
      date: "2026-09-20"
      description: Name transactions by the optional payment reference, falling back to transaction_id for display only.
    - version: 1.0.0
      date: "2025-10-16"
      description: Initial Universal Quintet baseline.

# Authored type associations; no record join or referential-integrity claim.
relationships:
  - target: User
    via: user_id
    cardinality: many-to-one
    label: User
  - target: Organization
    via: organization_id
    cardinality: many-to-one
    label: Tenant organization

# Eight authored sample transactions: the sample subscriptions' payments (one a bank transfer still in progress), a
# card-verification hold and a cancelled checkout, each by a sample organization's user. Amounts are stored at Priceable's factor of 100 per currency unit.
# Cancellation is not a recorded event, so the cancelled checkout's last event is its initiation.
samples:
  - payment_reference: PAY-2026-0412
    description: Business plan, Sep 2 to Oct 2
    user_id: 8b2e4d6f-1a3c-4e5b-9d7f-2c4e6a8b0d01
    user_name: Dana Whitfield
    organization_id: 3f1c2a4e-5b6d-4e7f-8a9b-0c1d2e3f4a01
    organization_name: Northwind Traders
    occurred_at: '2026-09-02T15:00:00Z'
    unit_amount_cents: 14900
    currency: USD
    pricing_model: one_time
    payment_method: card
    channel: online
    risk_score: 8
    approval_state: not_required
    approval_summary: 'No approval asked: a card renewal the card issuer authorized'
    status: settled
    state_history:
      - { title: Initiated, from: null, to: pending, at: '2026-09-02T15:00:00Z', reason: Business plan renewal charge }
      - { title: Authorized, from: pending, to: authorized, at: '2026-09-02T15:01:00Z', reason: Approved by the card issuer }
      - { title: Settled, from: authorized, to: settled, at: '2026-09-03T02:00:00Z', reason: Included in the nightly payout }
    cancellation_reason: null
    cancellation_reason_code: null
    cancellation_requested_at: null
    created_at: '2026-09-02T15:00:00Z'
    updated_at: '2026-09-03T02:00:00Z'
    last_event: settled
    last_event_at: '2026-09-03T02:00:00Z'
  - payment_reference: PAY-2026-0388
    description: Upgrade to Business, prorated
    user_id: 8b2e4d6f-1a3c-4e5b-9d7f-2c4e6a8b0d01
    user_name: Dana Whitfield
    organization_id: 3f1c2a4e-5b6d-4e7f-8a9b-0c1d2e3f4a01
    organization_name: Northwind Traders
    occurred_at: '2026-06-16T15:00:00Z'
    unit_amount_cents: 5333
    currency: USD
    pricing_model: one_time
    payment_method: card
    channel: online
    risk_score: 6
    approval_state: not_required
    approval_summary: 'No approval asked: a card upgrade the card issuer authorized'
    status: settled
    state_history:
      - { title: Initiated, from: null, to: pending, at: '2026-06-16T15:00:00Z', reason: Prorated charge for the upgrade to Business }
      - { title: Authorized, from: pending, to: authorized, at: '2026-06-16T15:01:00Z', reason: Approved by the card issuer }
      - { title: Settled, from: authorized, to: settled, at: '2026-06-17T02:00:00Z', reason: Included in the nightly payout }
    cancellation_reason: null
    cancellation_reason_code: null
    cancellation_requested_at: null
    created_at: '2026-06-16T15:00:00Z'
    updated_at: '2026-06-17T02:00:00Z'
    last_event: settled
    last_event_at: '2026-06-17T02:00:00Z'
  - payment_reference: PAY-2026-0429
    description: Enterprise renewal, 2026 to 2027
    user_id: 8b2e4d6f-1a3c-4e5b-9d7f-2c4e6a8b0d02
    user_name: Ruth Adeyemi
    organization_id: 3f1c2a4e-5b6d-4e7f-8a9b-0c1d2e3f4a05
    organization_name: Tidewater Co-op
    occurred_at: '2026-09-24T21:00:00Z'
    unit_amount_cents: 1200000
    currency: USD
    pricing_model: one_time
    payment_method: bank_transfer
    channel: online
    risk_score: 3
    approval_state: approved
    approval_summary: Resend approved by Ruth Adeyemi on 28 Sep, used once
    status: pending
    state_history:
      - { title: Initiated, from: null, to: pending, at: '2026-09-24T21:00:00Z', reason: Bank transfer sent for INV-2026-0155 }
      - { title: Returned, from: pending, to: failed, at: '2026-09-25T02:00:00Z', reason: The reference had no invoice number }
      - { title: Sent again, from: failed, to: pending, at: '2026-09-28T21:00:00Z', reason: Sent again with the invoice number, actor_id: 6a1e2b3c-4d5e-4f60-8a7b-9c0d1e2f3a01, actor_name: Billing Agent, actor_kind: agent, on_behalf_of_id: 3f1c2a4e-5b6d-4e7f-8a9b-0c1d2e3f4a05, on_behalf_of_name: Tidewater Co-op, approved_by_id: 8b2e4d6f-1a3c-4e5b-9d7f-2c4e6a8b0d02, approved_by_name: Ruth Adeyemi, approval_id: 7b3d5f9a-1c2e-4a6b-8d0f-2e4a6c8e0a01, approval_level: approval, grant_id: 4d7a9c2e-1b3f-4e6a-9c8d-5e2f7a1b3c01, grant_name: Tidewater invoices and payments, task_id: 5c2e8a1d-3f4b-4c6d-9e0a-1b2c3d4e5f01, task_name: Get INV-2026-0155 paid }
    cancellation_reason: null
    cancellation_reason_code: null
    cancellation_requested_at: null
    created_at: '2026-09-24T21:00:00Z'
    updated_at: '2026-09-28T21:00:00Z'
    last_event: initiated
    last_event_at: '2026-09-28T21:00:00Z'
  - payment_reference: PAY-2026-0395
    description: Starter plan, charged twice in August
    user_id: 8b2e4d6f-1a3c-4e5b-9d7f-2c4e6a8b0d04
    user_name: Tomas Lindqvist
    organization_id: 3f1c2a4e-5b6d-4e7f-8a9b-0c1d2e3f4a03
    organization_name: Lindqvist Bakery
    occurred_at: '2026-08-16T08:00:00Z'
    unit_amount_cents: 1900
    currency: EUR
    pricing_model: one_time
    payment_method: card
    channel: online
    risk_score: 11
    approval_state: not_required
    approval_summary: 'No approval asked: a card renewal the card issuer authorized'
    status: refunded
    state_history:
      - { title: Initiated, from: null, to: pending, at: '2026-08-16T08:00:00Z', reason: August renewal charged a second time }
      - { title: Authorized, from: pending, to: authorized, at: '2026-08-16T08:01:00Z', reason: Approved by the card issuer }
      - { title: Settled, from: authorized, to: settled, at: '2026-08-17T02:00:00Z', reason: Included in the nightly payout }
      - { title: Refunded, from: settled, to: refunded, at: '2026-08-19T11:30:00Z', reason: Duplicate charge refunded in full }
    cancellation_reason: null
    cancellation_reason_code: null
    cancellation_requested_at: null
    created_at: '2026-08-16T08:00:00Z'
    updated_at: '2026-08-19T11:30:00Z'
    last_event: refunded
    last_event_at: '2026-08-19T11:30:00Z'
  - payment_reference: PAY-2026-0409
    description: Team plan, Sep 3 to Oct 3
    user_id: 8b2e4d6f-1a3c-4e5b-9d7f-2c4e6a8b0d05
    user_name: Grace Okafor
    organization_id: 3f1c2a4e-5b6d-4e7f-8a9b-0c1d2e3f4a04
    organization_name: Kestrel Print Co.
    occurred_at: '2026-09-03T10:00:00Z'
    unit_amount_cents: 4900
    currency: GBP
    pricing_model: one_time
    payment_method: card
    channel: online
    risk_score: 64
    approval_state: not_required
    approval_summary: 'No approval asked: a card renewal the card issuer declined'
    status: failed
    state_history:
      - { title: Initiated, from: null, to: pending, at: '2026-09-03T10:00:00Z', reason: Team plan renewal charge }
      - { title: Failed, from: pending, to: failed, at: '2026-09-03T10:01:00Z', reason: Card declined by the issuer }
    cancellation_reason: null
    cancellation_reason_code: null
    cancellation_requested_at: null
    created_at: '2026-09-03T10:00:00Z'
    updated_at: '2026-09-03T10:01:00Z'
    last_event: failed
    last_event_at: '2026-09-03T10:01:00Z'
  - payment_reference: PAY-2026-0425
    description: Card check before the Team trial
    user_id: 8b2e4d6f-1a3c-4e5b-9d7f-2c4e6a8b0d03
    user_name: Priya Raman
    organization_id: 3f1c2a4e-5b6d-4e7f-8a9b-0c1d2e3f4a02
    organization_name: Blue Harbor Studio
    occurred_at: '2026-09-21T08:58:00Z'
    unit_amount_cents: 100
    currency: USD
    pricing_model: one_time
    payment_method: card
    channel: in_app
    risk_score: 9
    approval_state: not_required
    approval_summary: 'No approval asked: a card check the card issuer authorized'
    status: authorized
    state_history:
      - { title: Initiated, from: null, to: pending, at: '2026-09-21T08:58:00Z', reason: Card check before the Team trial }
      - { title: Authorized, from: pending, to: authorized, at: '2026-09-21T08:58:30Z', reason: Hold approved; it is released without capture }
    cancellation_reason: null
    cancellation_reason_code: null
    cancellation_requested_at: null
    created_at: '2026-09-21T08:58:00Z'
    updated_at: '2026-09-21T08:58:30Z'
    last_event: authorized
    last_event_at: '2026-09-21T08:58:30Z'
  - payment_reference: PAY-2026-0417
    description: Starter plan, Sep 15 to Oct 15
    user_id: 8b2e4d6f-1a3c-4e5b-9d7f-2c4e6a8b0d04
    user_name: Tomas Lindqvist
    organization_id: 3f1c2a4e-5b6d-4e7f-8a9b-0c1d2e3f4a03
    organization_name: Lindqvist Bakery
    occurred_at: '2026-09-15T08:00:00Z'
    unit_amount_cents: 1900
    currency: EUR
    pricing_model: one_time
    payment_method: card
    channel: online
    risk_score: 4
    approval_state: not_required
    approval_summary: 'No approval asked: a card renewal the card issuer authorized'
    status: settled
    state_history:
      - { title: Initiated, from: null, to: pending, at: '2026-09-15T08:00:00Z', reason: Starter plan renewal charge }
      - { title: Authorized, from: pending, to: authorized, at: '2026-09-15T08:01:00Z', reason: Approved by the card issuer }
      - { title: Settled, from: authorized, to: settled, at: '2026-09-16T02:00:00Z', reason: Included in the nightly payout }
    cancellation_reason: null
    cancellation_reason_code: null
    cancellation_requested_at: null
    created_at: '2026-09-15T08:00:00Z'
    updated_at: '2026-09-16T02:00:00Z'
    last_event: settled
    last_event_at: '2026-09-16T02:00:00Z'
  - payment_reference: PAY-2026-0404
    description: Team plan purchase at trial end
    user_id: 8b2e4d6f-1a3c-4e5b-9d7f-2c4e6a8b0d09
    user_name: Helen Rowe
    organization_id: 3f1c2a4e-5b6d-4e7f-8a9b-0c1d2e3f4a08
    organization_name: Gale & Rowe Legal
    occurred_at: '2026-09-08T12:50:00Z'
    unit_amount_cents: 4900
    currency: USD
    pricing_model: one_time
    payment_method: card
    channel: online
    risk_score: 12
    approval_state: not_required
    approval_summary: 'No approval asked: the customer''s own checkout, cancelled before capture'
    status: cancelled
    state_history:
      - { title: Initiated, from: null, to: pending, at: '2026-09-08T12:50:00Z', reason: Team plan checkout at the end of the trial }
      - { title: Cancelled, from: pending, to: cancelled, at: '2026-09-08T12:58:00Z', reason: Customer cancelled before capture }
    cancellation_reason: Customer cancelled the Team plan purchase before capture
    cancellation_reason_code: customer_request
    cancellation_requested_at: '2026-09-08T12:58:00Z'
    created_at: '2026-09-08T12:50:00Z'
    updated_at: '2026-09-08T12:58:00Z'
    last_event: initiated
    last_event_at: '2026-09-08T12:50:00Z'