Wallee Countries API

The Countries API from Wallee — 6 operation(s) for countries.

GitHub OpenAPI

Operations 6

GET /countries List all countries #
GET /countries/{code} Retrieve a country #
GET /countries/{countryCode}/states List all states for a country #
GET /countries/search Search countries #
GET /countries/states List all country states #
GET /countries/states/{id} Retrieve a country state #

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/wallee:wallee-countries-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

wallee-countries-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: The Wallee Group AG API allows to create integrations, retrieve data and automate workflows.
  title: Wallee Group AG Countries API
  version: '2.0'
servers:
- url: https://app-wallee.com/api/v2.0
security:
- cookieAuth: []
- jwtAuth: []
- macAuth: []
tags:
- externalDocs:
    url: https://app-wallee.com/doc/api/web-service#countries-service
  name: Countries
paths:
  /countries:
    get:
      externalDocs:
        url: https://app-wallee.com/doc/api/web-service#getCountries
      operationId: getCountries
      parameters:
      - explode: true
        in: query
        name: expand
        required: false
        schema:
          items:
            type: string
          type: array
          uniqueItems: true
        style: form
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Country_List_Response'
          description: Successful response.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The request was not accepted often due to missing or invalid parameters.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The necessary authentication credentials are missing or incorrect.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The application user is missing the required permissions.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The requested resource was not found.
        '406':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The requested response format is not supported.
        '415':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The request provides unsupported or invalid data.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The request is well-formed but contains semantic errors. Check the response body for details.
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: Too many requests hit the API too quickly.
        5XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: An internal error occurred on the server.
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: Error response.
      summary: List all countries
      tags:
      - Countries
      x-accepts:
      - application/json
  /countries/{code}:
    get:
      externalDocs:
        url: https://app-wallee.com/doc/api/web-service#getCountriesCode
      operationId: getCountriesCode
      parameters:
      - explode: false
        in: path
        name: code
        required: true
        schema:
          type: string
        style: simple
      - explode: true
        in: query
        name: expand
        required: false
        schema:
          items:
            type: string
          type: array
          uniqueItems: true
        style: form
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestCountry'
          description: Successful response.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The request was not accepted often due to missing or invalid parameters.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The necessary authentication credentials are missing or incorrect.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The application user is missing the required permissions.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The requested resource was not found.
        '406':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The requested response format is not supported.
        '415':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The request provides unsupported or invalid data.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The request is well-formed but contains semantic errors. Check the response body for details.
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: Too many requests hit the API too quickly.
        5XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: An internal error occurred on the server.
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: Error response.
      summary: Retrieve a country
      tags:
      - Countries
      x-accepts:
      - application/json
  /countries/{countryCode}/states:
    get:
      externalDocs:
        url: https://app-wallee.com/doc/api/web-service#getCountriesCountryCodeStates
      operationId: getCountriesCountryCodeStates
      parameters:
      - explode: false
        in: path
        name: countryCode
        required: true
        schema:
          type: string
        style: simple
      - explode: true
        in: query
        name: expand
        required: false
        schema:
          items:
            type: string
          type: array
          uniqueItems: true
        style: form
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/State_List_Response'
          description: Successful response.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The request was not accepted often due to missing or invalid parameters.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The necessary authentication credentials are missing or incorrect.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The application user is missing the required permissions.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The requested resource was not found.
        '406':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The requested response format is not supported.
        '415':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The request provides unsupported or invalid data.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The request is well-formed but contains semantic errors. Check the response body for details.
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: Too many requests hit the API too quickly.
        5XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: An internal error occurred on the server.
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: Error response.
      summary: List all states for a country
      tags:
      - Countries
      x-accepts:
      - application/json
  /countries/search:
    get:
      externalDocs:
        url: https://app-wallee.com/doc/api/web-service#getCountriesSearch
      operationId: getCountriesSearch
      parameters:
      - explode: true
        in: query
        name: expand
        required: false
        schema:
          items:
            type: string
          type: array
          uniqueItems: true
        style: form
      - description: A limit on the number of objects to be returned, between 1 and 100. Default is 10.
        explode: true
        in: query
        name: limit
        required: false
        schema:
          format: int32
          maximum: 100
          minimum: 1
          type: integer
        style: form
      - description: A cursor for pagination, specifies the number of objects to skip.
        explode: true
        in: query
        name: offset
        required: false
        schema:
          format: int32
          maximum: 10000
          type: integer
        style: form
      - description: The fields and order to sort the objects by.
        explode: true
        in: query
        name: order
        required: false
        schema:
          type: string
        style: form
      - description: The search query to filter the objects by.
        explode: true
        in: query
        name: query
        required: false
        schema:
          type: string
        style: form
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Country_Search_Response'
          description: Successful response.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The request was not accepted often due to missing or invalid parameters.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The necessary authentication credentials are missing or incorrect.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The application user is missing the required permissions.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The requested resource was not found.
        '406':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The requested response format is not supported.
        '415':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The request provides unsupported or invalid data.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The request is well-formed but contains semantic errors. Check the response body for details.
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: Too many requests hit the API too quickly.
        5XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: An internal error occurred on the server.
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: Error response.
      summary: Search countries
      tags:
      - Countries
      x-accepts:
      - application/json
  /countries/states:
    get:
      externalDocs:
        url: https://app-wallee.com/doc/api/web-service#getCountriesStates
      operationId: getCountriesStates
      parameters:
      - explode: true
        in: query
        name: expand
        required: false
        schema:
          items:
            type: string
          type: array
          uniqueItems: true
        style: form
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/State_List_Response'
          description: Successful response.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The request was not accepted often due to missing or invalid parameters.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The necessary authentication credentials are missing or incorrect.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The application user is missing the required permissions.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The requested resource was not found.
        '406':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The requested response format is not supported.
        '415':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The request provides unsupported or invalid data.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The request is well-formed but contains semantic errors. Check the response body for details.
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: Too many requests hit the API too quickly.
        5XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: An internal error occurred on the server.
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: Error response.
      summary: List all country states
      tags:
      - Countries
      x-accepts:
      - application/json
  /countries/states/{id}:
    get:
      externalDocs:
        url: https://app-wallee.com/doc/api/web-service#getCountriesStatesId
      operationId: getCountriesStatesId
      parameters:
      - explode: false
        in: path
        name: id
        required: true
        schema:
          type: string
        style: simple
      - explode: true
        in: query
        name: expand
        required: false
        schema:
          items:
            type: string
          type: array
          uniqueItems: true
        style: form
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestCountryState'
          description: Successful response.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The request was not accepted often due to missing or invalid parameters.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The necessary authentication credentials are missing or incorrect.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The application user is missing the required permissions.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The requested resource was not found.
        '406':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The requested response format is not supported.
        '415':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The request provides unsupported or invalid data.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: The request is well-formed but contains semantic errors. Check the response body for details.
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: Too many requests hit the API too quickly.
        5XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: An internal error occurred on the server.
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestApiErrorResponse'
          description: Error response.
      summary: Retrieve a country state
      tags:
      - Countries
      x-accepts:
      - application/json
