Skip to main content

Scenario

Pull active customers with subscriptions, calculate MRR, and segment into enterprise (10K+/mo),midmarket(10K+/mo), mid-market (1K–10K),andSMB(<10K), and SMB (<1K) tiers. Each tier becomes a Mavera persona enriched with revenue context.

Architecture

Code

Example Output

Error Handling

Stripe returns 429 at 25 req/sec. The Python library retries automatically. In JavaScript, read Retry-After header and await new Promise(r => setTimeout(r, wait * 1000)).
Nested objects deeper than 3 levels and arrays over 100 items are rejected. Flatten complex structures before posting.