> ## Documentation Index
> Fetch the complete documentation index at: https://api-doc.fidly.be/llms.txt
> Use this file to discover all available pages before exploring further.

# List Countries

> The country codes accepted in a relation's `address.country_code`.

The row set is the list the API actually validates against (the Peppol code list, see
`app/countries.py`), not the translation table: a list that offered a code the API refuses
— or hid one it accepts — would be worse than useless. The two differ by a handful of
codes, whose `label` is therefore `null` until Fidly has a translation for them.



## OpenAPI

````yaml /openapi.json get /countries
openapi: 3.1.0
info:
  title: Fidly API
  version: 1.0.0
servers:
  - url: https://api.fidly.be
    description: Production
security: []
paths:
  /countries:
    get:
      tags:
        - reference
      summary: List Countries
      description: >-
        The country codes accepted in a relation's `address.country_code`.


        The row set is the list the API actually validates against (the Peppol
        code list, see

        `app/countries.py`), not the translation table: a list that offered a
        code the API refuses

        — or hid one it accepts — would be worse than useless. The two differ by
        a handful of

        codes, whose `label` is therefore `null` until Fidly has a translation
        for them.
      operationId: list_countries_countries_get
      parameters:
        - name: language
          in: query
          required: true
          schema:
            type: string
            description: >-
              Language the labels are returned in, one of ['fr', 'en', 'nl',
              'de']. Required: a list of codes with no wording to display them
              is of no use, and there is no sensible language to pick on the
              caller's behalf.
            title: Language
          description: >-
            Language the labels are returned in, one of ['fr', 'en', 'nl',
            'de']. Required: a list of codes with no wording to display them is
            of no use, and there is no sensible language to pick on the caller's
            behalf.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CountryOut'
                title: Response List Countries Countries Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    CountryOut:
      properties:
        code:
          type: string
          title: Code
          description: ISO 3166-1 alpha-2 code (e.g. `BE`).
        label:
          anyOf:
            - type: string
            - type: 'null'
          title: Label
          description: >-
            Name of the country, in the requested language. `null` for the
            handful of codes the API accepts but for which Fidly has no
            translation yet.
      type: object
      required:
        - code
        - label
      title: CountryOut
      description: A country code accepted in a relation's `address.country_code`.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````