code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.Account.modify_external_account(
    "acct_1032D82eZvKYlo2C",
    "card_1LSds52eZvKYlo2C2trSBqxB",
    metadata={"order_id": "6735"},
  )
  '''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": "Jenny Rosen",
    "redaction": null,
    "tokenization_method": null,
    "account": "acct_1032D82eZvKYlo2C"
  }'''
nl: Update a cardIf you need to update only some card details, like the billing address or expiration date, you can do so without having to re-enter the full card details. Stripe also works directly with card networks so that your customers can continue using your service without interruption.Parameters default_for_currency optional When set to true, this becomes the default external account for its currency. 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  address_city optional   address_country optional   address_line1 optional   address_line2 optional   address_state optional   address_zip optional   exp_month optional   exp_year optional   name optional ReturnsReturns the card object