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

# Add or update a jurisdiction rule

> Every column the activation engine reads can be set, so a signed bill is one call, not a deploy. Live in the cache immediately.



## OpenAPI

````yaml /openapi.yaml post /admin/jurisdictions
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:
  /admin/jurisdictions:
    post:
      tags:
        - Admin
      summary: Add or update a jurisdiction rule
      description: >-
        Every column the activation engine reads can be set, so a signed bill is
        one call, not a deploy. Live in the cache immediately.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/JurisdictionRule'
            examples:
              federalSigned:
                summary: H.R. 10167 signed
                value:
                  lookup_key: US-FEDERAL
                  jurisdiction_id: US-FEDERAL
                  jurisdiction_level: federal
                  rounding_mode: symmetrical_rounding
                  enforcement: safe_harbor
                  status: enacted
                  obligation: permits
                  legislation: Common Cents Act
                  citation: Pub. L. 119-___
                  enacted_date: '2026-11-10'
                  effective_date: '2026-11-10'
                  verification: primary_source
              approveLocal:
                summary: Approve a local record
                value:
                  lookup_key: PA:LANCASTER
                  jurisdiction_id: US-PA-LANCASTER
                  jurisdiction_level: county
                  geoid: '42071'
                  status: ordinance
                  rounding_mode: mandatory_round_down
                  enforcement: mandatory
                  obligation: obligates
                  legislation: Resolution No. 15 of 2026
                  effective_date: '2026-09-01'
                  time_zone: America/New_York
                  accepted_transaction_types:
                    - government
                    - tax_payment
                    - local_government
                  engine_supported: true
                  verification: primary_source
      responses:
        '200':
          description: Saved.
        '400':
          $ref: '#/components/responses/BadRequest'
components:
  schemas:
    JurisdictionRule:
      type: object
      description: >-
        A row of the jurisdictions table. Admin upsert accepts any subset beyond
        the required fields.
      required:
        - lookup_key
        - jurisdiction_id
        - jurisdiction_level
        - rounding_mode
        - enforcement
        - status
      properties:
        lookup_key:
          type: string
          example: NC
          description: State code, STATE:COUNTY[:CITY], TRIBAL:NAME, or US-FEDERAL.
        jurisdiction_id:
          type: string
          example: US-NC
        jurisdiction_level:
          type: string
          enum:
            - federal
            - state
            - county
            - city
            - tribal
        rounding_mode:
          $ref: '#/components/schemas/RoundingMode'
        enforcement:
          type: string
          enum:
            - mandatory
            - voluntary
            - operator_choice
            - safe_harbor
            - none
        status:
          type: string
          enum:
            - enacted
            - ordinance
            - default_practice
            - guidance
            - introduced
            - passed_one_chamber
            - passed_both_chambers
            - awaiting_sig
            - pending
            - drafting
            - failed
            - none
            - repealed
            - proposed
            - lead
          description: >-
            Only enacted and ordinance govern; default_practice is the federal
            fallback.
        obligation:
          type: string
          nullable: true
          enum:
            - obligates
            - permits
        legislation:
          type: string
          nullable: true
        session_law:
          type: string
          nullable: true
        citation:
          type: string
          nullable: true
        enacted_date:
          type: string
          format: date
          nullable: true
        effective_date:
          type: string
          format: date
          nullable: true
        sunset_date:
          type: string
          format: date
          nullable: true
        time_zone:
          type: string
          nullable: true
          example: America/New_York
        scope:
          type: string
          nullable: true
        tender:
          type: string
          nullable: true
        directions:
          type: array
          nullable: true
          items:
            type: string
        tax_on_pre_rounded:
          type: boolean
          nullable: true
        small_total_rule:
          type: object
          nullable: true
          additionalProperties: true
        refund_policy:
          type: string
          enum:
            - same_rule
            - exact
        notice_required:
          type: boolean
        accepted_transaction_types:
          type: array
          nullable: true
          items:
            type: string
        tiers:
          type: array
          nullable: true
          items:
            $ref: '#/components/schemas/Tier'
        activation_conditions:
          type: array
          nullable: true
          items:
            $ref: '#/components/schemas/Condition'
        geoid:
          type: string
          nullable: true
          description: Census GEOID for county, city and tribal rules.
        engine_supported:
          type: boolean
          description: False for a research record that is reported but never applied.
        instrument:
          type: string
          nullable: true
        evidence_tier:
          type: string
          nullable: true
        source_url:
          type: string
          nullable: true
        verification:
          type: string
          nullable: true
          enum:
            - primary_source
            - tracker
            - admin_api
        dataset_version:
          type: string
          nullable: true
        notes:
          type: string
          nullable: true
    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
    Condition:
      type: object
      properties:
        type:
          type: string
          example: local_adoption
        satisfied:
          type: boolean
        basis:
          type: string
          nullable: true
        note:
          type: string
          nullable: true
    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).
  responses:
    BadRequest:
      description: Validation failed.
      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.