from metrifox_sdk import MetrifoxClientclient = MetrifoxClient(api_key="your_api_key")# Check if customer has an active subscriptionhas_active_subscription = client.customers.has_active_subscription("test-customer-key")print(has_active_subscription) # True or Falseif has_active_subscription: print("Customer has an active subscription")else: print("Customer does not have an active subscription")
from metrifox_sdk import MetrifoxClientclient = MetrifoxClient(api_key="your_api_key")# Check if customer has an active subscriptionhas_active_subscription = client.customers.has_active_subscription("test-customer-key")print(has_active_subscription) # True or Falseif has_active_subscription: print("Customer has an active subscription")else: print("Customer does not have an active subscription")