{
 "openapi": "3.1.0",
 "info": {
  "title": "Jurisdiction total (CRM)",
  "version": "20261030b",
  "description": "Read and maintain jurisdiction total records (acct.tax_wizard_jurisdictions)."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "tax-jurisdiction-totals": {
    "type": "object",
    "required": [],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org unit id",
      "readOnly": true
     },
     "run_id": {
      "type": "string",
      "format": "uuid",
      "description": "Run id",
      "readOnly": true
     },
     "jurisdiction_id": {
      "type": "string",
      "format": "uuid",
      "description": "Jurisdiction id",
      "readOnly": true
     },
     "jurisdiction_code": {
      "type": "string",
      "description": "Jurisdiction code",
      "readOnly": true
     },
     "jurisdiction_name": {
      "type": "string",
      "description": "Jurisdiction name",
      "readOnly": true
     },
     "level": {
      "type": "string",
      "description": "Level",
      "readOnly": true
     },
     "parent_code": {
      "type": "string",
      "description": "Parent code",
      "readOnly": true
     },
     "authority_id": {
      "type": "string",
      "format": "uuid",
      "description": "Authority id",
      "readOnly": true
     },
     "authority_name": {
      "type": "string",
      "description": "Authority name",
      "readOnly": true
     },
     "registration_no": {
      "type": "string",
      "description": "Registration no",
      "readOnly": true
     },
     "tax_head": {
      "type": "string",
      "description": "Tax head",
      "readOnly": true
     },
     "rate_pct": {
      "type": "string",
      "format": "decimal",
      "description": "Rate pct",
      "readOnly": true
     },
     "gross_sales": {
      "type": "string",
      "format": "decimal",
      "description": "Gross sales",
      "readOnly": true
     },
     "exempt_sales": {
      "type": "string",
      "format": "decimal",
      "description": "Exempt sales",
      "readOnly": true
     },
     "taxable_base": {
      "type": "string",
      "format": "decimal",
      "description": "Taxable base",
      "readOnly": true
     },
     "tax_collected": {
      "type": "string",
      "format": "decimal",
      "description": "Tax collected",
      "readOnly": true
     },
     "tax_due": {
      "type": "string",
      "format": "decimal",
      "description": "Tax due",
      "readOnly": true
     },
     "input_credit": {
      "type": "string",
      "format": "decimal",
      "description": "Input credit",
      "readOnly": true
     },
     "net_payable": {
      "type": "string",
      "format": "decimal",
      "description": "Net payable",
      "readOnly": true
     },
     "transaction_count": {
      "type": "integer",
      "description": "Transaction count",
      "readOnly": true
     },
     "variance": {
      "type": "string",
      "format": "decimal",
      "description": "Variance",
      "readOnly": true
     },
     "is_registered": {
      "type": "boolean",
      "description": "Is registered",
      "readOnly": true
     },
     "notes": {
      "type": "string",
      "description": "Notes",
      "readOnly": true
     },
     "xf_text_1": {
      "type": "string",
      "description": "Xf text 1",
      "readOnly": true
     },
     "xf_text_2": {
      "type": "string",
      "description": "Xf text 2",
      "readOnly": true
     },
     "xf_text_3": {
      "type": "string",
      "description": "Xf text 3",
      "readOnly": true
     },
     "xf_text_4": {
      "type": "string",
      "description": "Xf text 4",
      "readOnly": true
     },
     "xf_text_5": {
      "type": "string",
      "description": "Xf text 5",
      "readOnly": true
     },
     "xf_num_1": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 1",
      "readOnly": true
     },
     "xf_num_2": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 2",
      "readOnly": true
     },
     "xf_num_3": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 3",
      "readOnly": true
     },
     "xf_date_1": {
      "type": "string",
      "format": "date",
      "description": "Xf date 1",
      "readOnly": true
     },
     "xf_date_2": {
      "type": "string",
      "format": "date",
      "description": "Xf date 2",
      "readOnly": true
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Created at",
      "readOnly": true
     },
     "created_by": {
      "type": "string",
      "format": "uuid",
      "description": "Created by",
      "readOnly": true
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Updated at",
      "readOnly": true
     },
     "updated_by": {
      "type": "string",
      "format": "uuid",
      "description": "Updated by",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/crm/tax-jurisdiction-totals": {
   "get": {
    "summary": "list tax-jurisdiction-totals",
    "operationId": "list_tax_jurisdiction_totals_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Post jurisdiction total",
    "operationId": "action_tax_jurisdiction_totals_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/tax-jurisdiction-totals/{id}": {
   "get": {
    "summary": "get tax-jurisdiction-totals",
    "operationId": "get_tax_jurisdiction_totals_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "Put jurisdiction total",
    "operationId": "action_tax_jurisdiction_totals_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Delete jurisdiction total",
    "operationId": "action_tax_jurisdiction_totals_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/tax-jurisdiction-totals/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_tax_jurisdiction_totals_0_6",
    "description": "Body keys: overrides, preview, withLines",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}