> ## Documentation Index
> Fetch the complete documentation index at: https://docs.centsless.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a transaction



## OpenAPI

````yaml /openapi.yaml get /transaction/{id}
openapi: 3.0.3
info:
  title: Centsless Decision and Evidence Engine API
  version: 3.8.1
  description: >
    Jurisdiction-aware cash rounding compliance for point of sale.


    The engine resolves where a sale happened, finds the rule that governs it on
    that date,

    rounds the cash total by the method the rule prescribes, and seals the
    decision and its

    statutory basis into a tamper-evident hash chain.


    Amounts are integers in cents unless a field says otherwise. Timestamps are
    ISO 8601;

    send the terminal's own UTC offset. Authentication is an API key in the
    `x-api-key` header.
  contact:
    name: Centsless developer support
    email: developers@centsless.org
    url: https://www.centsless.org
  license:
    name: Proprietary
    url: https://www.centsless.org/terms
servers:
  - url: https://api.centsless.org/api/v1
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: System
    description: Health, version and statistics. No key required for health and version.
  - name: Jurisdiction
    description: Which rule governs a location on a date. No key required.
  - name: Transactions
    description: Process a sale and read sealed transactions.
  - name: Receipts
    description: Render a sealed transaction as a receipt.
  - name: Overrides, voids and refunds
    description: Reversals and adjustments, hash-linked to the original.
  - name: Merchant settings
    description: Early adoption, operator choice and local adoption per merchant.
  - name: Tipping
    description: Tips, pools, payouts and compliance checks.
  - name: Partner
    description: Partner-key endpoints for registering and managing merchants.
  - name: Locations
    description: Registered terminal locations, their boundary resolution and review.
  - name: Compliance and fraud
    description: Void analytics, override reports and risk profiles.
  - name: Audit
    description: Audit logs, security incidents and hash chain verification.
  - name: Export
    description: CSV export.
  - name: Admin
    description: Keys, partners, vendors and jurisdiction rules. Admin key required.
  - name: Provisioning
    description: Called by the Centsless portal backend with the internal service key.
