# Detach a payment method Detaches a payment method from a customer for the current account, based on the authentication that was used to make the request. Endpoint: POST /payment-methods/{id}/detach Version: 1.0 ## Path parameters: - `id` (string, required) ## Header parameters: - `cc-api-key` (string, required) Chaching API Key ## Response 200 fields (application/json): - `id` (string, required) Unique identifier for the payment method. Example: "pm_1Q0PsIJvEtkwdCNYMSaVuRz6" - `object` (string, required) Type of Stripe object. Example: "payment_method" - `allow_redisplay` (string, required) Controls whether the payment method can be redisplayed. Example: "unspecified" - `billing_details` (object, required) Billing details associated with the payment method. - `billing_details.address` (object, required) Billing address associated with the payment method. - `billing_details.address.city` (string,null) City of the billing address. - `billing_details.address.country` (string,null) Country of the billing address. - `billing_details.address.line1` (string,null) Street line 1 of the billing address. - `billing_details.address.line2` (string,null) Street line 2 of the billing address. - `billing_details.address.postal_code` (string,null) Postal or ZIP code. - `billing_details.address.state` (string,null) State or province. - `billing_details.email` (string,null) Billing email address. - `billing_details.name` (string,null, required) Full name of the account owner. Example: "John Doe" - `billing_details.phone` (string,null) Owner phone number. - `created` (number, required) Unix timestamp when the payment method was created. Example: 1726673582 - `customer` (string,null) ID of the attached customer, if any. - `livemode` (boolean, required) Indicates if the object exists in live mode. - `metadata` (object, required) Set of key-value pairs for storing additional information. Example: {} - `type` (string, required) Payment method type. Example: "us_bank_account" - `us_bank_account` (object) US bank account details if the payment method is a bank account. - `us_bank_account.account_holder_type` (string, required) Type of account holder. Example: "individual" - `us_bank_account.account_type` (string, required) Bank account type. Example: "checking" - `us_bank_account.bank_name` (string, required) Name of the bank. Example: "STRIPE TEST BANK" - `us_bank_account.financial_connections_account` (string,null) Financial connections account reference if available. - `us_bank_account.fingerprint` (string, required) Stripe fingerprint identifying the bank account. Example: "LstWJFsCK7P349Bg" - `us_bank_account.last4` (string, required) Last 4 digits of the bank account. Example: "6789" - `us_bank_account.networks` (object, required) Supported and preferred bank transfer networks. - `us_bank_account.networks.preferred` (string, required) Preferred bank transfer network. Example: "ach" - `us_bank_account.networks.supported` (array, required) List of supported bank transfer networks. Example: ["ach"] - `us_bank_account.routing_number` (string, required) Bank routing number. Example: "110000000" - `us_bank_account.status_details` (object, required) Additional status details if available. Example: {} ## Response 201 fields (application/json): - `id` (string, required) Unique identifier for the payment method. Example: "pm_1Q0PsIJvEtkwdCNYMSaVuRz6" - `object` (string, required) Type of Stripe object. Example: "payment_method" - `allow_redisplay` (string, required) Controls whether the payment method can be redisplayed. Example: "unspecified" - `billing_details` (object, required) Billing details associated with the payment method. - `billing_details.address` (object, required) Billing address associated with the payment method. - `billing_details.address.city` (string,null) City of the billing address. - `billing_details.address.country` (string,null) Country of the billing address. - `billing_details.address.line1` (string,null) Street line 1 of the billing address. - `billing_details.address.line2` (string,null) Street line 2 of the billing address. - `billing_details.address.postal_code` (string,null) Postal or ZIP code. - `billing_details.address.state` (string,null) State or province. - `billing_details.email` (string,null) Billing email address. - `billing_details.name` (string,null, required) Full name of the account owner. Example: "John Doe" - `billing_details.phone` (string,null) Owner phone number. - `created` (number, required) Unix timestamp when the payment method was created. Example: 1726673582 - `customer` (string,null) ID of the attached customer, if any. - `livemode` (boolean, required) Indicates if the object exists in live mode. - `metadata` (object, required) Set of key-value pairs for storing additional information. Example: {} - `type` (string, required) Payment method type. Example: "us_bank_account" - `us_bank_account` (object) US bank account details if the payment method is a bank account. - `us_bank_account.account_holder_type` (string, required) Type of account holder. Example: "individual" - `us_bank_account.account_type` (string, required) Bank account type. Example: "checking" - `us_bank_account.bank_name` (string, required) Name of the bank. Example: "STRIPE TEST BANK" - `us_bank_account.financial_connections_account` (string,null) Financial connections account reference if available. - `us_bank_account.fingerprint` (string, required) Stripe fingerprint identifying the bank account. Example: "LstWJFsCK7P349Bg" - `us_bank_account.last4` (string, required) Last 4 digits of the bank account. Example: "6789" - `us_bank_account.networks` (object, required) Supported and preferred bank transfer networks. - `us_bank_account.networks.preferred` (string, required) Preferred bank transfer network. Example: "ach" - `us_bank_account.networks.supported` (array, required) List of supported bank transfer networks. Example: ["ach"] - `us_bank_account.routing_number` (string, required) Bank routing number. Example: "110000000" - `us_bank_account.status_details` (object, required) Additional status details if available. Example: {}