{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/clickatell/main/json-schema/clickatell-widget-config-response-schema.json",
  "title": "WidgetConfigResponse",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clickatell-chat-2-pay-api-client-callbacks-openapi.json#/components/schemas/WidgetConfigResponse",
  "type": "object",
  "properties": {
    "apiKey": {
      "type": "string",
      "description": "API key required to access the C2P APIs"
    },
    "enabledChannels": {
      "type": "array",
      "description": "List of enabled channels used to send the payment link",
      "items": {
        "type": "string",
        "description": "List of enabled channels used to send the payment link"
      }
    },
    "supportedCurrencies": {
      "uniqueItems": true,
      "type": "array",
      "description": "List of currencies selected in payment gateway settings",
      "items": {
        "$ref": "#/$defs/CurrencyResponse"
      }
    },
    "mc2AccountId": {
      "type": "string",
      "description": "MC2 account ID"
    },
    "chatFlowClientId": {
      "type": "string",
      "description": "ChatFlow client ID"
    },
    "configId": {
      "type": "string",
      "description": "Chat 2 Pay configuration ID"
    },
    "environment": {
      "type": "string",
      "description": "Chat 2 Pay configuration run environment (SANDBOX or PRODUCTION)"
    }
  },
  "$defs": {
    "CurrencyResponse": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "Currency unique identifier",
          "format": "int32"
        },
        "iso": {
          "type": "string",
          "description": "The ISO currency code"
        },
        "name": {
          "type": "string",
          "description": "Name of currency"
        },
        "symbol": {
          "type": "string",
          "description": "Symbol used to display currency"
        },
        "isDefault": {
          "type": "boolean",
          "description": "True if this is set as the default currency; otherwise, false"
        }
      },
      "description": "Supported currencies"
    }
  }
}