Delete a customer source
DELETE
/v1/customers/{customer}/cards/{id} https://api.stripe.com/
Parameters
path Path Parameters
| Name | Type |
|---|---|
customer
required
| string |
id
required
| string |
Request Body
application/x-www-form-urlencoded
{ expand?: string[]; }
Responses
200 application/json
Successful response.
type PaymentSource = interface Account {
business_profile?:AccountBusinessProfile | null;
business_type?: "company" | "government_entity" | "individual" | "non_profit" | null;
capabilities?:AccountCapabilities ;
charges_enabled?: boolean;
company?:LegalEntityCompany ;
controller?:AccountUnificationAccountController ;
country?: string;
created?: number;
default_currency?: string;
details_submitted?: boolean;
email?: string | null;
external_accounts?: {
data: (BankAccount | Card )[];
has_more: boolean;
object: "list";
url: string;
};
future_requirements?:AccountFutureRequirements ;
groups?:AccountGroupMembership | null;
id: string;
individual?:Person ;
metadata?: { };
object: "account";
payouts_enabled?: boolean;
requirements?:AccountRequirements ;
settings?:AccountSettings | null;
tos_acceptance?:AccountTosAcceptance ;
type?: "custom" | "express" | "none" | "standard";
} | interface BankAccount {
account?:Account | string | null;
account_holder_name?: string | null;
account_holder_type?: string | null;
account_type?: string | null;
available_payout_methods?: ("instant" | "standard")[] | null;
bank_name?: string | null;
country: string;
currency: string;
customer?: Customer | DeletedCustomer | string | null;
default_for_currency?: boolean | null;
fingerprint?: string | null;
future_requirements?: ExternalAccountRequirements | null;
id: string;
last4: string;
metadata?: { } | null;
object: "bank_account";
requirements?: ExternalAccountRequirements | null;
routing_number?: string | null;
status: string;
} | interface Card {
account?:Account | string | null;
address_city?: string | null;
address_country?: string | null;
address_line1?: string | null;
address_line1_check?: string | null;
address_line2?: string | null;
address_state?: string | null;
address_zip?: string | null;
address_zip_check?: string | null;
allow_redisplay?: "always" | "limited" | "unspecified" | null;
available_payout_methods?: ("instant" | "standard")[] | null;
brand: string;
country?: string | null;
currency?: string | null;
customer?: Customer | DeletedCustomer | string | null;
cvc_check?: string | null;
default_for_currency?: boolean | null;
dynamic_last4?: string | null;
exp_month: number;
exp_year: number;
fingerprint?: string | null;
funding: string;
id: string;
iin?: string;
last4: string;
metadata?: { } | null;
name?: string | null;
networks?: TokenCardNetworks;
object: "card";
regulated_status?: "regulated" | "unregulated" | null;
status?: string | null;
tokenization_method?: string | null;
} | interface Source {
ach_credit_transfer?:SourceTypeAchCreditTransfer ;
ach_debit?:SourceTypeAchDebit ;
acss_debit?:SourceTypeAcssDebit ;
alipay?:SourceTypeAlipay ;
allow_redisplay?: "always" | "limited" | "unspecified" | null;
amount?: number | null;
au_becs_debit?:SourceTypeAuBecsDebit ;
bancontact?:SourceTypeBancontact ;
card?:SourceTypeCard ;
card_present?:SourceTypeCardPresent ;
client_secret: string;
code_verification?:SourceCodeVerificationFlow ;
created: number;
currency?: string | null;
customer?: string;
eps?:SourceTypeEps ;
flow: string;
giropay?:SourceTypeGiropay ;
id: string;
ideal?:SourceTypeIdeal ;
klarna?:SourceTypeKlarna ;
livemode: boolean;
metadata?: { } | null;
multibanco?:SourceTypeMultibanco ;
object: "source";
owner?:SourceOwner | null;
p24?:SourceTypeP24 ;
receiver?:SourceReceiverFlow ;
redirect?:SourceRedirectFlow ;
sepa_debit?:SourceTypeSepaDebit ;
sofort?:SourceTypeSofort ;
source_order?:SourceOrder ;
statement_descriptor?: string | null;
status: string;
three_d_secure?:SourceTypeThreeDSecure ;
type: "ach_credit_transfer" | "ach_debit" | "acss_debit" | "alipay" | "au_becs_debit" | "bancontact" | "card" | "card_present" | "eps" | "giropay" | "ideal" | "klarna" | "multibanco" | "p24" | "sepa_debit" | "sofort" | "three_d_secure" | "wechat";
usage?: string | null;
wechat?:SourceTypeWechat ;
} | type DeletedPaymentSource = interface DeletedBankAccount {
currency?: string | null;
deleted: true;
id: string;
object: "bank_account";
} | interface DeletedCard {
currency?: string | null;
deleted: true;
id: string;
object: "card";
}
business_profile?:
business_type?: "company" | "government_entity" | "individual" | "non_profit" | null;
capabilities?:
charges_enabled?: boolean;
company?:
controller?:
country?: string;
created?: number;
default_currency?: string;
details_submitted?: boolean;
email?: string | null;
external_accounts?: {
data: (
has_more: boolean;
object: "list";
url: string;
};
future_requirements?:
groups?:
id: string;
individual?:
metadata?: { };
object: "account";
payouts_enabled?: boolean;
requirements?:
settings?:
tos_acceptance?:
type?: "custom" | "express" | "none" | "standard";
} | interface BankAccount {
account?:
account_holder_name?: string | null;
account_holder_type?: string | null;
account_type?: string | null;
available_payout_methods?: ("instant" | "standard")[] | null;
bank_name?: string | null;
country: string;
currency: string;
customer?: Customer | DeletedCustomer | string | null;
default_for_currency?: boolean | null;
fingerprint?: string | null;
future_requirements?: ExternalAccountRequirements | null;
id: string;
last4: string;
metadata?: { } | null;
object: "bank_account";
requirements?: ExternalAccountRequirements | null;
routing_number?: string | null;
status: string;
} | interface Card {
account?:
address_city?: string | null;
address_country?: string | null;
address_line1?: string | null;
address_line1_check?: string | null;
address_line2?: string | null;
address_state?: string | null;
address_zip?: string | null;
address_zip_check?: string | null;
allow_redisplay?: "always" | "limited" | "unspecified" | null;
available_payout_methods?: ("instant" | "standard")[] | null;
brand: string;
country?: string | null;
currency?: string | null;
customer?: Customer | DeletedCustomer | string | null;
cvc_check?: string | null;
default_for_currency?: boolean | null;
dynamic_last4?: string | null;
exp_month: number;
exp_year: number;
fingerprint?: string | null;
funding: string;
id: string;
iin?: string;
last4: string;
metadata?: { } | null;
name?: string | null;
networks?: TokenCardNetworks;
object: "card";
regulated_status?: "regulated" | "unregulated" | null;
status?: string | null;
tokenization_method?: string | null;
} | interface Source {
ach_credit_transfer?:
ach_debit?:
acss_debit?:
alipay?:
allow_redisplay?: "always" | "limited" | "unspecified" | null;
amount?: number | null;
au_becs_debit?:
bancontact?:
card?:
card_present?:
client_secret: string;
code_verification?:
created: number;
currency?: string | null;
customer?: string;
eps?:
flow: string;
giropay?:
id: string;
ideal?:
klarna?:
livemode: boolean;
metadata?: { } | null;
multibanco?:
object: "source";
owner?:
p24?:
receiver?:
redirect?:
sepa_debit?:
sofort?:
source_order?:
statement_descriptor?: string | null;
status: string;
three_d_secure?:
type: "ach_credit_transfer" | "ach_debit" | "acss_debit" | "alipay" | "au_becs_debit" | "bancontact" | "card" | "card_present" | "eps" | "giropay" | "ideal" | "klarna" | "multibanco" | "p24" | "sepa_debit" | "sofort" | "three_d_secure" | "wechat";
usage?: string | null;
wechat?:
} | type DeletedPaymentSource = interface DeletedBankAccount {
currency?: string | null;
deleted: true;
id: string;
object: "bank_account";
} | interface DeletedCard {
currency?: string | null;
deleted: true;
id: string;
object: "card";
}
default application/json
Error response.
interface Error {
error:ApiErrors ;
}
error:
}