> ## 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.

# Governing rule by state, county and city



## OpenAPI

````yaml /openapi.yaml get /jurisdiction/{state}/{county}/{city}
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:
  /jurisdiction/{state}/{county}/{city}:
    get:
      tags:
        - Jurisdiction
      summary: Governing rule by state, county and city
      parameters:
        - name: state
          in: path
          required: true
          schema:
            type: string
        - name: county
          in: path
          required: true
          schema:
            type: string
        - name: city
          in: path
          required: true
          schema:
            type: string
            example: RALEIGH
        - $ref: '#/components/parameters/TransactionType'
        - $ref: '#/components/parameters/TransactionTimestamp'
      responses:
        '200':
          description: The governing rule with activation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JurisdictionResolution'
      security: []
components:
  parameters:
    TransactionType:
      name: transaction_type
      in: query
      description: >-
        Selects the tier where a state has more than one rule. Defaults to
        retail.
      schema:
        $ref: '#/components/schemas/TransactionType'
    TransactionTimestamp:
      name: transaction_timestamp
      in: query
      description: >-
        ISO 8601 timestamp with the terminal's UTC offset; sets the local
        calendar date for activation. Defaults to now.
      schema:
        type: string
        format: date-time
        example: '2026-11-01T09:00:00-05:00'
  schemas:
    JurisdictionResolution:
      type: object
      description: The rule that governs a location on a date, with activation details.
      properties:
        success:
          type: boolean
        query:
          type: object
          additionalProperties: true
        lookup_key:
          type: string
          example: NC
        jurisdiction_id:
          type: string
          example: US-NC
        jurisdiction_level:
          type: string
        rounding_mode:
          $ref: '#/components/schemas/RoundingMode'
        enforcement:
          type: string
          nullable: true
        obligation:
          type: string
          nullable: true
        status:
          type: string
        legislation:
          type: string
          nullable: true
        citation:
          type: string
          nullable: true
        session_law:
          type: string
          nullable: true
        effective_date:
          type: string
          format: date
          nullable: true
        tier:
          type: object
          nullable: true
          allOf:
            - $ref: '#/components/schemas/Tier'
        activation:
          $ref: '#/components/schemas/Activation'
        small_total_rule:
          type: object
          nullable: true
          properties:
            max_cents:
              type: integer
            treatment:
              type: string
              enum:
                - exempt
                - round_up_to_nickel
                - permitted_round_up
            note:
              type: string
        refund_policy:
          type: string
          enum:
            - same_rule
            - exact
        notice_required:
          type: boolean
        pending_rules:
          type: array
          items:
            $ref: '#/components/schemas/PendingRule'
        evaluated:
          type: array
          description: Every level checked, in order, with its activation outcome.
          items:
            type: object
            properties:
              level:
                type: string
              key:
                type: string
              activation_state:
                $ref: '#/components/schemas/ActivationState'
              governs:
                type: boolean
        local_records:
          type: array
          items:
            $ref: '#/components/schemas/LocalRecord'
        statutory_basis:
          $ref: '#/components/schemas/StatutoryBasis'
        resolved_location:
          type: object
          additionalProperties: true
        resolution_chain:
          type: array
          items:
            type: object
            properties:
              level:
                type: string
              key:
                type: string
              found:
                type: boolean
        source_url:
          type: string
          nullable: true
        last_verified:
          type: string
          nullable: true
        dataset_version:
          type: string
          nullable: true
        data_source:
          type: string
    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.
    RoundingMode:
      type: string
      enum:
        - symmetrical_rounding
        - mandatory_round_down
        - mandatory_round_up
        - operator_choice
        - swedish_rounding
        - nearest_nickel
        - nearest_cent
        - nearest_dime
        - none
    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
    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'
    ActivationState:
      type: string
      enum:
        - in_force
        - default_practice
        - early_adoption_voluntary
        - pending_effective
        - not_binding
        - out_of_scope
        - awaiting_condition
        - expired
        - not_engine_supported
    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
    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
    Condition:
      type: object
      properties:
        type:
          type: string
          example: local_adoption
        satisfied:
          type: boolean
        basis:
          type: string
          nullable: true
        note:
          type: string
          nullable: true
  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.