> ## Documentation Index
> Fetch the complete documentation index at: https://docs.commenda.io/llms.txt
> Use this file to discover all available pages before exploring further.

# List government identifiers

> List government identifiers attached to a customer's business entity.

List government identifiers attached to a customer's business entity.


## OpenAPI

````yaml GET /partner/commenda-os/customers/{customerId}/business-entities/{businessEntityId}/government-identifiers
openapi: 3.0.1
info:
  title: Commenda Public APIs
  description: >-
    APIs for Commenda entity management, partner incorporation, indirect tax,
    compliance, and corporate operations.
  license:
    name: NONE
    url: NONE
  version: 1.0.0
servers:
  - url: https://api.prod.commenda.io/api/v1
    description: Commenda platform APIs, including Partner Incorporation and Commenda OS.
  - url: https://transaction-tax.api.in.commenda.io/api/v1
    description: Global Indirect Tax API.
security:
  - bearerAuth: []
paths:
  /partner/commenda-os/customers/{customerId}/business-entities/{businessEntityId}/government-identifiers:
    get:
      summary: List government identifiers
      description: List government identifiers attached to a customer's business entity.
      operationId: listPartnerCommendaOsGovernmentIdentifiers
      parameters:
        - name: customerId
          in: path
          required: true
          schema:
            type: integer
          description: Commenda customer identifier.
        - name: businessEntityId
          in: path
          required: true
          schema:
            type: integer
          description: Commenda business-entity identifier for the specified customer.
      responses:
        '200':
          description: Government identifiers retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommendaOsGovernmentIdentifiersResponse'
        '401':
          description: Missing or invalid partner API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommendaOsPartnerError'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommendaOsPartnerError'
        '404':
          description: Business entity not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommendaOsPartnerError'
      security:
        - xApiKeyAuth: []
      servers:
        - url: https://api.prod.commenda.io/api/v1
components:
  schemas:
    CommendaOsGovernmentIdentifiersResponse:
      type: object
      required:
        - governmentIdentifiers
        - count
      properties:
        governmentIdentifiers:
          type: array
          items:
            $ref: '#/components/schemas/CommendaOsGovernmentIdentifier'
        count:
          type: integer
          example: 2
    CommendaOsPartnerError:
      type: object
      required:
        - statusCode
        - message
        - error
      properties:
        statusCode:
          type: integer
          description: HTTP status code for the error response.
        message:
          description: >-
            Error message returned by the API. Exact text varies by failure
            mode.
          oneOf:
            - type: string
            - type: array
              items:
                type: string
        error:
          type: string
          description: Standard error label for the response status.
    CommendaOsGovernmentIdentifier:
      type: object
      required:
        - country
        - businessEntityId
        - corporationType
        - key
        - displayName
        - shortName
        - description
        - purposes
        - supportingDocument
        - isFunctionCritical
        - isCustom
        - linkedRegistrations
      properties:
        id:
          type: string
          nullable: true
          example: gov_123
        country:
          type: string
          example: US
        jurisdiction:
          type: string
          nullable: true
          example: DE
        businessEntityId:
          type: integer
          example: 44
        corporationType:
          type: string
          example: LLC
        key:
          type: string
          example: US_EIN
        value:
          type: string
          nullable: true
          example: 12-3456789
        displayName:
          type: string
          example: Employer Identification Number
        shortName:
          type: string
          example: EIN
        description:
          type: string
          example: US federal tax identifier issued by the IRS.
        purposes:
          type: array
          items:
            type: string
          example:
            - TAXATION
        supportingDocument:
          $ref: >-
            #/components/schemas/CommendaOsGovernmentIdentifierSupportingDocument
        isFunctionCritical:
          type: boolean
          example: true
        createdAt:
          type: integer
          nullable: true
          example: 1735689600000
        lastUpdatedAt:
          type: integer
          nullable: true
          example: 1735776000000
        regexString:
          type: string
          nullable: true
        isCustom:
          type: boolean
          example: false
        linkedRegistrations:
          type: array
          items:
            $ref: '#/components/schemas/CommendaOsLinkedRegistrationOption'
    CommendaOsGovernmentIdentifierSupportingDocument:
      type: object
      required:
        - id
        - fileName
        - fileUrl
        - type
        - category
        - fileTypeSpecifiers
      properties:
        id:
          type: integer
          nullable: true
          example: 900
        fileName:
          type: string
          example: ein-letter.pdf
        fileUrl:
          type: string
          nullable: true
          format: uri
          example: https://bucket.s3.amazonaws.com/ein-letter.pdf
        type:
          type: string
          example: EINLetter
        category:
          type: string
          example: TAX_AND_COMPLIANCE_DOCUMENT
        fileTypeSpecifiers:
          type: array
          items:
            type: string
          example:
            - .pdf
    CommendaOsLinkedRegistrationOption:
      type: object
      required:
        - internalIdentifier
        - displayName
        - purpose
      properties:
        internalIdentifier:
          type: string
          example: US_EIN
        displayName:
          type: string
          example: Employer Identification Number
        purpose:
          type: string
          example: TAXATION
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    xApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````