paths:
  /transaction/{id}:
    get:
      tags:
        - Transactions
      summary: Get a transaction
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The sealed transaction.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionResponse'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    TransactionResponse:
      type: object
      properties:
        success:
          type: boolean
        transaction:
          $ref: '#/components/schemas/Transaction'
    Transaction:
      type: object
      properties:
        id:
          type: string
          example: TXN-2026-10-25-8F360056
        timestamp:
          type: string
          format: date-time
        merchant_id:
          type: string
        location_id:
          type: string
          nullable: true
        store_id:
          type: string
          nullable: true
        terminal_id:
          type: string
          nullable: true
        cashier_id:
          type: string
          nullable: true
        state:
          type: string
          nullable: true
        county:
          type: string
          nullable: true
        city:
          type: string
          nullable: true
        transaction_type:
          $ref: '#/components/schemas/TransactionType'
        transaction_timestamp:
          type: string
          format: date-time
        is_refund:
          type: boolean
        calculation:
          $ref: '#/components/schemas/Calculation'
        statutory_basis:
          $ref: '#/components/schemas/StatutoryBasis'
        activation:
          $ref: '#/components/schemas/Activation'
        pending_rules:
          type: array
          items:
            $ref: '#/components/schemas/PendingRule'
        jurisdiction_tier:
          type: object
          nullable: true
          allOf:
            - $ref: '#/components/schemas/Tier'
        location_resolution:
          $ref: '#/components/schemas/LocationResolution'
        local_records:
          type: array
          items:
            $ref: '#/components/schemas/LocalRecord'
        split_tender:
          type: object
          nullable: true
          allOf:
            - $ref: '#/components/schemas/SplitTender'
        compliance:
          type: object
          properties:
            compliance_status:
              type: string
              enum:
                - PASS
                - WARN
                - FAIL
            pass_count:
              type: integer
            warn_count:
              type: integer
            fail_count:
              type: integer
        fraud_score:
          type: number
        risk_level:
          type: string
        auditHash:
          type: string
        previousHash:
          type: string
        chainPosition:
          type: integer
        hashSchema:
          type: integer
          example: 2
        statutoryBasisHash:
          type: string
          nullable: true
        override_applied:
          type: boolean
    Error:
      type: object
      properties:
        error:
          type: string
          example: INVALID_REQUEST
        message:
          type: string
        errors:
          type: array
          items:
            type: string
          description: One entry per validation problem (400 responses).
    TransactionType:
      type: string
      enum:
        - retail
        - government_retail
        - government
        - tax_payment
        - state_agency
        - local_government
        - local_agency
        - school_district
        - liquor
        - abc_store
        - gaming
        - mvd_fee
        - wages
        - metals_recycler
        - currency_exchange
      default: retail
      description: Who is paying whom. Selects the tier of a state rule.
    Calculation:
      type: object
      properties:
        subtotal_cents:
          type: integer
        tax_total_cents:
          type: integer
        ledger_total_cents:
          type: integer
          description: Subtotal plus tax; never changed by rounding.
        cash_total_cents:
          type: integer
          description: The amount to collect in cash.
        rounding_delta_cents:
          type: integer
        rounding_applied:
          type: boolean
        small_total_exempt:
          type: boolean
          description: A statutory small-total exclusion applied (California, Connecticut).
        small_total_round_up:
          type: boolean
          description: >-
            A statutory small-total round-up to five cents applied (Georgia,
            Hawaii, Minnesota, Nebraska, Maryland).
        refund_policy:
          type: string
          nullable: true
          enum:
            - same_rule
            - exact
          description: >-
            On refunds, whether the refund was rounded under the sale's rule or
            issued in the exact amount (Vermont).
        payment_method:
          type: string
        cash_rounding_mode:
          $ref: '#/components/schemas/RoundingMode'
        jurisdiction:
          type: string
          example: US-NC
        jurisdiction_level:
          type: string
          enum:
            - federal
            - state
            - county
            - city
            - tribal
            - override
        jurisdiction_status:
          type: string
          description: >-
            enacted, ordinance, default_practice, or manual for an explicit
            override.
        jurisdiction_legislation:
          type: string
          nullable: true
        jurisdiction_obligation:
          type: string
          nullable: true
          enum:
            - obligates
            - permits
        jurisdiction_citation:
          type: string
          nullable: true
        jurisdiction_tier_id:
          type: string
          nullable: true
        activation_state:
          $ref: '#/components/schemas/ActivationState'
        jurisdiction_data_source:
          type: string
          enum:
            - database+registered_location
            - database+location_override
            - database
            - hardcoded
        state:
          type: string
          nullable: true
    StatutoryBasis:
      type: object
      description: >-
        The block sealed into the record naming the governing rule and why it
        governed.
      properties:
        jurisdiction_id:
          type: string
        jurisdiction_level:
          type: string
        lookup_key:
          type: string
        legislation:
          type: string
          nullable: true
        session_law:
          type: string
          nullable: true
        citation:
          type: string
          nullable: true
        status:
          type: string
        activation_state:
          $ref: '#/components/schemas/ActivationState'
        obligation:
          type: string
          nullable: true
        enforcement:
          type: string
          nullable: true
        rounding_mode:
          $ref: '#/components/schemas/RoundingMode'
        tier_id:
          type: string
          nullable: true
        tier_citation:
          type: string
          nullable: true
        effective_date:
          type: string
          format: date
          nullable: true
        sunset_date:
          type: string
          format: date
          nullable: true
        local_transaction_date:
          type: string
          format: date
        local_date_source:
          type: string
          enum:
            - sender_offset
            - jurisdiction_time_zone
            - utc
        time_zone:
          type: string
          nullable: true
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/Condition'
        source_url:
          type: string
          nullable: true
        last_verified:
          type: string
          nullable: true
        dataset_version:
          type: string
          nullable: true
          example: 2026.10.25-r2
    Activation:
      type: object
      properties:
        state:
          $ref: '#/components/schemas/ActivationState'
        governs:
          type: boolean
        local_transaction_date:
          type: string
          format: date
        local_date_source:
          type: string
        time_zone:
          type: string
          nullable: true
        effective_date:
          type: string
          format: date
          nullable: true
        sunset_date:
          type: string
          format: date
          nullable: true
        days_until_effective:
          type: integer
          nullable: true
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/Condition'
        reason:
          type: string
    PendingRule:
      type: object
      properties:
        level:
          type: string
        lookup_key:
          type: string
          example: OK
        jurisdiction_id:
          type: string
        legislation:
          type: string
          nullable: true
        citation:
          type: string
          nullable: true
        tier_id:
          type: string
          nullable: true
        effective_date:
          type: string
          format: date
        days_until_effective:
          type: integer
        local_transaction_date:
          type: string
          format: date
        obligation:
          type: string
          nullable: true
        rounding_mode:
          $ref: '#/components/schemas/RoundingMode'
    Tier:
      type: object
      properties:
        tier_id:
          type: string
          example: NC-TAX
        tier_name:
          type: string
        transaction_type:
          type: string
          nullable: true
        transaction_types:
          type: array
          nullable: true
          items:
            type: string
        rounding_mode:
          $ref: '#/components/schemas/RoundingMode'
        enforcement:
          type: string
        obligation:
          type: string
          enum:
            - obligates
            - permits
        citation:
          type: string
          nullable: true
        effective_date:
          type: string
          format: date
          nullable: true
        sunset_date:
          type: string
          format: date
          nullable: true
        description:
          type: string
        applies_to:
          type: string
    LocationResolution:
      type: object
      nullable: true
      description: How the place of sale was established. Null on the ZIP and name paths.
      properties:
        location_id:
          type: string
          nullable: true
        external_location_id:
          type: string
          nullable: true
        method:
          type: string
          enum:
            - address_geocode
            - zip_fallback
            - coordinate_lookup
            - manual
            - unresolved
            - request_fields
        confidence:
          type: string
          enum:
            - high
            - medium
            - low
            - none
        source:
          type: string
          nullable: true
          example: census
        vintage:
          type: string
          nullable: true
          example: Public_AR_Current/Current_Current
        match_type:
          type: string
          nullable: true
        geocoded_at:
          type: string
          format: date-time
          nullable: true
        state_fips:
          type: string
          nullable: true
        state_abbr:
          type: string
          nullable: true
        county_geoid:
          type: string
          nullable: true
          example: '12009'
        place_geoid:
          type: string
          nullable: true
          example: '1271900'
        cousub_geoid:
          type: string
          nullable: true
        aiannh_geoid:
          type: string
          nullable: true
          example: 2430R
        time_zone:
          type: string
          nullable: true
        needs_review:
          type: boolean
        override:
          $ref: '#/components/schemas/LocationOverride'
        zip_cross_check:
          $ref: '#/components/schemas/ZipCrossCheck'
    LocalRecord:
      type: object
      properties:
        level:
          type: string
          enum:
            - tribal
            - city
            - county
        key:
          type: string
          example: FL:BREVARD:TITUSVILLE
        jurisdiction_id:
          type: string
        status:
          type: string
        activation_state:
          $ref: '#/components/schemas/ActivationState'
        engine_supported:
          type: boolean
        instrument:
          type: string
          nullable: true
        evidence_tier:
          type: string
          nullable: true
    SplitTender:
      type: object
      properties:
        is_split_tender:
          type: boolean
        tender_count:
          type: integer
        cash_portion_cents:
          type: integer
        non_cash_portion_cents:
          type: integer
        total_after_rounding:
          type: integer
        tenders:
          type: array
          items:
            type: object
            properties:
              type:
                type: string
              amount_cents:
                type: integer
              rounding_applied:
                type: boolean
              rounding_exempt_reason:
                type: string
                nullable: true
              rounding_delta_cents:
                type: integer
              rounded_amount_cents:
                type: integer
    RoundingMode:
      type: string
      enum:
        - symmetrical_rounding
        - mandatory_round_down
        - mandatory_round_up
        - operator_choice
        - swedish_rounding
        - nearest_nickel
        - nearest_cent
        - nearest_dime
        - none
    ActivationState:
      type: string
      enum:
        - in_force
        - default_practice
        - early_adoption_voluntary
        - pending_effective
        - not_binding
        - out_of_scope
        - awaiting_condition
        - expired
        - not_engine_supported
    Condition:
      type: object
      properties:
        type:
          type: string
          example: local_adoption
        satisfied:
          type: boolean
        basis:
          type: string
          nullable: true
        note:
          type: string
          nullable: true
    LocationOverride:
      type: object
      nullable: true
      properties:
        requested:
          type: boolean
          nullable: true
        resolved:
          type: boolean
          nullable: true
        method:
          type: string
          nullable: true
        confidence:
          type: string
          nullable: true
        source:
          type: string
          nullable: true
        latitude:
          type: number
          nullable: true
        longitude:
          type: number
          nullable: true
        state_fips:
          type: string
          nullable: true
        county_geoid:
          type: string
          nullable: true
        place_geoid:
          type: string
          nullable: true
        aiannh_geoid:
          type: string
          nullable: true
        time_zone:
          type: string
          nullable: true
        note:
          type: string
          nullable: true
    ZipCrossCheck:
      type: object
      nullable: true
      properties:
        registered_zip:
          type: string
        request_zip:
          type: string
          nullable: true
        geocoded_zip:
          type: string
          nullable: true
        agrees:
          type: boolean
        note:
          type: string
          nullable: true
  responses:
    NotFound:
      description: No such resource.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Role-scoped API key (admin, partner, merchant, auditor, readonly).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.