{
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "value",
        "value": "{{api_key}}",
        "type": "string"
      },
      {
        "key": "key",
        "value": "api-key",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "method": "POST",
  "header": [
    {
      "key": "Content-Type",
      "value": "application/json"
    },
    {
      "key": "Accept",
      "value": "application/json"
    }
  ],
  "body": {
    "mode": "raw",
    "options": {
      "raw": {
        "language": "json"
      }
    },
    "raw_json_formatted": {
      "connector_type": "payment_processor",
      "connector_name": "stripe",
      "business_country": "US",
      "business_label": "default",
      "connector_label": "first_stripe_connector",
      "connector_account_details": {
        "auth_type": "HeaderKey",
        "api_key": "{{connector_api_key}}"
      },
      "test_mode": false,
      "disabled": false,
      "payment_methods_enabled": [
        {
          "payment_method": "card",
          "payment_method_types": [
            {
              "payment_method_type": "credit",
              "card_networks": ["Visa", "Mastercard"],
              "minimum_amount": 1,
              "maximum_amount": 68607706,
              "recurring_enabled": true,
              "installment_payment_enabled": true
            },
            {
              "payment_method_type": "debit",
              "card_networks": ["Visa", "Mastercard"],
              "minimum_amount": 1,
              "maximum_amount": 68607706,
              "recurring_enabled": true,
              "installment_payment_enabled": true
            }
          ]
        },
        {
          "payment_method": "pay_later",
          "payment_method_types": [
            {
              "payment_method_type": "klarna",
              "payment_experience": "redirect_to_url",
              "minimum_amount": 1,
              "maximum_amount": 68607706,
              "recurring_enabled": true,
              "installment_payment_enabled": true
            },
            {
              "payment_method_type": "affirm",
              "payment_experience": "redirect_to_url",
              "minimum_amount": 1,
              "maximum_amount": 68607706,
              "recurring_enabled": true,
              "installment_payment_enabled": true
            },
            {
              "payment_method_type": "afterpay_clearpay",
              "payment_experience": "redirect_to_url",
              "minimum_amount": 1,
              "maximum_amount": 68607706,
              "recurring_enabled": true,
              "installment_payment_enabled": true
            }
          ]
        }
      ],
      "metadata": {
        "city": "NY",
        "unit": "245"
      }
    }
  },
  "url": {
    "raw": "{{baseUrl}}/account/:account_id/connectors",
    "host": ["{{baseUrl}}"],
    "path": ["account", ":account_id", "connectors"],
    "variable": [
      {
        "key": "account_id",
        "value": "{{merchant_id}}",
        "description": "(Required) The unique identifier for the merchant account"
      }
    ]
  },
  "description": "Create a new Payment Connector for the merchant account. The connector could be a payment processor / facilitator / acquirer or specialised services like Fraud / Accounting etc."
}
