code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.Customer.modify(
    "cus_8TEMHVY5moxIPI",
    metadata={"order_id": "6735"},
  )
  '''Response {
    "id": "cus_8TEMHVY5moxIPI",
    "object": "customer",
    "address": null,
    "balance": 0,
    "created": 1463528816,
    "currency": "usd",
    "default_source": "card_18CHs82eZvKYlo2C9BGk8uHq",
    "delinquent": true,
    "description": "Ava Anderson",
    "discount": null,
    "email": "ava.anderson.22@example.com",
    "invoice_prefix": "F899D8E",
    "invoice_settings": {
      "custom_fields": null,
      "default_payment_method": null,
      "footer": null,
      "rendering_options": null
    },
    "livemode": false,
    "metadata": {
      "order_id": "6735"
    },
    "name": null,
    "next_invoice_sequence": 12,
    "phone": null,
    "preferred_locales": [],
    "shipping": null,
    "tax_exempt": "none",
    "test_clock": null
  }'''
nl: Update a customerUpdates the specified customer by setting the values of the parameters passed. Any parameters not provided will be left unchanged.  For example, if you pass the source parameter, that becomes the customer’s active source (e.g., a card) to be used for all charges in the future. When you update a customer to a new valid card source by passing the source parameter: for each of the customer’s current subscriptions, if the subscription bills automatically and is in the past_due state, then the latest open invoice for the subscription with automatic collection enabled will be retried. This retry will not count as an automatic retry, and will not affect the next regularly scheduled payment for the invoice. Changing the default_source for a customer will not trigger this behavior.
  This request accepts mostly the same arguments as the customer creation call.Parameters address optional dictionary The customer’s address.Show child parameters description optional An arbitrary string that you can attach to a customer object. It is displayed alongside the customer in the dashboard. email optional Customer’s email address. It’s displayed alongside the customer in your dashboard and can be useful for searching and tracking. This may be up to 512 characters. 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. name optional The customer’s full name or business name. phone optional The customer’s phone number. shipping optional dictionary The customer’s shipping information. Appears on invoices emailed to this customer.Show child parametersMore parametersExpand all  balance optional   cash_balance optional dictionary preview feature   coupon optional   default_source optional   invoice_prefix optional   invoice_settings optional dictionary   next_invoice_sequence optional   preferred_locales optional   promotion_code optional   source optional   tax optional dictionary   tax_exempt optional ReturnsReturns the customer object if the update succeeded. Raises an error if update parameters are invalid (e.g. specifying an invalid coupon or an invalid source)