{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/trustly/main/json-schema/trustly-countries-get-countries-response-200-schema.json",
  "title": "Countries_get-countries_Response_200",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trustly-countries-api-openapi.yml#/components/schemas/Countries_get-countries_Response_200",
  "type": "object",
  "properties": {
    "countries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Country"
      }
    }
  },
  "$defs": {
    "Country": {
      "type": "object",
      "properties": {
        "numericCode": {
          "type": "integer",
          "description": "Number Country numeric code defined in ISO 3166-1"
        },
        "alpha2Code": {
          "type": "string",
          "description": "Country alpha2 code defined in ISO 3166-1"
        },
        "alpha3Code": {
          "type": "string",
          "description": "Country alpha3 code defined in ISO 3166-1"
        },
        "name": {
          "type": "string",
          "description": "Country name"
        },
        "currencies": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Array of currencies supported by country"
        },
        "paymentTypes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PaymentType"
          },
          "description": "Array of payment types supported by country"
        },
        "paymentProviderSubtypes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PaymentProviderSubtype"
          },
          "description": "Array of Payment Provider Subtypes values supported by country "
        },
        "enabled": {
          "type": "boolean",
          "description": "Indicates if the country is currently supported"
        }
      },
      "title": "Country"
    },
    "PaymentProviderSubtype": {
      "type": "string",
      "enum": [
        "1000",
        "2000",
        "2001"
      ],
      "description": "Payment Provider Subtype:\n  * `1000`: EasyOnline\n  * `2000`: MEC\n  * `2001`: MCD",
      "title": "PaymentProviderSubtype"
    },
    "PaymentType": {
      "type": "string",
      "enum": [
        "instant",
        "deferred",
        "recurring",
        "disbursement",
        "verification",
        "retrieval"
      ],
      "description": "Payment Type:\n  * `instant`: Instant payment. The debit instruction is automatically initiated with that day''s batch after consumer authorization.\n  * `deferred`: Deferred payment. Payment is authorized but the capture operation must be called to initiate the debit. You can start to initiate multiple captures that are less than or equal to the original transaction authorization amount.\n  * `recurring`: Recurring payment. Same as deferred but associated to a payment agreement between consumer and merchant that defines how much and when the capture can be started.\n  * `disbursement`: Disbursement payment. This payment type can only be used for disbursements.\n  * `verification`: This payment type is used to verify the customer financial institution account as the payments will be done outside of the Trustly system.\n  * `retrieval`: Data retrieval. This payment type is used to retrieve account and user information from Trustly without an associated payment request. This payment type is not enabled by default. Contact Trustly if you need this feature.",
      "title": "PaymentType"
    }
  }
}