components:
  schemas:
    RestApiErrorResponse:
      example:
        date: 2000-01-23 04:56:07+00:00
        code: code
        id: id
        message: message
        errors:
          key: errors
      externalDocs:
        url: https://app-wallee.com/doc/api/web-service#_restapierrorresponse
      properties:
        date:
          description: The date and time when the error occurred.
          format: date-time
          readOnly: true
          title: Date
          type: string
        code:
          description: A brief explanation of the error that can be used to programmatically handle it.
          readOnly: true
          title: Code
          type: string
        id:
          description: The unique identifier of the error.
          readOnly: true
          title: Id
          type: string
        message:
          description: A human-readable message providing more details about the error.
          readOnly: true
          title: Message
          type: string
        errors:
          additionalProperties:
            type: string
          description: A map of errors where the key represents the error identifier (such as field name or error context) and the value contains the detailed error message.
          readOnly: true
          title: Errors
          type: object
      title: Error Response
      type: object
      x-model-type: READ
    Country_Search_Response:
      example:
        data:
        - isoCode2: isoCode2
          addressFormat:
            postCodeExamples:
            - postCodeExamples
            - postCodeExamples
            requiredFields:
            - GIVEN_NAME
            - GIVEN_NAME
            usedFields:
            - null
            - null
            postCodeRegex: postCodeRegex
          isoCode3: isoCode3
          stateCodes:
          - stateCodes
          - stateCodes
          name: name
          numericCode: numericCode
        - isoCode2: isoCode2
          addressFormat:
            postCodeExamples:
            - postCodeExamples
            - postCodeExamples
            requiredFields:
            - GIVEN_NAME
            - GIVEN_NAME
            usedFields:
            - null
            - null
            postCodeRegex: postCodeRegex
          isoCode3: isoCode3
          stateCodes:
          - stateCodes
          - stateCodes
          name: name
          numericCode: numericCode
        offset: 0
        hasMore: true
        limit: 6
      externalDocs:
        url: https://app-wallee.com/doc/api/web-service#_searchresponse
      properties:
        data:
          description: An array containing the actual response objects.
          items:
            $ref: '#/components/schemas/RestCountry'
          readOnly: true
          title: Data
          type: array
        offset:
          description: The number of skipped objects.
          format: int32
          readOnly: true
          title: Offset
          type: integer
        hasMore:
          description: Whether there are more objects available after this set. If false, there are no more objects to retrieve.
          readOnly: true
          title: Has More
          type: boolean
        limit:
          description: The applied limit on the number of objects returned.
          format: int32
          readOnly: true
          title: Limit
          type: integer
      title: Country Search Response
      type: object
    Country_List_Response:
      example:
        data:
        - isoCode2: isoCode2
          addressFormat:
            postCodeExamples:
            - postCodeExamples
            - postCodeExamples
            requiredFields:
            - GIVEN_NAME
            - GIVEN_NAME
            usedFields:
            - null
            - null
            postCodeRegex: postCodeRegex
          isoCode3: isoCode3
          stateCodes:
          - stateCodes
          - stateCodes
          name: name
          numericCode: numericCode
        - isoCode2: isoCode2
          addressFormat:
            postCodeExamples:
            - postCodeExamples
            - postCodeExamples
            requiredFields:
            - GIVEN_NAME
            - GIVEN_NAME
            usedFields:
            - null
            - null
            postCodeRegex: postCodeRegex
          isoCode3: isoCode3
          stateCodes:
          - stateCodes
          - stateCodes
          name: name
          numericCode: numericCode
        hasMore: true
        limit: 0
      externalDocs:
        url: https://app-wallee.com/doc/api/web-service#_listresponse
      properties:
        data:
          description: An array containing the actual response objects.
          items:
            $ref: '#/components/schemas/RestCountry'
          readOnly: true
          title: Data
          type: array
        hasMore:
          description: Whether there are more objects available after this set. If false, there are no more objects to retrieve.
          readOnly: true
          title: Has More
          type: boolean
        limit:
          description: The applied limit on the number of objects returned.
          format: int32
          readOnly: true
          title: Limit
          type: integer
      title: Country List Response
      type: object
    RestAddressFormatField:
      enum:
      - GIVEN_NAME
      - FAMILY_NAME
      - ORGANIZATION_NAME
      - STREET
      - DEPENDENT_LOCALITY
      - CITY
      - POSTAL_STATE
      - POST_CODE
      - SORTING_CODE
      - COUNTRY
      externalDocs:
        url: https://app-wallee.com/doc/api/web-service#_restaddressformatfield
      title: Address Format Field
      type: string
      x-model-type: ENUM
    RestAddressFormat:
      example:
        postCodeExamples:
        - postCodeExamples
        - postCodeExamples
        requiredFields:
        - GIVEN_NAME
        - GIVEN_NAME
        usedFields:
        - null
        - null
        postCodeRegex: postCodeRegex
      externalDocs:
        url: https://app-wallee.com/doc/api/web-service#_restaddressformat
      properties:
        postCodeExamples:
          description: A list of sample post codes.
          items:
            type: string
          readOnly: true
          title: Post Code Examples
          type: array
        requiredFields:
          description: The fields that are required in the address format.
          items:
            $ref: '#/components/schemas/RestAddressFormatField'
          readOnly: true
          title: Required Fields
          type: array
          uniqueItems: true
        usedFields:
          description: The fields that are used in the address format.
          items:
            $ref: '#/components/schemas/RestAddressFormatField'
          readOnly: true
          title: Used Fields
          type: array
          uniqueItems: true
        postCodeRegex:
          description: The regular expression to validate post codes.
          readOnly: true
          title: Post Code Regex
          type: string
      title: Address Format
      type: object
      x-model-type: READ
    State_List_Response:
      example:
        data:
        - code: code
          countryCode: countryCode
          name: name
          id: id
        - code: code
          countryCode: countryCode
          name: name
          id: id
        hasMore: true
        limit: 0
      externalDocs:
        url: https://app-wallee.com/doc/api/web-service#_listresponse
      properties:
        data:
          description: An array containing the actual response objects.
          items:
            $ref: '#/components/schemas/RestCountryState'
          readOnly: true
          title: Data
          type: array
        hasMore:
          description: Whether there are more objects available after this set. If false, there are no more objects to retrieve.
          readOnly: true
          title: Has More
          type: boolean
        limit:
          description: The applied limit on the number of objects returned.
          format: int32
          readOnly: true
          title: Limit
          type: integer
      title: State List Response
      type: object
    RestCountry:
      example:
        isoCode2: isoCode2
        addressFormat:
          postCodeExamples:
          - postCodeExamples
          - postCodeExamples
          requiredFields:
          - GIVEN_NAME
          - GIVEN_NAME
          usedFields:
          - null
          - null
          postCodeRegex: postCodeRegex
        isoCode3: isoCode3
        stateCodes:
        - stateCodes
        - stateCodes
        name: name
        numericCode: numericCode
      externalDocs:
        url: https://app-wallee.com/doc/api/web-service#_restcountry
      properties:
        isoCode2:
          description: The country's two-letter code (ISO 3166-1 alpha-2 format).
          readOnly: true
          title: Two-letter Code
          type: string
        addressFormat:
          $ref: '#/components/schemas/RestAddressFormat'
        isoCode3:
          description: The country's three-letter code (ISO 3166-1 alpha-3 format).
          readOnly: true
          title: Three-letter Code
          type: string
        stateCodes:
          description: The codes of all regions (e.g. states, provinces) of the country (ISO 3166-2 format).
          items:
            type: string
          readOnly: true
          title: State Codes
          type: array
          uniqueItems: true
        name:
          description: The name of the country.
          readOnly: true
          title: Name
          type: string
        numericCode:
          description: The country's three-digit code (ISO 3166-1 numeric format).
          readOnly: true
          title: Numeric Code
          type: string
      title: Country
      type: object
      x-expandable-fields:
      - addressFormat
      - stateCodes
      x-model-type: READ
    RestCountryState:
      example:
        code: code
        countryCode: countryCode
        name: name
        id: id
      externalDocs:
        url: https://app-wallee.com/doc/api/web-service#_restcountrystate
      properties:
        code:
          description: The state's code used within addresses.
          readOnly: true
          title: Code
          type: string
        countryCode:
          description: The two-letter code of the state's country (ISO 3166-1 alpha-2 format).
          readOnly: true
          title: Country Code
          type: string
        name:
          description: The name of the state.
          readOnly: true
          title: Name
          type: string
        id:
          description: The state's code in ISO 3166-2 format.
          readOnly: true
          title: Id
          type: string
      title: State
      type: object
      x-model-type: READ
  securitySchemes:
    cookieAuth:
      in: cookie
      name: session
      type: apiKey
    jwtAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http
    macAuth:
      in: header
      name: x-mac-value
      type: apiKey