{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/commenda/main/json-schema/commenda-get-api-v1-registrations-registrationid-response-schema.json",
  "title": "GetApiV1RegistrationsRegistrationidResponse",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/commenda-openapi-generated.yml#/components/schemas/GetApiV1RegistrationsRegistrationidResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the registration"
    },
    "corporation_id": {
      "type": "string",
      "description": "The corporation this registration belongs to"
    },
    "registration_content_id": {
      "type": "string",
      "description": "Content ID identifying the jurisdiction and tax type"
    },
    "jurisdiction_id": {
      "type": "string",
      "description": "Unique identifier for the jurisdiction"
    },
    "jurisdiction_type": {
      "type": "string",
      "description": "Type: STATE_OR_PROVINCE , CITY , COUNTY , DISTRICT , LOCAL , COUNTRY , TERRITORY , TRADEBLOC"
    },
    "jurisdiction_name": {
      "type": "string",
      "description": "Human-readable name of the jurisdiction"
    },
    "country": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code"
    },
    "state_or_province": {
      "type": "string",
      "description": "State or province code (e.g., “CA”, “TX”)"
    },
    "tax_types": {
      "type": "array",
      "description": "Tax types registered for (e.g., [\"RST\", \"DTT\"] )"
    },
    "frequency": {
      "type": "string",
      "description": "Filing frequency"
    },
    "effective_start_date": {
      "type": "string",
      "description": "When the registration became effective (YYYY-MM-DD)"
    },
    "effective_end_date": {
      "type": "string",
      "description": "When the registration ended (YYYY-MM-DD), if closed"
    },
    "tax_registration_id": {
      "type": "string",
      "description": "State-issued tax ID or permit number"
    },
    "portal_id": {
      "type": "string",
      "description": "Tax portal identifier"
    },
    "credential_id": {
      "type": "string",
      "description": "Reference to stored portal credentials"
    },
    "registration_status": {
      "type": "string",
      "description": "REGISTRATION_IN_PROGRESS or REGISTERED"
    },
    "validation_status": {
      "type": "string",
      "description": "PENDING , VALIDATION_IN_PROGRESS , VALID , or INVALID"
    },
    "registration_type": {
      "type": "string",
      "description": "EXISTING or NEW"
    },
    "registered_by": {
      "type": "string",
      "description": "Who created the registration: API , USER , COMMENDA"
    },
    "email_alias": {
      "type": "string",
      "description": "Email alias for tax correspondence"
    },
    "archived_at": {
      "type": "string",
      "description": "Timestamp if archived, otherwise null"
    },
    "created_at": {
      "type": "string",
      "description": "When the registration was created"
    },
    "updated_at": {
      "type": "string",
      "description": "When the registration was last updated"
    }
  }
}