code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.Account.create_external_account(
    "acct_1032D82eZvKYlo2C",
    external_account="tok_visa_debit",
  )
  '''Response {
    "id": "card_1LSds52eZvKYlo2C2trSBqxB",
    "object": "card",
    "address_city": null,
    "address_country": null,
    "address_line1": null,
    "address_line1_check": null,
    "address_line2": null,
    "address_state": null,
    "address_zip": null,
    "address_zip_check": null,
    "brand": "Visa",
    "country": "US",
    "cvc_check": "pass",
    "dynamic_last4": null,
    "exp_month": 8,
    "exp_year": 2023,
    "fingerprint": "Xt5EWLLDS7FJjR1c",
    "funding": "credit",
    "last4": "4242",
    "metadata": {},
    "name": null,
    "redaction": null,
    "tokenization_method": null,
    "account": "acct_1032D82eZvKYlo2C"
  }'''
nl: Create a cardWhen you create a new debit card, you must specify a Custom account to create it on.If the account has no default destination card, then the new card will become the default. However, if the owner already has a default then it will not change. To change the default, you should set default_for_currency to true when creating a card for a Custom account.Parameters external_account required A token, like the ones returned by Stripe.js. Stripe will automatically validate the card.Show child parameters metadata optional dictionary Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.More parametersExpand all  default_for_currency optional ReturnsReturns the card object