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

# Rules counting down to their effective date

> Every binding rule or tier whose effective date is still ahead, with days remaining as of today in the rule's own time zone. Obligation changes count as events.



## OpenAPI

````yaml /openapi.yaml get /jurisdictions/countdown
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:
  /jurisdictions/countdown:
    get:
      tags:
        - Jurisdiction
      summary: Rules counting down to their effective date
      description: >-
        Every binding rule or tier whose effective date is still ahead, with
        days remaining as of today in the rule's own time zone. Obligation
        changes count as events.
      parameters:
        - name: as_of
          in: query
          description: Evaluate as of this instant instead of now.
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: Countdown list.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  as_of:
                    type: string
                    format: date-time
                  total:
                    type: integer
                  dataset_version:
                    type: string
                    nullable: true
                  federal:
                    type: object
                    properties:
                      status:
                        type: string
                      legislation:
                        type: string
                  countdown:
                    type: array
                    items:
                      $ref: '#/components/schemas/CountdownItem'
        '503':
          description: Countdown requires database mode.
      security: []
components:
  schemas:
    CountdownItem:
      type: object
      properties:
        lookup_key:
          type: string
          example: OK
        jurisdiction_id:
          type: string
        jurisdiction_level:
          type: string
        legislation:
          type: string
          nullable: true
        citation:
          type: string
          nullable: true
        tier_id:
          type: string
          nullable: true
        tier_name:
          type: string
          nullable: true
        scope:
          type: string
          nullable: true
        obligation:
          type: string
          nullable: true
        event:
          type: string
          nullable: true
          description: >-
            obligation_change when a tier turns from permits to obligates on the
            date.
        rounding_mode:
          $ref: '#/components/schemas/RoundingMode'
        effective_date:
          type: string
          format: date
        days_until_effective:
          type: integer
        as_of_local_date:
          type: string
          format: date
        time_zone:
          type: string
    RoundingMode:
      type: string
      enum:
        - symmetrical_rounding
        - mandatory_round_down
        - mandatory_round_up
        - operator_choice
        - swedish_rounding
        - nearest_nickel
        - nearest_cent
        - nearest_dime
        - none
  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.