diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 6b53caf..2ee4e03 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -1,11 +1,13 @@
-
+
+
+
+
-
@@ -350,7 +352,14 @@
1688579855150
-
+
+ 1688846277129
+
+
+
+ 1688846277129
+
+
@@ -365,7 +374,6 @@
-
@@ -390,6 +398,7 @@
-
+
+
\ No newline at end of file
diff --git a/Log/log_file.log b/Log/log_file.log
index 397da29..4be2b35 100644
--- a/Log/log_file.log
+++ b/Log/log_file.log
@@ -1624482,3 +1624482,1283 @@ INFO:root:2023-07-08 21:57:41.510499 : ++ LMS_BAS_URL mysy-training.com/ ++
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 144-236-516
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\strype_payement.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-08 21:58:04.073226 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-08 21:58:04.073226 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-08 21:58:04.073226 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-08 21:58:04.073226 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-08 21:58:04.074246 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:root:2023-07-09 13:10:49.311839 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 13:10:49.313475 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 13:10:49.313475 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 13:10:49.313475 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 13:10:49.314394 : ++ LMS_BAS_URL mysy-training.com/ ++
+INFO:werkzeug:[31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
+ * Running on http://localhost:5001
+INFO:werkzeug:[33mPress CTRL+C to quit[0m
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 13:11:09.763418 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 13:11:09.763418 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 13:11:09.763418 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 13:11:09.763418 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 13:11:09.763418 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:root:2023-07-09 13:11:15.447919 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-09 13:11:15.448928 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-09 13:11:15.451921 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:11:15] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:11:15] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:11:15] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 13:11:16.367028 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-09 13:11:16.370022 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:11:16] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 13:11:17.314666 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-09 13:11:17.315661 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-09 13:11:17.324604 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:11:17] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:11:17] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 13:11:17.331115 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-09 13:11:17.334132 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:11:17] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 13:11:17.340546 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:11:17] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:11:17] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:11:17] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 13:11:17.633944 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:11:17] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 13:11:17.638998 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:11:17] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 13:11:17.645629 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:11:17] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 13:11:17.654139 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-09 13:11:17.659161 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-09 13:11:17.663153 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:11:17] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:11:17] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:11:17] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 13:11:17.941770 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:11:17] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 13:11:17.947423 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:11:17] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 13:11:17.955427 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:11:17] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 13:11:17.971273 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:11:17] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 13:11:17.978426 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-09 13:11:17.980424 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:11:17] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:11:17] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 13:11:18.250423 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:11:18] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 13:11:18.256450 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:11:18] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 13:12:49.904372 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:12:49] "[32mPOST /myclass/api/Strip_Get_Customer_Abonnement_Data HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 13:12:49.911394 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_SAIYW4grB4YbK6 message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_30yGwviWIjHY0b message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:12:50] "POST /myclass/api/Strip_Get_Customer_Abonnement_Data/ HTTP/1.1" 200 -
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\strype_payement.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 13:14:17.003000 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 13:14:17.004002 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 13:14:17.004002 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 13:14:17.004002 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 13:14:17.004002 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 13:42:35.163008 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 13:42:35.163525 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 13:42:35.163525 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 13:42:35.164557 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 13:42:35.164557 : ++ LMS_BAS_URL mysy-training.com/ ++
+INFO:werkzeug:[31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
+ * Running on http://localhost:5001
+INFO:werkzeug:[33mPress CTRL+C to quit[0m
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 13:42:43.863254 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 13:42:43.863254 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 13:42:43.863254 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 13:42:43.863254 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 13:42:43.863254 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:root:2023-07-09 13:42:43.921699 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:42:43] "POST /myclass/api/partner_login/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 13:42:44.127027 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-09 13:42:44.129120 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-09 13:42:44.133119 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:42:44] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 13:42:44.138117 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-09 13:42:44.142925 : Connexion du partner recid = 6c5ca566d1bc750bae39c85cf9b0282239e998fa8a65e48bd0 OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:42:44] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:42:44] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:42:44] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 13:42:44.378809 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:42:44] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 13:43:48.268054 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:43:48] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 13:43:48.275767 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_poNnfVwEieHQuP message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_KsL5fv24TOJuzj message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:43:48] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\strype_payement.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 13:44:42.137045 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 13:44:42.138049 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 13:44:42.138049 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 13:44:42.138049 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 13:44:42.138049 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 13:46:43.661646 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 13:46:43.662589 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 13:46:43.662589 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 13:46:43.662589 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 13:46:43.662589 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 13:47:04.100988 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 13:47:04.101990 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 13:47:04.101990 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 13:47:04.101990 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 13:47:04.101990 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 13:47:18.515505 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 13:47:18.515505 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 13:47:18.515505 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 13:47:18.515505 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 13:47:18.515505 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 13:47:31.439502 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 13:47:31.439502 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 13:47:31.439502 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 13:47:31.439502 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 13:47:31.439502 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 13:48:23.385034 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 13:48:23.385034 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 13:48:23.385034 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 13:48:23.385034 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 13:48:23.385034 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 13:48:44.960162 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 13:48:44.960162 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 13:48:44.960162 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 13:48:44.960162 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 13:48:44.960162 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 13:49:15.097008 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 13:49:15.098008 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 13:49:15.098008 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 13:49:15.098008 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 13:49:15.098008 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:root:2023-07-09 13:49:23.345349 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:49:23] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 13:49:23.352776 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_6BMQdTWCG099SS message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_pHL8KodWFV1n2Q message='Dashboard link for request'
+INFO:root:2023-07-09 13:49:24.576528 : Strip_Get_Customer_Upcoming_Invoice -'list' object has no attribute 'keys' - Line : 2643
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:49:24] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 13:52:26.419709 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 13:52:26.419709 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 13:52:26.419709 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 13:52:26.419709 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 13:52:26.419709 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:root:2023-07-09 13:52:26.455810 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:52:26] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 13:52:26.462637 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_uP6u2y4qKY4yaP message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_ISiFM0nu594rql message='Dashboard link for request'
+INFO:root:2023-07-09 13:52:27.682088 : Strip_Get_Customer_Upcoming_Invoice -Expecting value: line 1 column 2 (char 1) - Line : 2645
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:52:27] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 13:53:21.159019 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 13:53:21.159019 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 13:53:21.159019 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 13:53:21.159019 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 13:53:21.159019 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:root:2023-07-09 13:53:21.612948 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:53:21] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 13:53:21.618943 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_8sWWvWxHH8SJl7 message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_1NsrEpv4o02SC6 message='Dashboard link for request'
+INFO:root:2023-07-09 13:53:24.464440 : Strip_Get_Customer_Upcoming_Invoice -Expecting value: line 1 column 2 (char 1) - Line : 2645
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:53:24] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 13:54:12.373156 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 13:54:12.373156 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 13:54:12.374157 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 13:54:12.374157 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 13:54:12.374157 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:root:2023-07-09 13:54:12.409412 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:54:12] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 13:54:12.417229 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_bYmAZSxe8U5PiC message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_kLGwGlpyvYDp6S message='Dashboard link for request'
+INFO:root:2023-07-09 13:54:13.640450 : Strip_Get_Customer_Upcoming_Invoice -'list' object has no attribute 'keys' - Line : 2651
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:54:13] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 13:54:47.073437 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 13:54:47.073437 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 13:54:47.073437 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 13:54:47.073437 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 13:54:47.073437 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:root:2023-07-09 13:54:47.109206 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:54:47] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 13:54:47.115620 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_pRYJ8vNShnYkVK message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_wnehE5eGNXwbxh message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 13:54:47] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 13:56:13.487113 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 13:56:13.487113 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 13:56:13.487113 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 13:56:13.487113 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 13:56:13.487113 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 13:59:34.573784 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 13:59:34.573784 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 13:59:34.573784 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 13:59:34.573784 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 13:59:34.573784 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 14:00:14.675268 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 14:00:14.675268 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 14:00:14.675268 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 14:00:14.675268 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 14:00:14.675268 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 14:00:51.424291 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 14:00:51.425278 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 14:00:51.425278 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 14:00:51.425278 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 14:00:51.425278 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 14:01:08.979845 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 14:01:08.979845 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 14:01:08.979845 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 14:01:08.979845 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 14:01:08.979845 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 14:04:26.538188 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 14:04:26.538188 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 14:04:26.539188 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 14:04:26.539188 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 14:04:26.539188 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 14:08:41.911743 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 14:08:41.911743 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 14:08:41.911743 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 14:08:41.911743 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 14:08:41.911743 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 14:08:54.202145 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 14:08:54.203146 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 14:08:54.203146 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 14:08:54.203146 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 14:08:54.203146 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:root:2023-07-09 14:11:05.467231 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:11:05] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 14:11:05.474252 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_Tir5Qv0sSCQUye message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_Nw3bScj8KpCBAg message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:11:07] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 14:13:09.051038 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:13:09] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 14:13:09.058762 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_1HJtB9hhEpEAXf message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_hkITd6HY2tS02c message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:13:10] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 14:18:49.931330 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:18:49] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 14:18:49.937981 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_SXorBH04W5oz1b message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_Jyuv2qXFIXEyUT message='Dashboard link for request'
+INFO:root:2023-07-09 14:18:51.219518 : Strip_Get_Customer_Upcoming_Invoice -unexpected '}' - Line : 2671
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:18:51] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 14:19:17.599917 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:19:17] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 14:19:17.612048 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_qhBdo4Yt9fFsV5 message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_VahAE93ctB8omj message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:19:18] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 14:20:20.596021 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:20:20] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 14:20:20.602644 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_Pwtv5S6nYPr9Le message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_XGsiUc49XKTRdG message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:20:21] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 14:21:05.257950 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:21:05] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 14:21:05.266457 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_vjupL9CPkuE264 message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_cEnx7LRjZIfDEA message='Dashboard link for request'
+INFO:root:2023-07-09 14:21:06.044564 : Strip_Get_Customer_Upcoming_Invoice -'line' is undefined - Line : 2677
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:21:06] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 14:22:48.029229 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:22:48] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 14:22:48.037565 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_OYNi8ZoagDjcwl message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_hjMr0HbmZ1Rrpp message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:22:49] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 14:23:49.465789 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:23:49] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 14:23:49.471052 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_Ij9b0IyOhx9z20 message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_83Ag0pBco0a5GD message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:23:50] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 14:32:13.063328 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:32:13] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 14:32:13.070295 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_ElrCIikysELkaT message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_Gooja3mQmQFw7n message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:32:14] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\strype_payement.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 14:36:43.857466 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 14:36:43.858461 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 14:36:43.858461 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 14:36:43.858461 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 14:36:43.858461 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\strype_payement.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 14:37:32.841549 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 14:37:32.841549 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 14:37:32.841549 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 14:37:32.841549 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 14:37:32.841549 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:root:2023-07-09 14:42:09.901857 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:42:09] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 14:42:09.907615 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_o5HtSobEeFRQUm message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_IpuaCB8DDNE574 message='Dashboard link for request'
+INFO:root:2023-07-09 14:42:11.137262 : Strip_Get_Customer_Upcoming_Invoice -Encountered unknown tag 'do'. Jinja was looking for the following tags: 'endfor' or 'else'. The innermost block that needs to be closed is 'for'. - Line : 2671
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:42:11] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 14:43:50.060022 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:43:50] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 14:43:50.067036 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_POL9uSNCnDvsI7 message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_rAUr5IQ0HaHLSD message='Dashboard link for request'
+INFO:root:2023-07-09 14:43:50.832463 : Strip_Get_Customer_Upcoming_Invoice -Encountered unknown tag 'do'. Jinja was looking for the following tags: 'endfor' or 'else'. The innermost block that needs to be closed is 'for'. - Line : 2671
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:43:50] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 14:45:00.130894 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:45:00] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 14:45:00.137233 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_UJ0nTZ04c0mX2r message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_WcbN2I6FrnbF7H message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:45:01] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 14:49:14.829684 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:49:14] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 14:49:14.836544 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_L9DLy74Vry79Rt message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_upwtJAfzWunxhh message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:49:16] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 14:50:12.275278 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:50:12] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 14:50:12.281870 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_EGh7clPWEBG8og message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_35if7KmK5NWv5x message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:50:13] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 14:56:08.629214 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:56:08] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 14:56:08.637454 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_XIeEOYzyPAhyrY message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_1sGFGXzcsfH163 message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 14:56:09] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 15:00:08.559477 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:00:08] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 15:00:08.565480 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_XBPoaF6GsUZgcT message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_dwKDWbFwLf8Y2t message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:00:09] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 15:00:51.042661 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:00:51] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 15:00:51.049202 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_peCL5QYJkq61ic message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_Yb6y9aynj3OEcw message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:00:52] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 15:03:53.001531 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:03:53] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 15:03:53.009630 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_0t9jgaTWfxbkzZ message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_C3RTADYDuIFJDW message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:03:54] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 15:04:49.699486 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:04:49] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 15:04:49.705802 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_E9P14Gu05fYcKO message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_04NzVcwFQCC9vT message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:04:50] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 15:05:45.383347 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:05:45] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 15:05:45.389444 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_OVJka4GF4Vd8Eq message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_A8Tf1nopjcThsp message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:05:46] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 15:07:41.119155 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:07:41] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 15:07:41.125726 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_StNdsIfCRznuZ1 message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_vuSpYDdDBPiQtu message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:07:42] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\strype_payement.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 15:10:04.638767 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 15:10:04.638767 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 15:10:04.638767 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 15:10:04.638767 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 15:10:04.638767 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:root:2023-07-09 15:10:48.936830 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:10:48] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 15:10:48.941831 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_dJ3HPeVAsJuiUN message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_7yhgjXtevurRzG message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:10:50] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 15:12:48.236097 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 15:12:48.236097 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 15:12:48.236097 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 15:12:48.236097 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 15:12:48.236097 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:root:2023-07-09 15:13:24.448015 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:13:24] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 15:13:24.456052 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_5OyjN8YST32ha9 message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_ElGYborLbIizZe message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:13:25] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 15:13:59.148642 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:13:59] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 15:13:59.156009 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_0hoo74TRuoF4G6 message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_7bMJVzfqETfVtX message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:14:00] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\strype_payement.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 15:16:11.449923 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 15:16:11.450913 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 15:16:11.450913 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 15:16:11.450913 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 15:16:11.450913 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\strype_payement.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 15:16:25.137414 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 15:16:25.137414 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 15:16:25.137414 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 15:16:25.137414 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 15:16:25.137414 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\strype_payement.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 15:16:45.333601 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 15:16:45.333601 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 15:16:45.333601 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 15:16:45.333601 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 15:16:45.333601 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\strype_payement.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 15:16:58.094560 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 15:16:58.095562 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 15:16:58.095562 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 15:16:58.095562 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 15:16:58.095562 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:root:2023-07-09 15:17:04.345767 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:17:04] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 15:17:04.351780 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_uh6vaJivL9OcjT message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_bxhqI3UzCEQqgi message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:17:05] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\strype_payement.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 15:17:54.194463 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 15:17:54.195465 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 15:17:54.195465 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 15:17:54.195465 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 15:17:54.195465 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\strype_payement.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 15:18:15.283926 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 15:18:15.283926 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 15:18:15.283926 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 15:18:15.283926 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 15:18:15.283926 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:root:2023-07-09 15:18:16.996415 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:18:16] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 15:18:17.004748 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_OUN1r9zvRGwVRe message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_IyqPvf8aMMIKSB message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:18:18] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\ela_factures_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 15:24:12.249246 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 15:24:12.249246 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 15:24:12.249246 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 15:24:12.249246 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 15:24:12.249246 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 15:38:05.843716 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 15:38:05.843716 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 15:38:05.843716 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 15:38:05.843716 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 15:38:05.844716 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:root:2023-07-09 15:38:25.035803 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:38:25] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 15:38:25.041929 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_oy1zI0xELLpWuW message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_vbmGFzdIOJyss8 message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:38:26] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\ela_factures_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 15:39:44.325583 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 15:39:44.326600 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 15:39:44.326600 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 15:39:44.326600 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 15:39:44.326600 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:root:2023-07-09 15:39:57.719829 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-09 15:39:57.722831 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-09 15:39:57.729503 : Connexion du partner recid = 6c5ca566d1bc750bae39c85cf9b0282239e998fa8a65e48bd0 OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:39:57] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_OE477Rl8b6dQgx/payment_methods?type=card
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_OE477Rl8b6dQgx/payment_methods?type=card response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1NRcFBAbmaEugrFTtY1X8aoX",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "MySy DEV",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1688826977,\n "customer": "cus_OE477Rl8b6dQgx",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_OE477Rl8b6dQgx/payment_methods"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_Ab0603IHwLhmzy message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:39:58] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 15:39:59.515043 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-09 15:39:59.518681 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:39:59] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:39:59] "POST /myclass/api/Get_Active_Ftions_Mysy_and_Lms/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 15:40:05.528674 : Security check : IP adresse '127.0.0.1' connected
+DEBUG:xhtml2pdf:pisaDocument options:
+ src = '\n\n\n
\n\t\n\t\t

