{
  "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"
    },
    {
      "key": "x-merchant-id",
      "value": "{{merchant_id}}"
    }
  ],
  "body": {
    "mode": "raw",
    "options": {
      "raw": {
        "language": "json"
      }
    },
    "raw_json_formatted": {
      "connector_type": "payment_processor",
      "connector_account_details": {
        "auth_type": "HeaderKey",
        "api_key": "{{connector_api_key}}"
      },
      "connector_label": "updated_stripe_connector",
      "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/:connector_id",
    "host": ["{{baseUrl}}"],
    "path": ["account", ":account_id", "connectors", ":connector_id"],
    "variable": [
      {
        "key": "account_id",
        "value": "{{merchant_id}}"
      },
      {
        "key": "connector_id",
        "value": "{{merchant_connector_id}}"
      }
    ]
  },
  "description": "To update an existing Payment Connector. Helpful in enabling / disabling different payment methods and other settings for the connector etc"
}
