{
  "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",
      "connector_account_details": {
        "auth_type": "HeaderKey",
        "api_key": "{{connector_api_key}}"
      },
      "test_mode": false,
      "disabled": false,
      "payment_methods_enabled": [
        {
          "payment_method": "pay_later",
          "payment_method_types": [
            {
              "minimum_amount": 1,
              "maximum_amount": 68607706,
              "recurring_enabled": true,
              "installment_payment_enabled": true,
              "payment_experience": "redirect_to_url",
              "payment_method_type": "affirm"
            }
          ]
        },
        {
          "payment_method": "pay_later",
          "payment_method_types": [
            {
              "minimum_amount": 1,
              "maximum_amount": 68607706,
              "recurring_enabled": true,
              "installment_payment_enabled": true,
              "payment_experience": "redirect_to_url",
              "payment_method_type": "afterpay_clearpay"
            }
          ]
        },
        {
          "payment_method": "pay_later",
          "payment_method_types": [
            {
              "minimum_amount": 1,
              "maximum_amount": 68607706,
              "recurring_enabled": true,
              "installment_payment_enabled": true,
              "payment_experience": "redirect_to_url",
              "payment_method_type": "klarna"
            }
          ]
        },
        {
          "payment_method": "pay_later",
          "payment_method_types": [
            {
              "minimum_amount": 1,
              "maximum_amount": 68607706,
              "recurring_enabled": true,
              "installment_payment_enabled": true,
              "payment_experience": "invoke_sdk_client",
              "payment_method_type": "klarna"
            }
          ]
        },
        {
          "payment_method": "bank_redirect",
          "payment_method_types": [
            {
              "payment_method_type": "ideal",
              "payment_experience": null,
              "card_networks": null,
              "accepted_currencies": null,
              "accepted_countries": null,
              "minimum_amount": 1,
              "maximum_amount": 68607706,
              "recurring_enabled": true,
              "installment_payment_enabled": true
            },
            {
              "payment_method_type": "giropay",
              "payment_experience": null,
              "card_networks": null,
              "accepted_currencies": null,
              "accepted_countries": null,
              "minimum_amount": 1,
              "maximum_amount": 68607706,
              "recurring_enabled": true,
              "installment_payment_enabled": true
            },
            {
              "payment_method_type": "sofort",
              "payment_experience": null,
              "card_networks": null,
              "accepted_currencies": null,
              "accepted_countries": null,
              "minimum_amount": 1,
              "maximum_amount": 68607706,
              "recurring_enabled": true,
              "installment_payment_enabled": true
            },
            {
              "payment_method_type": "eps",
              "payment_experience": null,
              "card_networks": null,
              "accepted_currencies": null,
              "accepted_countries": null,
              "minimum_amount": 1,
              "maximum_amount": 68607706,
              "recurring_enabled": true,
              "installment_payment_enabled": true
            }
          ]
        },
        {
          "payment_method": "bank_debit",
          "payment_method_types": [
            {
              "payment_method_type": "ach",
              "minimum_amount": 1,
              "maximum_amount": 68607706,
              "recurring_enabled": true,
              "installment_payment_enabled": true
            },
            {
              "payment_method_type": "becs",
              "minimum_amount": 1,
              "maximum_amount": 68607706,
              "recurring_enabled": true,
              "installment_payment_enabled": true
            },
            {
              "payment_method_type": "sepa",
              "minimum_amount": 1,
              "maximum_amount": 68607706,
              "recurring_enabled": true,
              "installment_payment_enabled": true
            }
          ]
        },
        {
          "payment_method": "bank_transfer",
          "payment_method_types": [
            {
              "payment_method_type": "ach",
              "minimum_amount": 1,
              "maximum_amount": 68607706,
              "recurring_enabled": true,
              "installment_payment_enabled": true
            },
            {
              "payment_method_type": "bacs",
              "minimum_amount": 1,
              "maximum_amount": 68607706,
              "recurring_enabled": true,
              "installment_payment_enabled": true
            },
            {
              "payment_method_type": "sepa",
              "minimum_amount": 1,
              "maximum_amount": 68607706,
              "recurring_enabled": true,
              "installment_payment_enabled": true
            }
          ]
        },
        {
          "payment_method": "card",
          "payment_method_types": [
            {
              "payment_method_type": "credit",
              "minimum_amount": 1,
              "maximum_amount": 68607706,
              "recurring_enabled": true,
              "installment_payment_enabled": true
            }
          ]
        },
        {
          "payment_method": "card",
          "payment_method_types": [
            {
              "payment_method_type": "debit",
              "minimum_amount": 1,
              "maximum_amount": 68607706,
              "recurring_enabled": true,
              "installment_payment_enabled": true
            }
          ]
        },
        {
          "payment_method": "wallet",
          "payment_method_types": [
            {
              "payment_method_type": "apple_pay",
              "payment_experience": "invoke_sdk_client",
              "minimum_amount": 1,
              "maximum_amount": 68607706,
              "recurring_enabled": true,
              "installment_payment_enabled": true
            }
          ]
        },
        {
          "payment_method": "wallet",
          "payment_method_types": [
            {
              "payment_method_type": "google_pay",
              "payment_experience": "invoke_sdk_client",
              "minimum_amount": 1,
              "maximum_amount": 68607706,
              "recurring_enabled": true,
              "installment_payment_enabled": true
            }
          ]
        }
      ],
      "metadata": {
        "google_pay": {
          "allowed_payment_methods": [
            {
              "type": "CARD",
              "parameters": {
                "allowed_auth_methods": ["PAN_ONLY", "CRYPTOGRAM_3DS"],
                "allowed_card_networks": [
                  "AMEX",
                  "DISCOVER",
                  "INTERAC",
                  "JCB",
                  "MASTERCARD",
                  "VISA"
                ]
              },
              "tokenization_specification": {
                "type": "PAYMENT_GATEWAY",
                "parameters": {
                  "gateway": "example",
                  "gateway_merchant_id": "{{gateway_merchant_id}}"
                }
              }
            }
          ],
          "merchant_info": {
            "merchant_name": "Narayan Bhat"
          }
        },
        "apple_pay": {
          "session_token_data": {
            "initiative": "web",
            "certificate": "{{certificate}}",
            "display_name": "applepay",
            "certificate_keys": "{{certificate_keys}}",
            "initiative_context": "sdk-test-app.netlify.app",
            "merchant_identifier": "merchant.com.stripe.sang"
          },
          "payment_request_data": {
            "label": "applepay pvt.ltd",
            "supported_networks": ["visa", "masterCard", "amex", "discover"],
            "merchant_capabilities": ["supports3DS"]
          }
        }
      }
    }
  },
  "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."
}
