Payment Connector - Create

POST {{baseUrl}}/account/:account_id/connectors

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.

Request Body

{"connector_type"=>"payment_processor", "connector_name"=>"stripe", "connector_account_details"=>{"auth_type"=>"HeaderKey", "api_key"=>"{{connector_api_key}}"}, "test_mode"=>true, "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, "accepted_countries"=>{"type"=>"disable_only", "list"=>["HK"]}, "accepted_currencies"=>{"type"=>"enable_only", "list"=>["USD", "GBP", "INR"]}}, {"payment_method_type"=>"debit", "card_networks"=>["Visa", "Mastercard"], "minimum_amount"=>1, "maximum_amount"=>68607706, "recurring_enabled"=>true, "installment_payment_enabled"=>true, "accepted_countries"=>{"type"=>"disable_only", "list"=>["HK"]}, "accepted_currencies"=>{"type"=>"enable_only", "list"=>["USD", "GBP", "INR"]}}]}, {"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"}, "connector_webhook_details"=>{"merchant_secret"=>"MyWebhookSecret"}, "business_country"=>"US", "business_label"=>"default"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring