Profile - Update
PUT /v2/profiles/{id}
Endpoint to update a profile.
cURL example
curl --request PUT \
--url https://sandbox.hyperswitch.io/v2/profiles/{id} \
--header 'Content-Type: application/json' \
--header 'X-Merchant-Id: <x-merchant-id>' \
--header 'api-key: <api-key>' \
--data '
{
"enable_payment_response_hash": true,
"redirect_to_merchant_with_http_post": false,
"payment_link_config": {
"display_sdk_only": false,
"enabled_saved_payment_method": false,
"hide_card_nickname_field": false,
"show_card_form_by_default": true,
"business_specific_configs": {
"display_sdk_only": false,
"enabled_saved_payment_method": false,
"hide_card_nickname_field": false,
"show_card_form_by_default": true
}
},
"collect_shipping_details_from_wallet_connector_if_required": false,
"collect_billing_details_from_wallet_connector_if_required": false,
"always_collect_shipping_details_from_wallet_connector": false,
"always_collect_billing_details_from_wallet_connector": false,
"payout_link_config": {
"payout_test_mode": false
},
"is_click_to_pay_enabled": false,
"split_txns_enabled": "skip"
}
'Successful response (200)
Authorizations
api-key (header, required) — Admin API keys allow privileged actions (e.g., creating merchant and connector accounts).
Headers
X-Merchant-Id (string, required) — Merchant ID of the profile.
api-key (string, required) — see Authorizations above.
Content-Type: application/json
Path parameters
id (string, required) — The unique identifier for the profile.
Body parameters
Content type: application/json
profile_name (string, required) — The name of profile. Maximum length: 64.
return_url (string | null) — URL to redirect after completion. Max length: 255. Example: "https://www.example.com/success"
enable_payment_response_hash (boolean | null) — default: true. Enable payment response hash. Example: true
payment_response_hash_key (string | null) — Hash key used for webhook and redirect signature. If not provided, generated automatically.
redirect_to_merchant_with_http_post (boolean | null) — default: false. If true, redirect to merchant with HTTP POST.
webhook_details (object) — See webhook attributes in response section (webhook_username, webhook_url, enabled statuses, etc.).
metadata (object) — Additional unstructured information.
order_fulfillment_time (integer | null) — x >= 0. Time (in seconds) till which a payment is active once session starts. Example: 900
order_fulfillment_time_origin (enum: "create" | "confirm")
applepay_verified_domains (string[] | null)
session_expiry (integer | null) — Default expiry for client secret. x >= 0. Example: 900
payment_link_config (object) — UI and payment link configuration.
authentication_connector_details (object) — Authentication connector configuration.
use_billing_as_payment_method_billing (boolean | null)
collect_shipping_details_from_wallet_connector_if_required (boolean | null) — default: false
collect_billing_details_from_wallet_connector_if_required (boolean | null) — default: false
always_collect_shipping_details_from_wallet_connector (boolean | null) — default: false
always_collect_billing_details_from_wallet_connector (boolean | null) — default: false
is_connector_agnostic_mit_enabled (boolean | null) — If true, MITs can be processed through a different connector than CIT based on routing; if false, MIT uses same connector as CIT.
payout_link_config (object) — GenericLinkUiConfig for payouts.
outgoing_webhook_custom_http_headers (object) — Key-value pairs sent as custom headers in outgoing webhooks (recommendation: avoid more than four pairs).
tax_connector_id (string | null) — Merchant connector id for tax_calculator connector.
is_tax_connector_enabled (boolean) — If true, tax_connector_id will be checked.
is_network_tokenization_enabled (boolean)
is_click_to_pay_enabled (boolean) — default: false
authentication_product_ids (object)
card_testing_guard_config (object) — Card testing guard settings and thresholds.
is_clear_pan_retries_enabled (boolean | null)
is_debit_routing_enabled (boolean | null)
merchant_business_country (enum string) — Country code (see list).
is_iframe_redirection_enabled (boolean | null)
is_external_vault_enabled (boolean | null)
external_vault_connector_details (object)
merchant_category_code (string) — Example: "5411"
merchant_country_code (string)
split_txns_enabled (enum: "enable" | "skip") — default: skip
billing_processor_id (string | null)
is_l2_l3_enabled (boolean | null)
Response fields
200 application/json — Profile Updated
Key response attributes (types and descriptions mirror body fields; examples shown in the response example above):
merchant_id (string) — The identifier for Merchant Account.
id (string) — Identifier for profile; used for creating merchant accounts, payments and payouts.
profile_name (string)
enable_payment_response_hash (boolean)
redirect_to_merchant_with_http_post (boolean)
is_tax_connector_enabled (boolean)
is_network_tokenization_enabled (boolean)
is_click_to_pay_enabled (boolean)
is_clear_pan_retries_enabled (boolean)
split_txns_enabled (enum)
return_url (string | null)
payment_response_hash_key (string | null)
webhook_details (object)
metadata (object)
applepay_verified_domains (string[] | null)
session_expiry (integer)
payment_link_config (object)
authentication_connector_details (object)
use_billing_as_payment_method_billing (boolean | null)
extended_card_info_config (object)
collect_shipping_details_from_wallet_connector_if_required (boolean | null)
collect_billing_details_from_wallet_connector_if_required (boolean | null)
always_collect_shipping_details_from_wallet_connector (boolean | null)
always_collect_billing_details_from_wallet_connector (boolean | null)
is_connector_agnostic_mit_enabled (boolean | null)
payout_link_config (object)
outgoing_webhook_custom_http_headers (object)
order_fulfillment_time (integer | null)
order_fulfillment_time_origin (enum)
tax_connector_id (string | null)
should_collect_cvv_during_payment (boolean | null)
authentication_product_ids (object)
card_testing_guard_config (object)
is_debit_routing_enabled (boolean | null)
merchant_business_country (enum string)
is_iframe_redirection_enabled (boolean | null)
is_external_vault_enabled (boolean | null)
external_vault_connector_details (object)
merchant_category_code (string)
merchant_country_code (string)
revenue_recovery_retry_algorithm_type (enum: "monitoring" | "smart" | "cascading")
billing_processor_id (string | null)
is_l2_l3_enabled (boolean | null)
Notes
Do not modify or remove query parameters in the provided URLs when using examples.
For webhook custom headers, it's recommended not to use more than four key-value pairs.
If you need the API specification in a different format or want individual field schemas extracted into separate example blocks, tell me which fields you want expanded.