\n\t
\n\t\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\tMySy Dev Compte
\n\t\t\t\t\t2 place du dev
\n\t\t\t\t\t75001 Paris
\n\t\t\t\t\tFrance
\n\n\t\t\t\t
\n\n\n\t\t\t\t
\n\n\t\t\t\t\tFacture n° FACT_237000301\n\n\n\t\t\t\t
\n\t\t\t\t
\n\n\n\t\t\t\t
\n\n\t\t\t\t\t\n\t\t\t\t\t\tDate de facture: 09/07/2023 | \n\t\t\t\t\t\tDate échéance : 09/07/2023 | \n\t\t\t\t\t
\n\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\tOrigine : MySy_00YzZc\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tDescription | \n\t\t\t\t\t\t\tQuantité | \n\t\t\t\t\t\t\tPrix unitaire | \n\t\t\t\t\t\t\tMontant | \n\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tstandard | \n\t\t\t\t\t\t\t3 | \n\t\t\t\t\t\t\t50 | \n\t\t\t\t\t\t\t150.0 | \n\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t | \n\t\t\t\t\t\t\t | \n\t\t\t\t\t\t\t | \n\t\t\t\t\t\t\t | \n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\n\t\t\t\t
\n\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t\n\n\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t | \n\t\t\t\t\t\t | \n\t\t\t\t\t\tMontant HT: | \n\t\t\t\t\t\t150.0 | \n\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t | \n\t\t\t\t\t | \n\t\t\t\t\tTVA 20% : | \n\t\t\t\t\t30.0 | \n\t\t\t\t
\n\n\t\t\t\t\n\t\t\t\t\t | \n\t\t\t\t\t | \n\t\t\t\t\tMontant TTC : | \n\t\t\t\t\t180.0 | \n\t\t\t\t
\n\t\t\t
\n\n\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\n\n\n\t\t
\n\n\t
\n\t
\n\t\n\n\n'
+ dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_237000301.pdf'>
+ path = None
+ link_callback = None
+ xhtml = False
+ context_meta = None
+DEBUG:xhtml2pdf:FileObject 'https://img.mysy-training.com/MYSY-LOGO-BLUE.png', Basepath: 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\__dummy__'
+DEBUG:xhtml2pdf:URLParts: (ParseResult(scheme='https', netloc='img.mysy-training.com', path='/MYSY-LOGO-BLUE.png', params='', query='', fragment=''), 'https')
+DEBUG:xhtml2pdf:Parsing img tag, src:
+DEBUG:xhtml2pdf:Attrs: {'src': , 'width': 75.0, 'height': None, 'align': None, 'id': None}
+DEBUG:xhtml2pdf:Sending request for https://img.mysy-training.com/MYSY-LOGO-BLUE.png with httplib
+DEBUG:xhtml2pdf:Uri parsed: https://img.mysy-training.com/MYSY-LOGO-BLUE.png
+DEBUG:PIL.PngImagePlugin:STREAM b'IHDR' 16 13
+DEBUG:PIL.PngImagePlugin:STREAM b'tEXt' 41 25
+DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 6645
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:Col widths: [None, None]
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:Col 0 has width 0.0
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:Col 1 has width 0.0
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:Col 2 has width 0.0
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:Col 3 has width 0.0
+DEBUG:xhtml2pdf:Col widths: [None, None, None, None]
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:Col widths: [None, None, None, None]
+DEBUG:PIL.PngImagePlugin:STREAM b'IHDR' 16 13
+DEBUG:PIL.PngImagePlugin:STREAM b'tEXt' 41 25
+DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 6645
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 5008,\n "amount_paid": 0,\n "amount_remaining": 5008,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 5008,\n "subtotal_excluding_tax": 5008,\n "tax": null,\n "test_clock": null,\n "total": 5008,\n "total_discount_amounts": [],\n "total_excluding_tax": 5008,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_MwzVAV55DhY2W5 message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 10000,\n "amount_excluding_tax": 10000,\n "currency": "eur",\n "description": "2 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_Zt1S28WlNDDDvT message='Dashboard link for request'
+DEBUG:paramiko.transport:starting thread (client mode): 0x401e7190
+DEBUG:paramiko.transport:Local version/idstring: SSH-2.0-paramiko_3.1.0
+DEBUG:paramiko.transport:Remote version/idstring: SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1
+INFO:paramiko.transport:Connected (version 2.0, client OpenSSH_8.4p1)
+DEBUG:paramiko.transport:=== Key exchange possibilities ===
+DEBUG:paramiko.transport:kex algos: curve25519-sha256, curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group-exchange-sha256, diffie-hellman-group16-sha512, diffie-hellman-group18-sha512, diffie-hellman-group14-sha256
+DEBUG:paramiko.transport:server key: rsa-sha2-512, rsa-sha2-256, ssh-rsa, ecdsa-sha2-nistp256, ssh-ed25519
+DEBUG:paramiko.transport:client encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com
+DEBUG:paramiko.transport:server encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com
+DEBUG:paramiko.transport:client mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1
+DEBUG:paramiko.transport:server mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1
+DEBUG:paramiko.transport:client compress: none, zlib@openssh.com
+DEBUG:paramiko.transport:server compress: none, zlib@openssh.com
+DEBUG:paramiko.transport:client lang:
+DEBUG:paramiko.transport:server lang:
+DEBUG:paramiko.transport:kex follows: False
+DEBUG:paramiko.transport:=== Key exchange agreements ===
+DEBUG:paramiko.transport:Kex: curve25519-sha256@libssh.org
+DEBUG:paramiko.transport:HostKey: ssh-ed25519
+DEBUG:paramiko.transport:Cipher: aes128-ctr
+DEBUG:paramiko.transport:MAC: hmac-sha2-256
+DEBUG:paramiko.transport:Compression: none
+DEBUG:paramiko.transport:=== End of kex handshake ===
+DEBUG:paramiko.transport:kex engine KexCurve25519 specified hash_algo
+DEBUG:paramiko.transport:Switch to new keys ...
+DEBUG:paramiko.transport:Attempting password auth...
+DEBUG:paramiko.transport:Got EXT_INFO: {'server-sig-algs': b'ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com'}
+DEBUG:paramiko.transport:userauth is OK
+INFO:paramiko.transport:Authentication (password) successful!
+DEBUG:paramiko.transport:[chan 0] Max packet in: 32768 bytes
+DEBUG:paramiko.transport:Received global request "hostkeys-00@openssh.com"
+DEBUG:paramiko.transport:Rejecting "hostkeys-00@openssh.com" global request from server.
+DEBUG:paramiko.transport:[chan 0] Max packet out: 32768 bytes
+DEBUG:paramiko.transport:Secsh channel 0 opened.
+DEBUG:paramiko.transport:[chan 0] Sesch channel 0 request ok
+INFO:paramiko.transport.sftp:[chan 0] Opened sftp connection (server version 3)
+DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_237000301.pdf', 'wb')
+DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_237000301.pdf', 'wb') -> 00000000
+DEBUG:paramiko.transport.sftp:[chan 0] close(00000000)
+DEBUG:paramiko.transport.sftp:[chan 0] stat(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_237000301.pdf')
+INFO:root:2023-07-09 15:40:14.162997 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_237000301.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_237000301.pdf EST OKKKK
+INFO:paramiko.transport.sftp:[chan 0] sftp session closed.
+DEBUG:paramiko.transport:[chan 0] EOF sent (0)
+DEBUG:paramiko.transport:EOF in transport thread
+INFO:root:2023-07-09 15:40:14.163533 : Impression facture N° FACT_237000301 OK
+INFO:root:2023-07-09 15:40:14.195641 : UpdataPartnerRankingClass - Le RANKING de 0 ont été mise à jour avec la valeur {'display_rank': '20', 'date_update': '2023-07-09 15:40:14.171301'}
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:40:14] "POST /myclass/api/createOrder/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 15:40:14.288283 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-09 15:40:14.291669 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/subscriptions/sub_1NRcG3AbmaEugrFTfsCksa0L
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions/sub_1NRcG3AbmaEugrFTfsCksa0L response_code=200
+DEBUG:stripe:body='{\n "id": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1688827031,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": null,\n "cancellation_details": {\n "comment": null,\n "feedback": null,\n "reason": null\n },\n "collection_method": "charge_automatically",\n "created": 1688827031,\n "currency": "eur",\n "current_period_end": 1691505431,\n "current_period_start": 1688827031,\n "customer": "cus_OE477Rl8b6dQgx",\n "days_until_due": null,\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "ended_at": null,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_OE4OEJGI0IUo7v",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1688827032,\n "metadata": {},\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1NRcG3AbmaEugrFTfsCksa0L"\n },\n "latest_invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "livemode": false,\n "metadata": {},\n "next_pending_invoice_item_invoice": null,\n "on_behalf_of": null,\n "pause_collection": null,\n "payment_settings": {\n "payment_method_options": null,\n "payment_method_types": null,\n "save_default_payment_method": "off"\n },\n "pending_invoice_item_interval": null,\n "pending_setup_intent": null,\n "pending_update": null,\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "quantity": 2,\n "schedule": null,\n "start_date": 1688827031,\n "status": "active",\n "test_clock": null,\n "transfer_data": null,\n "trial_end": null,\n "trial_settings": {\n "end_behavior": {\n "missing_payment_method": "create_invoice"\n }\n },\n "trial_start": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_4GzmX0sX1zROQ5 message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/subscriptions/sub_1NRcG3AbmaEugrFTfsCksa0L
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=proration_behavior=create_prorations&items[0][id]=si_OE4OEJGI0IUo7v&items[0][price]=price_1MT3FLAbmaEugrFTDgw7MVgb&items[0][quantity]=3
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:40:14] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 -
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions/sub_1NRcG3AbmaEugrFTfsCksa0L response_code=200
+DEBUG:stripe:body='{\n "id": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1688827031,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": null,\n "cancellation_details": {\n "comment": null,\n "feedback": null,\n "reason": null\n },\n "collection_method": "charge_automatically",\n "created": 1688827031,\n "currency": "eur",\n "current_period_end": 1691505431,\n "current_period_start": 1688827031,\n "customer": "cus_OE477Rl8b6dQgx",\n "days_until_due": null,\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "ended_at": null,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_OE4OEJGI0IUo7v",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1688827032,\n "metadata": {},\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1NRcG3AbmaEugrFTfsCksa0L"\n },\n "latest_invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "livemode": false,\n "metadata": {},\n "next_pending_invoice_item_invoice": null,\n "on_behalf_of": null,\n "pause_collection": null,\n "payment_settings": {\n "payment_method_options": null,\n "payment_method_types": null,\n "save_default_payment_method": "off"\n },\n "pending_invoice_item_interval": null,\n "pending_setup_intent": null,\n "pending_update": null,\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "quantity": 3,\n "schedule": null,\n "start_date": 1688827031,\n "status": "active",\n "test_clock": null,\n "transfer_data": null,\n "trial_end": null,\n "trial_settings": {\n "end_behavior": {\n "missing_payment_method": "create_invoice"\n }\n },\n "trial_start": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_04fMiew3di1m2i message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:40:15] "POST /myclass/api/strip_update_subscription_qty/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 15:41:46.638781 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:41:46] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 15:41:46.643785 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 14853,\n "amount_paid": 0,\n "amount_remaining": 14853,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTIECzd5j5",\n "object": "line_item",\n "amount": -9690,\n "amount_excluding_tax": -9690,\n "currency": "eur",\n "description": "Unused time on 2 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTIECzd5j5",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRxrzAbmaEugrFT7gGvJxSC",\n "invoice_line_items": [\n "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2"\n ]\n }\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4845"\n },\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTaTytXkB4",\n "object": "line_item",\n "amount": 14535,\n "amount_excluding_tax": 14535,\n "currency": "eur",\n "description": "Remaining time on 3 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTaTytXkB4",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4845"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 15000,\n "amount_excluding_tax": 15000,\n "currency": "eur",\n "description": "3 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 5,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 14853,\n "subtotal_excluding_tax": 14853,\n "tax": null,\n "test_clock": null,\n "total": 14853,\n "total_discount_amounts": [],\n "total_excluding_tax": 14853,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_4c0neSeAaacTOH message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTIECzd5j5",\n "object": "line_item",\n "amount": -9690,\n "amount_excluding_tax": -9690,\n "currency": "eur",\n "description": "Unused time on 2 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTIECzd5j5",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRxs0AbmaEugrFT6CSQvKzt",\n "invoice_line_items": [\n "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2"\n ]\n }\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4845"\n },\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTaTytXkB4",\n "object": "line_item",\n "amount": 14535,\n "amount_excluding_tax": 14535,\n "currency": "eur",\n "description": "Remaining time on 3 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTaTytXkB4",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4845"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 15000,\n "amount_excluding_tax": 15000,\n "currency": "eur",\n "description": "3 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_NtTwEs6hrfYkB6 message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:41:47] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\ela_factures_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 15:44:26.046694 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 15:44:26.046694 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 15:44:26.046694 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 15:44:26.046694 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 15:44:26.046694 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:root:2023-07-09 15:44:29.991144 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-09 15:44:29.994156 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:44:30] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:44:30] "POST /myclass/api/Get_Active_Ftions_Mysy_and_Lms/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 15:44:34.474350 : Security check : IP adresse '127.0.0.1' connected
+DEBUG:xhtml2pdf:pisaDocument options:
+ src = '\n\n\n\n\t\n\t\t

