{
  "schema": "1.0",
  "name": "OpenC Banker",
  "link": "https://connectors.openc.nl",
  "description": "Banking utilities for Claris Connect.",
  "auth_components": {
    "type": "none"
  },
  "requiredSettings": {
    "authFields": [
      {
        "label": "API token",
        "key": "token",
        "description": "Your API token for OpenC Banker"
      }
    ]
  },
  "auth_request": {
    "type": "custom_body",
    "errorMessageKey": "detail",
    "body_parameters": {
      "token": "{{authFields.token}}"
    }
  },
  "testConnection": {
    "endpoint": "/test",
    "method": "POST",
    "body": {}
  },
  "endpoints": {
    "POST": {
      "/test": {
        "url": "https://connector-backend.smartyellow.net/banker/"
      },
      "/iban": {
        "url": "https://connector-backend.smartyellow.net/banker/"
      }
    }
  },
  "actions": [
    {
      "modelId": "creditcard",
      "actionId": "parse",
      "endpoint": "/creditcard",
      "method": "POST",
      "label": "Parse credit card number",
      "helpText": "Formats and returns info about a credit card number.",
      "urlFields": [],
      "actionFields": [
        {
          "key": "number",
          "label": "Card number",
          "description": "Card number to parse. Any whitespace is ignored.",
          "type": "string",
          "required": true
        }
      ]
    },
    {
      "modelId": "iban",
      "actionId": "parse",
      "endpoint": "/iban",
      "method": "POST",
      "label": "Parse IBAN",
      "helpText": "Formats and returns info about an International Bank Account Number.",
      "urlFields": [],
      "actionFields": [
        {
          "key": "iban",
          "label": "IBAN",
          "description": "International Bank Account Number to parse. Any whitespace is ignored.",
          "type": "string",
          "required": true
        }
      ]
    }
  ]
}
