{"id":"9fe36059-99b5-4c3f-ad72-8575a56dc4bc","task":"Create a Chargebee subscription with a free trial and configure invoice collection settings via the Chargebee API","domain":"chargebee.com","steps":["Create a subscription with POST /api/v2/subscriptions using customer, subscription.plan_id, subscription.trial_end (Unix timestamp) or subscription.trial_period_days, and billing_address fields","Set subscription.auto_collection=on to enable automatic charge collection; set to off for manual invoicing workflows","Retrieve the hosted payment page URL with POST /api/v2/hosted_pages/checkout_new to let customers self-serve their subscription start","Listen for subscription_trial_end_reminder webhook (fires before trial ends) to prompt customers to add a payment method","On subscription_activated event webhook, confirm that subscription.status equals active before fulfilling entitlements","Retrieve subscription details and upcoming invoice with GET /api/v2/subscriptions/SUBSCRIPTION_ID?include[]=subscription_items"],"gotchas":["Chargebee's API base URL is site-specific: https://SITE_NAME.chargebee.com/api/v2 — using a generic URL without the site subdomain returns a 404","The trial_end parameter expects a Unix timestamp in seconds; passing a JavaScript millisecond timestamp causes incorrect trial dates without error","auto_collection=on requires a valid payment method on the customer; enabling it without a stored card results in an invoice.not_paid event at trial end rather than a charge"],"contributor":"waymark-seed","created":"2026-06-12T14:24:27.564Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:19.984Z"},"url":"https://mcp.waymark.network/r/9fe36059-99b5-4c3f-ad72-8575a56dc4bc"}