\n\t
\n\t\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\tMySy Dev Compte
\n\t\t\t\t\t2 place du dev
\n\t\t\t\t\t75001 Paris
\n\t\t\t\t\tFrance
\n\n\t\t\t\t
\n\n\n\t\t\t\t
\n\n\t\t\t\t\tFacture n° FACT_237000302\n\n\n\t\t\t\t
\n\t\t\t\t
\n\n\n\t\t\t\t
\n\n\t\t\t\t\t\n\t\t\t\t\t\tDate de facture: 09/07/2023 | \n\t\t\t\t\t\tDate échéance : 09/07/2023 | \n\t\t\t\t\t
\n\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\tOrigine : MySy_00WirS\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tDescription | \n\t\t\t\t\t\t\tQuantité | \n\t\t\t\t\t\t\tPrix unitaire | \n\t\t\t\t\t\t\tMontant | \n\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tstandard | \n\t\t\t\t\t\t\t4 | \n\t\t\t\t\t\t\t50 | \n\t\t\t\t\t\t\t200.0 | \n\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t | \n\t\t\t\t\t\t\t | \n\t\t\t\t\t\t\t | \n\t\t\t\t\t\t\t | \n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\n\t\t\t\t
\n\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t\n\n\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t | \n\t\t\t\t\t\t | \n\t\t\t\t\t\tMontant HT: | \n\t\t\t\t\t\t200.0 | \n\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t | \n\t\t\t\t\t | \n\t\t\t\t\tTVA 20% : | \n\t\t\t\t\t40.0 | \n\t\t\t\t
\n\n\t\t\t\t\n\t\t\t\t\t | \n\t\t\t\t\t | \n\t\t\t\t\tMontant TTC : | \n\t\t\t\t\t240.0 | \n\t\t\t\t
\n\t\t\t
\n\n\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\n\n\n\t\t
\n\n\t
\n\t
\n\t\n\n\n'
+ dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_237000302.pdf'>
+ path = None
+ link_callback = None
+ xhtml = False
+ context_meta = None
+DEBUG:xhtml2pdf:FileObject 'https://img.mysy-training.com/MYSY-LOGO-BLUE.png', Basepath: 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\__dummy__'
+DEBUG:xhtml2pdf:URLParts: (ParseResult(scheme='https', netloc='img.mysy-training.com', path='/MYSY-LOGO-BLUE.png', params='', query='', fragment=''), 'https')
+DEBUG:xhtml2pdf:Parsing img tag, src:
+DEBUG:xhtml2pdf:Attrs: {'src': , 'width': 75.0, 'height': None, 'align': None, 'id': None}
+DEBUG:xhtml2pdf:Sending request for https://img.mysy-training.com/MYSY-LOGO-BLUE.png with httplib
+DEBUG:xhtml2pdf:Uri parsed: https://img.mysy-training.com/MYSY-LOGO-BLUE.png
+DEBUG:PIL.PngImagePlugin:STREAM b'IHDR' 16 13
+DEBUG:PIL.PngImagePlugin:STREAM b'tEXt' 41 25
+DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 6645
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:Col widths: [None, None]
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:Col 0 has width 0.0
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:Col 1 has width 0.0
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:Col 2 has width 0.0
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:Col 3 has width 0.0
+DEBUG:xhtml2pdf:Col widths: [None, None, None, None]
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:None
+DEBUG:xhtml2pdf:Col widths: [None, None, None, None]
+DEBUG:PIL.PngImagePlugin:STREAM b'IHDR' 16 13
+DEBUG:PIL.PngImagePlugin:STREAM b'tEXt' 41 25
+DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 6645
+DEBUG:paramiko.transport:starting thread (client mode): 0x61d0beb0
+DEBUG:paramiko.transport:Local version/idstring: SSH-2.0-paramiko_3.1.0
+DEBUG:paramiko.transport:Remote version/idstring: SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1
+INFO:paramiko.transport:Connected (version 2.0, client OpenSSH_8.4p1)
+DEBUG:paramiko.transport:=== Key exchange possibilities ===
+DEBUG:paramiko.transport:kex algos: curve25519-sha256, curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group-exchange-sha256, diffie-hellman-group16-sha512, diffie-hellman-group18-sha512, diffie-hellman-group14-sha256
+DEBUG:paramiko.transport:server key: rsa-sha2-512, rsa-sha2-256, ssh-rsa, ecdsa-sha2-nistp256, ssh-ed25519
+DEBUG:paramiko.transport:client encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com
+DEBUG:paramiko.transport:server encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com
+DEBUG:paramiko.transport:client mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1
+DEBUG:paramiko.transport:server mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1
+DEBUG:paramiko.transport:client compress: none, zlib@openssh.com
+DEBUG:paramiko.transport:server compress: none, zlib@openssh.com
+DEBUG:paramiko.transport:client lang:
+DEBUG:paramiko.transport:server lang:
+DEBUG:paramiko.transport:kex follows: False
+DEBUG:paramiko.transport:=== Key exchange agreements ===
+DEBUG:paramiko.transport:Kex: curve25519-sha256@libssh.org
+DEBUG:paramiko.transport:HostKey: ssh-ed25519
+DEBUG:paramiko.transport:Cipher: aes128-ctr
+DEBUG:paramiko.transport:MAC: hmac-sha2-256
+DEBUG:paramiko.transport:Compression: none
+DEBUG:paramiko.transport:=== End of kex handshake ===
+DEBUG:paramiko.transport:kex engine KexCurve25519 specified hash_algo
+DEBUG:paramiko.transport:Switch to new keys ...
+DEBUG:paramiko.transport:Attempting password auth...
+DEBUG:paramiko.transport:Got EXT_INFO: {'server-sig-algs': b'ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com'}
+DEBUG:paramiko.transport:userauth is OK
+INFO:paramiko.transport:Authentication (password) successful!
+DEBUG:paramiko.transport:[chan 0] Max packet in: 32768 bytes
+DEBUG:paramiko.transport:Received global request "hostkeys-00@openssh.com"
+DEBUG:paramiko.transport:Rejecting "hostkeys-00@openssh.com" global request from server.
+DEBUG:paramiko.transport:[chan 0] Max packet out: 32768 bytes
+DEBUG:paramiko.transport:Secsh channel 0 opened.
+DEBUG:paramiko.transport:[chan 0] Sesch channel 0 request ok
+INFO:paramiko.transport.sftp:[chan 0] Opened sftp connection (server version 3)
+DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_237000302.pdf', 'wb')
+DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_237000302.pdf', 'wb') -> 00000000
+DEBUG:paramiko.transport.sftp:[chan 0] close(00000000)
+DEBUG:paramiko.transport.sftp:[chan 0] stat(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_237000302.pdf')
+INFO:root:2023-07-09 15:44:39.528243 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_237000302.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_237000302.pdf EST OKKKK
+INFO:paramiko.transport.sftp:[chan 0] sftp session closed.
+DEBUG:paramiko.transport:[chan 0] EOF sent (0)
+DEBUG:paramiko.transport:EOF in transport thread
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 14853,\n "amount_paid": 0,\n "amount_remaining": 14853,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTIECzd5j5",\n "object": "line_item",\n "amount": -9690,\n "amount_excluding_tax": -9690,\n "currency": "eur",\n "description": "Unused time on 2 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTIECzd5j5",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRxumAbmaEugrFT2ZWdifpP",\n "invoice_line_items": [\n "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2"\n ]\n }\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4845"\n },\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTaTytXkB4",\n "object": "line_item",\n "amount": 14535,\n "amount_excluding_tax": 14535,\n "currency": "eur",\n "description": "Remaining time on 3 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTaTytXkB4",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4845"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 15000,\n "amount_excluding_tax": 15000,\n "currency": "eur",\n "description": "3 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 5,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 14853,\n "subtotal_excluding_tax": 14853,\n "tax": null,\n "test_clock": null,\n "total": 14853,\n "total_discount_amounts": [],\n "total_excluding_tax": 14853,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_xDK4krNeEIzjCG message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTIECzd5j5",\n "object": "line_item",\n "amount": -9690,\n "amount_excluding_tax": -9690,\n "currency": "eur",\n "description": "Unused time on 2 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTIECzd5j5",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRxunAbmaEugrFTcFuX5atc",\n "invoice_line_items": [\n "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2"\n ]\n }\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4845"\n },\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTaTytXkB4",\n "object": "line_item",\n "amount": 14535,\n "amount_excluding_tax": 14535,\n "currency": "eur",\n "description": "Remaining time on 3 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTaTytXkB4",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4845"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 15000,\n "amount_excluding_tax": 15000,\n "currency": "eur",\n "description": "3 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_OA99NCRzCO1gd4 message='Dashboard link for request'
+INFO:root:2023-07-09 15:44:40.897919 : Impression facture N° FACT_237000302 OK
+INFO:root:2023-07-09 15:44:40.915205 : UpdataPartnerRankingClass - Le RANKING de 0 ont été mise à jour avec la valeur {'display_rank': '20', 'date_update': '2023-07-09 15:44:40.905189'}
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:44:40] "POST /myclass/api/createOrder/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 15:44:41.042623 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-07-09 15:44:41.045214 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/subscriptions/sub_1NRcG3AbmaEugrFTfsCksa0L
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions/sub_1NRcG3AbmaEugrFTfsCksa0L response_code=200
+DEBUG:stripe:body='{\n "id": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1688827031,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": null,\n "cancellation_details": {\n "comment": null,\n "feedback": null,\n "reason": null\n },\n "collection_method": "charge_automatically",\n "created": 1688827031,\n "currency": "eur",\n "current_period_end": 1691505431,\n "current_period_start": 1688827031,\n "customer": "cus_OE477Rl8b6dQgx",\n "days_until_due": null,\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "ended_at": null,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_OE4OEJGI0IUo7v",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1688827032,\n "metadata": {},\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1NRcG3AbmaEugrFTfsCksa0L"\n },\n "latest_invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "livemode": false,\n "metadata": {},\n "next_pending_invoice_item_invoice": null,\n "on_behalf_of": null,\n "pause_collection": null,\n "payment_settings": {\n "payment_method_options": null,\n "payment_method_types": null,\n "save_default_payment_method": "off"\n },\n "pending_invoice_item_interval": null,\n "pending_setup_intent": null,\n "pending_update": null,\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "quantity": 3,\n "schedule": null,\n "start_date": 1688827031,\n "status": "active",\n "test_clock": null,\n "transfer_data": null,\n "trial_end": null,\n "trial_settings": {\n "end_behavior": {\n "missing_payment_method": "create_invoice"\n }\n },\n "trial_start": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_HidhWDejrKFHxh message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/subscriptions/sub_1NRcG3AbmaEugrFTfsCksa0L
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=proration_behavior=create_prorations&items[0][id]=si_OE4OEJGI0IUo7v&items[0][price]=price_1MT3FLAbmaEugrFTDgw7MVgb&items[0][quantity]=4
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:44:41] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 -
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions/sub_1NRcG3AbmaEugrFTfsCksa0L response_code=200
+DEBUG:stripe:body='{\n "id": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1688827031,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": null,\n "cancellation_details": {\n "comment": null,\n "feedback": null,\n "reason": null\n },\n "collection_method": "charge_automatically",\n "created": 1688827031,\n "currency": "eur",\n "current_period_end": 1691505431,\n "current_period_start": 1688827031,\n "customer": "cus_OE477Rl8b6dQgx",\n "days_until_due": null,\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "ended_at": null,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_OE4OEJGI0IUo7v",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1688827032,\n "metadata": {},\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "quantity": 4,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1NRcG3AbmaEugrFTfsCksa0L"\n },\n "latest_invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "livemode": false,\n "metadata": {},\n "next_pending_invoice_item_invoice": null,\n "on_behalf_of": null,\n "pause_collection": null,\n "payment_settings": {\n "payment_method_options": null,\n "payment_method_types": null,\n "save_default_payment_method": "off"\n },\n "pending_invoice_item_interval": null,\n "pending_setup_intent": null,\n "pending_update": null,\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "quantity": 4,\n "schedule": null,\n "start_date": 1688827031,\n "status": "active",\n "test_clock": null,\n "transfer_data": null,\n "trial_end": null,\n "trial_settings": {\n "end_behavior": {\n "missing_payment_method": "create_invoice"\n }\n },\n "trial_start": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_kJlqdgQU8BRcZM message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:44:42] "POST /myclass/api/strip_update_subscription_qty/ HTTP/1.1" 200 -
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\strype_payement.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 15:47:09.890064 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 15:47:09.890064 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 15:47:09.890064 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 15:47:09.890064 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 15:47:09.890064 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:root:2023-07-09 15:48:56.759190 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:48:56] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 15:48:56.768288 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 24697,\n "amount_paid": 0,\n "amount_remaining": 24697,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRxuoAbmaEugrFT8zVNCrpB",\n "object": "line_item",\n "amount": -14534,\n "amount_excluding_tax": -14534,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxuoAbmaEugrFT8zVNCrpB",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910282\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRxywAbmaEugrFThkTAwhPI",\n "invoice_line_items": [\n "il_tmp_1NRxqVAbmaEugrFTaTytXkB4"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4845"\n },\n {\n "id": "il_tmp_1NRxuoAbmaEugrFTHp0e6kDm",\n "object": "line_item",\n "amount": 19378,\n "amount_excluding_tax": 19378,\n "currency": "eur",\n "description": "Remaining time on 4 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxuoAbmaEugrFTHp0e6kDm",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910282\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 4,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4845"\n },\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTIECzd5j5",\n "object": "line_item",\n "amount": -9690,\n "amount_excluding_tax": -9690,\n "currency": "eur",\n "description": "Unused time on 2 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTIECzd5j5",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRxywAbmaEugrFThkTAwhPI",\n "invoice_line_items": [\n "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2"\n ]\n }\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4845"\n },\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTaTytXkB4",\n "object": "line_item",\n "amount": 14535,\n "amount_excluding_tax": 14535,\n "currency": "eur",\n "description": "Remaining time on 3 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTaTytXkB4",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4845"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 20000,\n "amount_excluding_tax": 20000,\n "currency": "eur",\n "description": "4 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 4,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 7,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 24697,\n "subtotal_excluding_tax": 24697,\n "tax": null,\n "test_clock": null,\n "total": 24697,\n "total_discount_amounts": [],\n "total_excluding_tax": 24697,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_WCtsFalnbUBoTg message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRxuoAbmaEugrFT8zVNCrpB",\n "object": "line_item",\n "amount": -14534,\n "amount_excluding_tax": -14534,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxuoAbmaEugrFT8zVNCrpB",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910282\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRxywAbmaEugrFTYdhBKJK0",\n "invoice_line_items": [\n "il_tmp_1NRxqVAbmaEugrFTaTytXkB4"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4845"\n },\n {\n "id": "il_tmp_1NRxuoAbmaEugrFTHp0e6kDm",\n "object": "line_item",\n "amount": 19378,\n "amount_excluding_tax": 19378,\n "currency": "eur",\n "description": "Remaining time on 4 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxuoAbmaEugrFTHp0e6kDm",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910282\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 4,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4845"\n },\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTIECzd5j5",\n "object": "line_item",\n "amount": -9690,\n "amount_excluding_tax": -9690,\n "currency": "eur",\n "description": "Unused time on 2 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTIECzd5j5",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRxywAbmaEugrFTYdhBKJK0",\n "invoice_line_items": [\n "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2"\n ]\n }\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4845"\n },\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTaTytXkB4",\n "object": "line_item",\n "amount": 14535,\n "amount_excluding_tax": 14535,\n "currency": "eur",\n "description": "Remaining time on 3 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTaTytXkB4",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4845"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n }\n ],\n "has_more": true,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_w45DkVG7LW0T59 message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:48:58] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 15:49:35.079526 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:49:35] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 15:49:35.084608 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 24697,\n "amount_paid": 0,\n "amount_remaining": 24697,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRxuoAbmaEugrFT8zVNCrpB",\n "object": "line_item",\n "amount": -14534,\n "amount_excluding_tax": -14534,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxuoAbmaEugrFT8zVNCrpB",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910282\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRxzYAbmaEugrFTel8hp3Cc",\n "invoice_line_items": [\n "il_tmp_1NRxqVAbmaEugrFTaTytXkB4"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4845"\n },\n {\n "id": "il_tmp_1NRxuoAbmaEugrFTHp0e6kDm",\n "object": "line_item",\n "amount": 19378,\n "amount_excluding_tax": 19378,\n "currency": "eur",\n "description": "Remaining time on 4 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxuoAbmaEugrFTHp0e6kDm",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910282\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 4,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4845"\n },\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTIECzd5j5",\n "object": "line_item",\n "amount": -9690,\n "amount_excluding_tax": -9690,\n "currency": "eur",\n "description": "Unused time on 2 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTIECzd5j5",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRxzYAbmaEugrFTel8hp3Cc",\n "invoice_line_items": [\n "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2"\n ]\n }\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4845"\n },\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTaTytXkB4",\n "object": "line_item",\n "amount": 14535,\n "amount_excluding_tax": 14535,\n "currency": "eur",\n "description": "Remaining time on 3 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTaTytXkB4",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4845"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 20000,\n "amount_excluding_tax": 20000,\n "currency": "eur",\n "description": "4 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 4,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 7,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 24697,\n "subtotal_excluding_tax": 24697,\n "tax": null,\n "test_clock": null,\n "total": 24697,\n "total_discount_amounts": [],\n "total_excluding_tax": 24697,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_JNYroFbkibBMQP message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRxuoAbmaEugrFT8zVNCrpB",\n "object": "line_item",\n "amount": -14534,\n "amount_excluding_tax": -14534,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxuoAbmaEugrFT8zVNCrpB",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910282\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRxzYAbmaEugrFTiCIsEuh1",\n "invoice_line_items": [\n "il_tmp_1NRxqVAbmaEugrFTaTytXkB4"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4845"\n },\n {\n "id": "il_tmp_1NRxuoAbmaEugrFTHp0e6kDm",\n "object": "line_item",\n "amount": 19378,\n "amount_excluding_tax": 19378,\n "currency": "eur",\n "description": "Remaining time on 4 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxuoAbmaEugrFTHp0e6kDm",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910282\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 4,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4845"\n },\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTIECzd5j5",\n "object": "line_item",\n "amount": -9690,\n "amount_excluding_tax": -9690,\n "currency": "eur",\n "description": "Unused time on 2 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTIECzd5j5",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRxzYAbmaEugrFTiCIsEuh1",\n "invoice_line_items": [\n "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2"\n ]\n }\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4845"\n },\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTaTytXkB4",\n "object": "line_item",\n "amount": 14535,\n "amount_excluding_tax": 14535,\n "currency": "eur",\n "description": "Remaining time on 3 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTaTytXkB4",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4845"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n }\n ],\n "has_more": true,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_uf33HnbGgQU6I2 message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:49:36] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\strype_payement.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 15:50:25.621349 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 15:50:25.621349 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 15:50:25.621349 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 15:50:25.621349 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 15:50:25.621349 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:root:2023-07-09 15:50:25.657250 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:50:25] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 15:50:25.664231 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 24697,\n "amount_paid": 0,\n "amount_remaining": 24697,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRxuoAbmaEugrFT8zVNCrpB",\n "object": "line_item",\n "amount": -14534,\n "amount_excluding_tax": -14534,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxuoAbmaEugrFT8zVNCrpB",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910282\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRy0MAbmaEugrFTRFXvqkrO",\n "invoice_line_items": [\n "il_tmp_1NRxqVAbmaEugrFTaTytXkB4"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4845"\n },\n {\n "id": "il_tmp_1NRxuoAbmaEugrFTHp0e6kDm",\n "object": "line_item",\n "amount": 19378,\n "amount_excluding_tax": 19378,\n "currency": "eur",\n "description": "Remaining time on 4 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxuoAbmaEugrFTHp0e6kDm",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910282\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 4,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4845"\n },\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTIECzd5j5",\n "object": "line_item",\n "amount": -9690,\n "amount_excluding_tax": -9690,\n "currency": "eur",\n "description": "Unused time on 2 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTIECzd5j5",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRy0MAbmaEugrFTRFXvqkrO",\n "invoice_line_items": [\n "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2"\n ]\n }\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4845"\n },\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTaTytXkB4",\n "object": "line_item",\n "amount": 14535,\n "amount_excluding_tax": 14535,\n "currency": "eur",\n "description": "Remaining time on 3 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTaTytXkB4",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4845"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 20000,\n "amount_excluding_tax": 20000,\n "currency": "eur",\n "description": "4 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 4,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 7,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 24697,\n "subtotal_excluding_tax": 24697,\n "tax": null,\n "test_clock": null,\n "total": 24697,\n "total_discount_amounts": [],\n "total_excluding_tax": 24697,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_mQka4uatgyk6p0 message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=limit=5
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx&limit=5 response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRxuoAbmaEugrFT8zVNCrpB",\n "object": "line_item",\n "amount": -14534,\n "amount_excluding_tax": -14534,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxuoAbmaEugrFT8zVNCrpB",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910282\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRy0NAbmaEugrFTV3woCDRa",\n "invoice_line_items": [\n "il_tmp_1NRxqVAbmaEugrFTaTytXkB4"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4845"\n },\n {\n "id": "il_tmp_1NRxuoAbmaEugrFTHp0e6kDm",\n "object": "line_item",\n "amount": 19378,\n "amount_excluding_tax": 19378,\n "currency": "eur",\n "description": "Remaining time on 4 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxuoAbmaEugrFTHp0e6kDm",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910282\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 4,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4845"\n },\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTIECzd5j5",\n "object": "line_item",\n "amount": -9690,\n "amount_excluding_tax": -9690,\n "currency": "eur",\n "description": "Unused time on 2 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTIECzd5j5",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRy0NAbmaEugrFTV3woCDRa",\n "invoice_line_items": [\n "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2"\n ]\n }\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4845"\n },\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTaTytXkB4",\n "object": "line_item",\n "amount": 14535,\n "amount_excluding_tax": 14535,\n "currency": "eur",\n "description": "Remaining time on 3 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTaTytXkB4",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4845"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n }\n ],\n "has_more": true,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_nDNtnBVa12dXnF message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:50:27] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\strype_payement.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-07-09 15:54:15.103642 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-07-09 15:54:15.103642 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-07-09 15:54:15.103642 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-07-09 15:54:15.103642 : ++ FLASK PORT 5001 ++
+INFO:root:2023-07-09 15:54:15.103642 : ++ LMS_BAS_URL mysy-training.com/ ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 144-236-516
+INFO:root:2023-07-09 15:54:19.164365 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:54:19] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 15:54:19.172425 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 24697,\n "amount_paid": 0,\n "amount_remaining": 24697,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRxuoAbmaEugrFT8zVNCrpB",\n "object": "line_item",\n "amount": -14534,\n "amount_excluding_tax": -14534,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxuoAbmaEugrFT8zVNCrpB",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910282\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRy48AbmaEugrFTaIkYeQwp",\n "invoice_line_items": [\n "il_tmp_1NRxqVAbmaEugrFTaTytXkB4"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4845"\n },\n {\n "id": "il_tmp_1NRxuoAbmaEugrFTHp0e6kDm",\n "object": "line_item",\n "amount": 19378,\n "amount_excluding_tax": 19378,\n "currency": "eur",\n "description": "Remaining time on 4 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxuoAbmaEugrFTHp0e6kDm",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910282\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 4,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4845"\n },\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTIECzd5j5",\n "object": "line_item",\n "amount": -9690,\n "amount_excluding_tax": -9690,\n "currency": "eur",\n "description": "Unused time on 2 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTIECzd5j5",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRy48AbmaEugrFTaIkYeQwp",\n "invoice_line_items": [\n "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2"\n ]\n }\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4845"\n },\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTaTytXkB4",\n "object": "line_item",\n "amount": 14535,\n "amount_excluding_tax": 14535,\n "currency": "eur",\n "description": "Remaining time on 3 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTaTytXkB4",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4845"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 20000,\n "amount_excluding_tax": 20000,\n "currency": "eur",\n "description": "4 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 4,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 7,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 24697,\n "subtotal_excluding_tax": 24697,\n "tax": null,\n "test_clock": null,\n "total": 24697,\n "total_discount_amounts": [],\n "total_excluding_tax": 24697,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_7O7bFJPB9poQmn message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRxuoAbmaEugrFT8zVNCrpB",\n "object": "line_item",\n "amount": -14534,\n "amount_excluding_tax": -14534,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxuoAbmaEugrFT8zVNCrpB",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910282\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRy48AbmaEugrFTuiOfQyYm",\n "invoice_line_items": [\n "il_tmp_1NRxqVAbmaEugrFTaTytXkB4"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4845"\n },\n {\n "id": "il_tmp_1NRxuoAbmaEugrFTHp0e6kDm",\n "object": "line_item",\n "amount": 19378,\n "amount_excluding_tax": 19378,\n "currency": "eur",\n "description": "Remaining time on 4 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxuoAbmaEugrFTHp0e6kDm",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910282\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 4,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4845"\n },\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTIECzd5j5",\n "object": "line_item",\n "amount": -9690,\n "amount_excluding_tax": -9690,\n "currency": "eur",\n "description": "Unused time on 2 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTIECzd5j5",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRy48AbmaEugrFTuiOfQyYm",\n "invoice_line_items": [\n "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2"\n ]\n }\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4845"\n },\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTaTytXkB4",\n "object": "line_item",\n "amount": 14535,\n "amount_excluding_tax": 14535,\n "currency": "eur",\n "description": "Remaining time on 3 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTaTytXkB4",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4845"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 20000,\n "amount_excluding_tax": 20000,\n "currency": "eur",\n "description": "4 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 4,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_RBoeaXnGV7wFeb message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:54:20] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
+INFO:root:2023-07-09 15:55:58.304817 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:55:58] "[32mPOST /myclass/api/Strip_Get_Customer_Upcoming_Invoice HTTP/1.1[0m" 308 -
+INFO:root:2023-07-09 15:55:58.312127 : Security check : IP adresse '127.0.0.1' connected
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OE477Rl8b6dQgx
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 24697,\n "amount_paid": 0,\n "amount_remaining": 24697,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1691505431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OE477Rl8b6dQgx",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRxuoAbmaEugrFT8zVNCrpB",\n "object": "line_item",\n "amount": -14534,\n "amount_excluding_tax": -14534,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxuoAbmaEugrFT8zVNCrpB",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910282\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRy5jAbmaEugrFT7DNImnks",\n "invoice_line_items": [\n "il_tmp_1NRxqVAbmaEugrFTaTytXkB4"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4845"\n },\n {\n "id": "il_tmp_1NRxuoAbmaEugrFTHp0e6kDm",\n "object": "line_item",\n "amount": 19378,\n "amount_excluding_tax": 19378,\n "currency": "eur",\n "description": "Remaining time on 4 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxuoAbmaEugrFTHp0e6kDm",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910282\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 4,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4845"\n },\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTIECzd5j5",\n "object": "line_item",\n "amount": -9690,\n "amount_excluding_tax": -9690,\n "currency": "eur",\n "description": "Unused time on 2 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTIECzd5j5",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRy5jAbmaEugrFT7DNImnks",\n "invoice_line_items": [\n "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2"\n ]\n }\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4845"\n },\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTaTytXkB4",\n "object": "line_item",\n "amount": 14535,\n "amount_excluding_tax": 14535,\n "currency": "eur",\n "description": "Remaining time on 3 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTaTytXkB4",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4845"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 20000,\n "amount_excluding_tax": 20000,\n "currency": "eur",\n "description": "4 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 4,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 7,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1691509031,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1691505431,\n "period_start": 1688827031,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subtotal": 24697,\n "subtotal_excluding_tax": 24697,\n "tax": null,\n "test_clock": null,\n "total": 24697,\n "total_discount_amounts": [],\n "total_excluding_tax": 24697,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_cnTiXZQZzAYnlD message='Dashboard link for request'
+INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx
+DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=
+INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx response_code=200
+DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NRxuoAbmaEugrFT8zVNCrpB",\n "object": "line_item",\n "amount": -14534,\n "amount_excluding_tax": -14534,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxuoAbmaEugrFT8zVNCrpB",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910282\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRy5jAbmaEugrFT9N6qTkGq",\n "invoice_line_items": [\n "il_tmp_1NRxqVAbmaEugrFTaTytXkB4"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4845"\n },\n {\n "id": "il_tmp_1NRxuoAbmaEugrFTHp0e6kDm",\n "object": "line_item",\n "amount": 19378,\n "amount_excluding_tax": 19378,\n "currency": "eur",\n "description": "Remaining time on 4 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxuoAbmaEugrFTHp0e6kDm",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910282\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 4,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4845"\n },\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTIECzd5j5",\n "object": "line_item",\n "amount": -9690,\n "amount_excluding_tax": -9690,\n "currency": "eur",\n "description": "Unused time on 2 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTIECzd5j5",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRy5jAbmaEugrFT9N6qTkGq",\n "invoice_line_items": [\n "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2"\n ]\n }\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4845"\n },\n {\n "id": "il_tmp_1NRxqVAbmaEugrFTaTytXkB4",\n "object": "line_item",\n "amount": 14535,\n "amount_excluding_tax": 14535,\n "currency": "eur",\n "description": "Remaining time on 3 × DEV_SPACK_STANDARD after 09 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRxqVAbmaEugrFTaTytXkB4",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688910015\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4845"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFT6menwuGH",\n "object": "line_item",\n "amount": -14978,\n "amount_excluding_tax": -14978,\n "currency": "eur",\n "description": "Unused time on 3 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFT6menwuGH",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NRcG3AbmaEugrFTO9gtfVEN",\n "invoice_line_items": [\n "il_1NRcG3AbmaEugrFTCVH8ZZSM"\n ]\n }\n },\n "quantity": 3,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-4993"\n },\n {\n "id": "il_tmp_1NRdGAAbmaEugrFTQCZvhzh2",\n "object": "line_item",\n "amount": 9986,\n "amount_excluding_tax": 9986,\n "currency": "eur",\n "description": "Remaining time on 2 × DEV_SPACK_STANDARD after 08 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NRdGAAbmaEugrFTQCZvhzh2",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1691505431,\n "start": 1688830882\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 2,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4993"\n },\n {\n "id": "il_tmp_147834AbmaEugrFT35657bec",\n "object": "line_item",\n "amount": 20000,\n "amount_excluding_tax": 20000,\n "currency": "eur",\n "description": "4 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1694183831,\n "start": 1691505431\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 4,\n "subscription": "sub_1NRcG3AbmaEugrFTfsCksa0L",\n "subscription_item": "si_OE4OEJGI0IUo7v",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OE477Rl8b6dQgx"\n}' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_xt1nV5CKvJjePn message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [09/Jul/2023 15:55:59] "POST /myclass/api/Strip_Get_Customer_Upcoming_Invoice/ HTTP/1.1" 200 -
diff --git a/appel_offre.py b/appel_offre.py
index 0bceb37..2803028 100644
--- a/appel_offre.py
+++ b/appel_offre.py
@@ -346,26 +346,26 @@ def Get_Appel_Offre(diction):
str(inspect.stack()[0][3]) + " - La valeur '" + val + "' n'est pas presente dans liste ")
return False, " Les informations fournies sont incorrectes",
- """
- Verification de l'identité et autorisation de l'entité qui
- appelle cette API
- """
- token = ""
- if ("token" in diction.keys()):
- if diction['token']:
- token = diction['token']
+ """
+ Verification de l'identité et autorisation de l'entité qui
+ appelle cette API
+ """
+ token = ""
+ if ("token" in diction.keys()):
+ if diction['token']:
+ token = diction['token']
- # Verifier la validité du token
- retval = mycommon.check_partner_token_validity("", token)
+ # Verifier la validité du token
+ retval = mycommon.check_partner_token_validity("", token)
- if retval is False:
- return "Err_Connexion", " La session de connexion n'est pas valide"
+ if retval is False:
+ return "Err_Connexion", " La session de connexion n'est pas valide"
- # Recuperation des données du partenaire
- local_status, my_user = mycommon.get_user_data_from_token(token)
- if (local_status is False):
- mycommon.myprint(str(inspect.stack()[0][3]) + " - impossible de recuperer les données de l'utilisateur ")
- return False, str(inspect.stack()[0][3]) + " - impossible de recuperer les données de l'utilisateur. "
+ # Recuperation des données du partenaire
+ local_status, my_user = mycommon.get_user_data_from_token(token)
+ if (local_status is False):
+ mycommon.myprint(str(inspect.stack()[0][3]) + " - impossible de recuperer les données de l'utilisateur ")
+ return False, str(inspect.stack()[0][3]) + " - impossible de recuperer les données de l'utilisateur. "
RetObject = []
nb_val = 0
diff --git a/ela_factures_mgt.py b/ela_factures_mgt.py
index 9f15689..2ffed4a 100644
--- a/ela_factures_mgt.py
+++ b/ela_factures_mgt.py
@@ -1037,7 +1037,7 @@ def convertHtmlToPdf(diction):
try:
field_list_obligatoire =['invoice_nom', 'invoice_adr_street', 'invoice_adr_zip', 'invoice_adr_city',
'invoice_adr_country', 'invoice_id', 'invoice_date', 'due_date', 'order_id', 'item_0',
- 'total_ht', 'total_tva', 'total_ttc',]
+ 'total_ht', 'total_tva', 'total_ttc','client_recid']
for val in field_list_obligatoire:
if val not in diction:
@@ -1124,6 +1124,8 @@ def convertHtmlToPdf(diction):
email.SendInvoiceEmail(str(diction['invoice_email']), diction )
+
+
# On deplace la facture vers le serveur ftp
'''mycommon.myprint(
str(inspect.stack()[0][3]) + " deplacement de la facture vers " + str(
@@ -1147,6 +1149,13 @@ def convertHtmlToPdf(diction):
# return True on success and False on errors
print(pisaStatus.err, type(pisaStatus.err))
+
+ """ update du 09/07/23 - test envoie info prochaine facture"""
+ local_diction = {}
+ local_diction['recid'] = diction['client_recid']
+ email.Strip_Get_Customer_Upcoming_Invoice(local_diction)
+
+
return True
except Exception as e:
diff --git a/email_mgt.py b/email_mgt.py
index 0fa5e5d..4a70d3b 100644
--- a/email_mgt.py
+++ b/email_mgt.py
@@ -23,6 +23,7 @@ import pytz
import sib_api_v3_sdk
from sib_api_v3_sdk.rest import ApiException
import jinja2
+import strype_payement as strype_payement
configuration = sib_api_v3_sdk.Configuration()
@@ -1565,7 +1566,7 @@ def SendInvoiceEmail(account_mail, diction):
'''
field_list_obligatoire = ['invoice_nom', 'invoice_adr_street', 'invoice_adr_zip', 'invoice_adr_city',
'invoice_adr_country', 'invoice_id', 'invoice_date', 'due_date', 'order_id', 'item_0',
- 'total_ht', 'total_tva', 'total_ttc', ]
+ 'total_ht', 'total_tva', 'total_ttc', 'client_recid' ]
for val in field_list_obligatoire:
if val not in diction:
@@ -2573,3 +2574,123 @@ def Email_Part_Espace_Hosting( diction):
exc_type, exc_obj, exc_tb = sys.exc_info()
mycommon.myprint(str(inspect.stack()[0][3]) + " -" + str(e) + " - ERRORRRR AT Line : " + str(exc_tb.tb_lineno))
return False, " Impossible d'envoyer les identifiants de connexion à la plateforme d'hébergement par email "
+
+
+"""
+Cette fonction envoie un email avec les informations
+sur la prochaine facturation du client.
+Cette fonction est utilisée :
+1 - En cas de changement d'abonnement
+2 - eventuellement connaitre le montant de la prochaine facture du client
+"""
+import json
+def Strip_Get_Customer_Upcoming_Invoice(diction):
+ try:
+ diction = mycommon.strip_dictionary(diction)
+
+ """
+ Verification des input acceptés
+ """
+ field_list = ['recid', ]
+ incom_keys = diction.keys()
+ for val in incom_keys:
+ if val not in field_list:
+ mycommon.myprint(str(
+ inspect.stack()[0][3]) + " Le champ '" + val + "' n'existe pas")
+ return False, " Les informations fournies sont incorrectes",
+
+ """
+ Verification des champs obligatoires
+ """
+ field_list_obligatoire = ['recid',]
+ for val in field_list_obligatoire:
+ if val not in diction:
+ mycommon.myprint(
+ str(inspect.stack()[0][3]) + " - La valeur '" + val + "' n'est pas presente dans liste ")
+ return False, " Les informations fournies sont incorrectes",
+
+ """
+ Verification de l'identité et autorisation de l'entité qui
+ appelle cette API
+ """
+ recid = ""
+ if ("recid" in diction.keys()):
+ if diction['recid']:
+ recid = diction['recid']
+
+
+ # Recuperation des données du partenaire
+ local_status, my_partner = mycommon.get_partner_data_from_recid(recid)
+ if (local_status is False):
+ mycommon.myprint(
+ str(inspect.stack()[0][3]) + " - impossible de recuperer les données de l'utilisateur ")
+ return False, str(inspect.stack()[0][3]) + " - impossible de recuperer les données de l'utilisateur. "
+
+ data = {}
+ data['recid'] = my_partner['recid']
+ local_status, local_retval = strype_payement.Strip_Get_Customer_Abonnement_Data(data)
+
+ if (local_status is False):
+ mycommon.myprint(
+ str(inspect.stack()[0][3]) + " - impossible de recuperer les données de facturation ")
+ return False, str(inspect.stack()[0][3]) + " - impossible de recuperer les données de facturation. "
+
+ print(" ### local_retval[0] = ", local_retval[0])
+
+ local_retval_JSON = json.loads(str(local_retval[0]))
+ local_retval_JSON['user_name'] = my_partner['nom']
+
+
+
+ # On verifie que les informations retournées contiennent tous les champs
+ local_champs_obligatoire = ['recid', 'period_start', 'period_end', 'total', 'main_description', 'lines', 'user_name']
+ for val in local_champs_obligatoire:
+ if val not in local_retval_JSON.keys():
+ mycommon.myprint(
+ str(inspect.stack()[0][3]) + " - La valeur '" + val + "' n'est pas presente dans liste (2)")
+ return False, " Les informations fournies sont incorrectes (2)",
+
+ local_retval_JSON['tva'] = round(mycommon.tryFloat(str(local_retval_JSON["total"])) * 0.2, 2)
+
+ local_retval_JSON['total_ttc'] = round(mycommon.tryFloat(str(local_retval_JSON["total"])) * 1.2, 2)
+
+ smtpserver = smtplib.SMTP(MYSY_GV.O365_SMTP_COUNT_smtpsrv, MYSY_GV.O365_SMTP_COUNT_port)
+
+ # msg = MIMEMultipart("alternative")
+ msg = EmailMessage()
+
+ # JINJA2
+ templateLoader = jinja2.FileSystemLoader(searchpath="./")
+ templateEnv = jinja2.Environment(loader=templateLoader)
+ TEMPLATE_FILE = "Template/MySy_Next_Invoice_Info_tpl.html"
+ template = templateEnv.get_template(TEMPLATE_FILE)
+ # This data can come from database query
+ body = {
+ "params": local_retval_JSON,
+ }
+
+ sourceHtml = template.render(params=body["params"])
+
+ msg.set_content(sourceHtml, subtype='html')
+ msg['From'] = MYSY_GV.O365_SMTP_COUNT_From_User
+
+ msg['Bcc'] = 'contact@mysy-training.com'
+
+ msg['Subject'] = "[MySy Training Technology] : Information Facture à venir. "
+ msg['To'] = str(my_partner['email'])
+
+ smtpserver.ehlo()
+ smtpserver.starttls()
+ smtpserver.login(MYSY_GV.O365_SMTP_COUNT_user, MYSY_GV.O365_SMTP_COUNT_password)
+ val = smtpserver.send_message(msg)
+ smtpserver.close()
+ print(" Email envoyé " + str(val))
+
+
+
+ return True, " email envoyé ok"
+
+ except Exception as e:
+ exc_type, exc_obj, exc_tb = sys.exc_info()
+ mycommon.myprint(str(inspect.stack()[0][3]) + " -" + str(e) + " - Line : " + str(exc_tb.tb_lineno))
+ return False, " Impossible d'envoyer les informations de la prochaines factures "
diff --git a/main.py b/main.py
index 93ac5b0..88ce574 100644
--- a/main.py
+++ b/main.py
@@ -3078,6 +3078,17 @@ def Strip_Get_Customer_Abonnement_Data():
localStatus, message = Stripe.Strip_Get_Customer_Abonnement_Data(payload)
return jsonify(status=localStatus, message=message)
+"""
+API d'envoie de l'email avec les infos de la prochaine facturation
+"""
+@app.route('/myclass/api/Strip_Get_Customer_Upcoming_Invoice/', methods=['POST','GET'])
+@crossdomain(origin='*')
+def Strip_Get_Customer_Upcoming_Invoice():
+ # On recupere le corps (payload) de la requete
+ payload = mycommon.strip_dictionary (request.form.to_dict())
+ print(" ### Strip_Get_Customer_Upcoming_Invoice : payload = ",payload)
+ localStatus, message = emails.Strip_Get_Customer_Upcoming_Invoice(payload)
+ return jsonify(status=localStatus, message=message)
if __name__ == '__main__':
diff --git a/strype_payement.py b/strype_payement.py
index fb87886..979d404 100644
--- a/strype_payement.py
+++ b/strype_payement.py
@@ -1281,10 +1281,10 @@ def Strip_Get_Customer_Abonnement_Data(diction):
customer=stripe_account_id,
)
- print(" #### local_ret_val : ", str(local_ret_val))
+ #print(" #### local_ret_val : ", str(local_ret_val))
- lines_to_invoice = local_ret_val.lines.list(limit=5)
+ lines_to_invoice = local_ret_val.lines.list()
stripe_account_id_JSON = json.loads(str(local_ret_val))
@@ -1330,17 +1330,23 @@ def Strip_Get_Customer_Abonnement_Data(diction):
local_diction['period_end'] = str(datetime.fromtimestamp(period['end']).strftime("%d/%m/%Y-%H:%M:%S"))
local_diction['period_start'] = str(datetime.fromtimestamp(period['start']).strftime("%d/%m/%Y-%H:%M:%S"))
+ local_diction['period_end_month'] = str(datetime.fromtimestamp(period['end']).strftime("%m"))
- local_diction['unit_amount'] = str(val['price']['unit_amount'])
+
+ local_diction['unit_amount'] = mycommon.tryFloat(str(val['price']['unit_amount'])) / 100
local_diction['quantity'] = str(val['quantity'])
- local_diction['description'] = str(val['description'])
+ local_diction['description'] = str(val['description']).replace("Unused time on", "Temps non utilisé sur").replace("Remaining time on", "Temps restant sur").replace("after", "apres")
- local_diction['amount'] = str(val['amount'])
+ local_diction['amount'] = mycommon.tryFloat(str(val['amount'])) / 100
return_data['lines'].append(local_diction)
+
+
+ print(" ## return_data = ", return_data)
+
RetObject = []
RetObject.append(mycommon.JSONEncoder().encode(return_data))
return True, RetObject