Merchant Connector - Create
Create a Merchant Connector for a merchant account (payment processor, acquirer, fraud/accounting services, etc).
Example — cURL
Create a merchant account with custom connector label
curl --request POST \
--url https://sandbox.hyperswitch.io/account/{account_id}/connectors \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"test_mode": false,
"disabled": false
}
'Response (200):
{
"connector_type": "payment_processor",
"connector_name": "authipay",
"merchant_connector_id": "mca_5apGeP94tMts6rg3U3kR",
"profile_id": "<string>",
"status": "inactive",
"connector_label": "stripe_US_travel",
"connector_account_details": {
"connector_account_details": {},
"metadata": {}
},
"payment_methods_enabled": [
{
"accepted_countries": {
"list": [
"FR",
"DE",
"IN"
],
"type": "disable_only"
},
"accepted_currencies": {
"list": [
"USD",
"EUR"
],
"type": "enable_only"
},
"installment_payment_enabled": true,
"maximum_amount": 68607706,
"minimum_amount": 1,
"payment_method": "wallet",
"payment_method_issuers": [
"labore magna ipsum",
"aute"
],
"payment_method_types": [
"upi_collect",
"upi_intent"
],
"payment_schemes": [
"Discover",
"Discover"
],
"recurring_enabled": true
}
],
"connector_webhook_details": {
"merchant_secret": "12345678900987654321",
"additional_secret": "12345678900987654321"
},
"metadata": {},
"test_mode": false,
"disabled": false,
"frm_configs": "\n[{\"gateway\":\"stripe\",\"payment_methods\":[{\"payment_method\":\"card\",\"payment_method_types\":[{\"payment_method_type\":\"credit\",\"card_networks\":[\"Visa\"],\"flow\":\"pre\",\"action\":\"cancel_txn\"},{\"payment_method_type\":\"debit\",\"card_networks\":[\"Visa\"],\"flow\":\"pre\"}]}]}]\n",
"business_country": "AF",
"business_label": "travel",
"business_sub_label": "chase",
"applepay_verified_domains": [
"<string>"
],
"pm_auth_config": {},
"additional_merchant_data": {
"open_banking_recipient_data": {
"connector_recipient_id": "<string>"
}
},
"connector_wallets_details": {
"apple_pay_combined": {},
"apple_pay": {},
"amazon_pay": {},
"samsung_pay": {},
"paze": {},
"google_pay": {}
}
}HTTP Request
POST /account/{account_id}/connectors
Authorizations
api-key (string, header, required) Use the API key created under your merchant account from the HyperSwitch dashboard. API key is used to authenticate API requests from your merchant server only. Don't expose this key on a website or embed it in a mobile application.
Path Parameters
account_id (string, required) — The unique identifier for the merchant account
Body (application/json)
Create a new Merchant Connector for the merchant account.
Fields:
connector_type (enum, required) Type of the Connector for the financial use case. Could range from Payments to Accounting to Banking. Available options:
payment_processor,payment_vas,fin_operations,fiz_operations,networks,banking_entities,non_banking_finance,payout_processor,payment_method_auth,authentication_processor,tax_processor,billing_processor,vault_processorconnector_name (enum, required) Available options (partial list shown; full list available in response schema): See expandable block below for the full list.
connector_label (string | null) Unique label to identify this connector account on the Hyperswitch dashboard and reports. Example:
"stripe_US_travel"profile_id (string | null) Identifier for the profile; if not provided default will be chosen from merchant account. Maximum string length: 64
connector_account_details (object) Connector-specific account details
payment_methods_enabled (object[] | null) An array of objects detailing payment methods to enable under this merchant connector account. Example:
connector_webhook_details (object) Webhook secrets and details for the connector
metadata (object) Metadata for storing additional unstructured information on the object
test_mode (boolean | null, default: false) Indicates if the connector is in Test mode. Example:
falsedisabled (boolean | null, default: false) Indicates if the connector is disabled. Example:
falsefrm_configs (object[] | null) Contains the FRM configs for the merchant connector. Example stringified config:
"\n[{\"gateway\":\"stripe\",\"payment_methods\":[{\"payment_method\":\"card\",\"payment_method_types\":[{\"payment_method_type\":\"credit\",\"card_networks\":[\"Visa\"],\"flow\":\"pre\",\"action\":\"cancel_txn\"},{\"payment_method_type\":\"debit\",\"card_networks\":[\"Visa\"],\"flow\":\"pre\"}]}]}]\n"business_country (enum) Two-letter country code. Full list is large; see expandable block below.
business_label (string | null) Business label the connector account is attached to. To be deprecated; use
profile_idinstead.business_sub_label (string | null) Business sublabel the connector account is attached to. To be deprecated; use
profile_idinstead. Example:"chase"merchant_connector_id (string | null) Unique ID of the connector. Example:
"mca_5apGeP94tMts6rg3U3kR"pm_auth_config (object) Payment method auth configuration
status (enum)
inactiveoractiveadditional_merchant_data (object) Additional merchant-specific data (e.g., open banking recipient data)
connector_wallets_details (object) Details for wallet integrations (apple_pay, google_pay, etc.)
Response (200 — application/json)
Merchant Connector Created — returns the created merchant connector object. Fields largely mirror the request body plus:
connector_type (enum, required)
connector_name (enum, required)
merchant_connector_id (string, required) — Unique ID of the merchant connector account. Example:
"mca_5apGeP94tMts6rg3U3kR"profile_id (string, required) — Identifier for the profile (max length 64)
status (enum, required) —
inactiveoractiveconnector_label (string | null) — Example:
"stripe_US_travel"connector_account_details (object)
payment_methods_enabled (object[] | null)
connector_webhook_details (object)
metadata (object)
test_mode (boolean | null, default: false)
disabled (boolean | null, default: false)
frm_configs (object[] | null)
business_country (enum)
business_label (string | null) — Example:
"travel"business_sub_label (string | null) — Example:
"chase"applepay_verified_domains (string[] | null)
pm_auth_config (object)
additional_merchant_data (object)
connector_wallets_details (object)
Example response body is shown in the Example section above.
Was this page helpful?
Yes / No
Suggest edits: https://github.com/juspay/hyperswitch/edit/main/api-reference/v1/merchant-connector-account/merchant-connector--create.mdx Raise issue: https://github.com/juspay/hyperswitch/issues/new?title=Issue%20on%20docs&body=Path:%20/v1/merchant-connector-account/merchant-connector--create
Related:
API Key - List: https://api-reference.hyperswitch.io/v1/api-key/api-key--list
Merchant Connector - Retrieve: https://api-reference.hyperswitch.io/v1/merchant-connector-account/merchant-connector--retrieve
Responses are generated using AI and may contain mistakes.