code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  customer = stripe.Customer.create()
  print(customer.last_response.request_id)
nl: Request IDsEach API request has an associated request identifier. You can find this value in the response headers, under Request-Id. You can also find request identifiers in the URLs of individual request logs in your Dashboard. If you need to contact us about a specific request, providing the request identifier will ensure the fastest possible resolution