01Run it
Replace the <placeholders> with your own values, or use the builder below.
p202 ltv subscriptions02What you get
Captured from the real binary, run against a demo store with 30 days of traffic. Switch tabs to see the same run as JSON, the shape scripts and agents parse.
$ p202 ltv subscriptions status amount billing_interval billing_interval_count canceled_at company currency current_period_end customer_id customer_ltv email external_sub_id first_name last_name mrr plan_name started_at subscription_id -------- --------- ---------------- ---------------------- ----------- ------- -------- ------------------ ----------- ------------ ----------------------------- --------------- ---------- --------- -------- -------------- ---------- --------------- active 32 month 1 USD 1794695616 114 32 felix.turner114@example.com sub_cust-1114 Felix Turner 32 Monthly Coffee 1792017216 48 active 32 month 1 USD 1792800784 112 58 jonah.turner112@example.com sub_cust-1112 Jonah Turner 32 Monthly Coffee 1790208784 47 active 348 year 1 USD 1822134577 109 348 priya.nguyen109@example.com sub_cust-1109 Priya Nguyen 29 Pro Annual 1790598577 46 active 348 year 1 USD 1821653692 107 348 diego.bennett107@example.com sub_cust-1107 Diego Bennett 29 Pro Annual 1790117692 45 active 32 month 1 USD 1794860744 106 32 kenji.ortiz106@example.com sub_cust-1106 Kenji Ortiz 32 Monthly Coffee 1792182344 44 active 29 month 1 USD 1795209618 103 29 zoe.jensen103@example.com sub_cust-1103 Zoe Jensen 29 Team Monthly 1792531218 43 canceled 29 month 1 1792622056 USD 1795216741 100 29 zoe.moreau100@example.com sub_cust-1100 Zoe Moreau 29 Team Monthly 1792538341 42 active 348 year 1 USD 1823898110 99 348 theo.nguyen99@example.com sub_cust-1099 Theo Nguyen 29 Pro Annual 1792362110 41 active 29 month 1 USD 1794659214 93 29 isla.young93@example.com sub_cust-1093 Isla Young 29 Team Monthly 1791980814 40 active 32 month 1 USD 1795159068 91 32 isla.walsh91@example.com sub_cust-1091 Isla Walsh 32 Monthly Coffee 1792480668 39 active 32 month 1 USD 1794082731 90 32 rhys.turner90@example.com sub_cust-1090 Rhys Turner 32 Monthly Coffee 1791404331 38 active 29 month 1 USD 1794999668 89 29 aisha.reyes89@example.com sub_cust-1089 Aisha Reyes 29 Team Monthly 1792321268 37 active 348 year 1 USD 1822866094 86 348 chloe.ellis86@example.com sub_cust-1086 Chloe Ellis 29 Pro Annual 1791330094 36 active 32 month 1 USD 1795289961 85 32 clara.hayes85@example.com sub_cust-1085 Clara Hayes 32 Monthly Coffee 1792611561 35 active 32 month 1 USD 1794053351 80 32 june.nguyen80@example.com sub_cust-1080 June Nguyen 32 Monthly Coffee 1791374951 34 active 32 month 1 USD 1793293125 79 58 theo.reyes79@example.com sub_cust-1079 Theo Reyes 32 Monthly Coffee 1790701125 33 canceled 32 month 1 1792622056 USD 1792972381 77 58 rhys.lopez77@example.com sub_cust-1077 Rhys Lopez 32 Monthly Coffee 1790380381 32 canceled 32 month 1 1792622056 USD 1793992167 76 32 liam.grant76@example.com sub_cust-1076 Liam Grant 32 Monthly Coffee 1791313767 31 canceled 32 month 1 1792622056 USD 1793061544 71 32 chloe.nguyen71@example.com sub_cust-1071 Chloe Nguyen 32 Monthly Coffee 1790469544 30 active 29 month 1 USD 1793305330 67 29 miles.okafor67@example.com sub_cust-1067 Miles Okafor 29 Team Monthly 1790713330 29 active 348 year 1 USD 1822400794 66 348 hugo.foster66@example.com sub_cust-1066 Hugo Foster 29 Pro Annual 1790864794 28 active 588 year 1 USD 1823290494 64 588 zoe.okafor64@example.com sub_cust-1064 Zoe Okafor 49 Team Annual 1791754494 27 canceled 32 month 1 1792622055 USD 1793875718 62 32 leo.shah62@example.com sub_cust-1062 Leo Shah 32 Monthly Coffee 1791197318 26 active 32 month 1 USD 1794977856 59 32 maya.bennett59@example.com sub_cust-1059 Maya Bennett 32 Monthly Coffee 1792299456 25 active 32 month 1 USD 1793932387 58 58 ava.lindqvist58@example.com sub_cust-1058 Ava Lindqvist 32 Monthly Coffee 1791253987 24 active 348 year 1 USD 1822164035 57 348 rhys.patel57@example.com sub_cust-1057 Rhys Patel 29 Pro Annual 1790628035 23 active 32 month 1 USD 1795267974 53 32 lucas.bennett53@example.com sub_cust-1053 Lucas Bennett 32 Monthly Coffee 1792589574 22 active 32 month 1 USD 1792880009 50 32 zoe.patel50@example.com sub_cust-1050 Zoe Patel 32 Monthly Coffee 1790288009 21 active 348 year 1 USD 1823741808 47 348 mason.patel47@example.com sub_cust-1047 Mason Patel 29 Pro Annual 1792205808 20 active 29 month 1 USD 1794680656 46 29 silas.foster46@example.com sub_cust-1046 Silas Foster 29 Team Monthly 1792002256 19 active 348 year 1 USD 1821996284 45 348 ruby.walsh45@example.com sub_cust-1045 Ruby Walsh 29 Pro Annual 1790460284 18 active 588 year 1 USD 1823257087 40 588 isla.reyes40@example.com sub_cust-1040 Isla Reyes 49 Team Annual 1791721087 17 active 32 month 1 USD 1795145656 39 32 arlo.ellis39@example.com sub_cust-1039 Arlo Ellis 32 Monthly Coffee 1792467256 16 canceled 32 month 1 1792622055 USD 1792833958 34 32 leo.shah34@example.com sub_cust-1034 Leo Shah 32 Monthly Coffee 1790241958 15 active 32 month 1 USD 1794608749 33 32 leo.patel33@example.com sub_cust-1033 Leo Patel 32 Monthly Coffee 1791930349 14 active 32 month 1 USD 1793318585 28 58 mateo.zhang28@example.com sub_cust-1028 Mateo Zhang 32 Monthly Coffee 1790726585 13 active 588 year 1 USD 1821798839 27 588 hazel.underwood27@example.com sub_cust-1027 Hazel Underwood 49 Team Annual 1790262839 12 active 32 month 1 USD 1794603146 26 32 noah.haddad26@example.com sub_cust-1026 Noah Haddad 32 Monthly Coffee 1791924746 11 active 29 month 1 USD 1792844031 25 29 felix.kowalski25@example.com sub_cust-1025 Felix Kowalski 29 Team Monthly 1790252031 10 active 32 month 1 USD 1794912678 23 32 ivy.diaz23@example.com sub_cust-1023 Ivy Diaz 32 Monthly Coffee 1792234278 9 canceled 32 month 1 1792622055 USD 1794594316 21 58 zoe.moreau21@example.com sub_cust-1021 Zoe Moreau 32 Monthly Coffee 1791915916 8 active 29 month 1 USD 1795026019 17 29 leo.bennett17@example.com sub_cust-1017 Leo Bennett 29 Team Monthly 1792347619 7 active 348 year 1 USD 1821885735 13 348 maya.grant13@example.com sub_cust-1013 Maya Grant 29 Pro Annual 1790349735 6 active 348 year 1 USD 1823866333 12 348 liam.lindqvist12@example.com sub_cust-1012 Liam Lindqvist 29 Pro Annual 1792330333 5 canceled 32 month 1 1792622055 USD 1794896481 11 32 miles.shah11@example.com sub_cust-1011 Miles Shah 32 Monthly Coffee 1792218081 4 active 29 month 1 USD 1795274606 9 29 priya.lopez9@example.com sub_cust-1009 Priya Lopez 29 Team Monthly 1792596206 3 active 32 month 1 USD 1793396690 8 32 jonah.iverson8@example.com sub_cust-1008 Jonah Iverson 32 Monthly Coffee 1790804690 2 active 32 month 1 USD 1795297382 2 32 clara.diaz2@example.com sub_cust-1002 Clara Diaz 32 Monthly Coffee 1792618982 1 Total: 48 | Limit: 50 | Offset: 0
$ p202 ltv subscriptions --json { "data": [ { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1794695616, "customer_id": 114, "customer_ltv": "32.00000", "email": "felix.turner114@example.com", "external_sub_id": "sub_cust-1114", "first_name": "Felix", "last_name": "Turner", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1792017216, "status": "active", "subscription_id": 48 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1792800784, "customer_id": 112, "customer_ltv": "58.00000", "email": "jonah.turner112@example.com", "external_sub_id": "sub_cust-1112", "first_name": "Jonah", "last_name": "Turner", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1790208784, "status": "active", "subscription_id": 47 }, { "amount": "348.00000", "billing_interval": "year", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1822134577, "customer_id": 109, "customer_ltv": "348.00000", "email": "priya.nguyen109@example.com", "external_sub_id": "sub_cust-1109", "first_name": "Priya", "last_name": "Nguyen", "mrr": "29.00000", "plan_name": "Pro Annual", "started_at": 1790598577, "status": "active", "subscription_id": 46 }, { "amount": "348.00000", "billing_interval": "year", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1821653692, "customer_id": 107, "customer_ltv": "348.00000", "email": "diego.bennett107@example.com", "external_sub_id": "sub_cust-1107", "first_name": "Diego", "last_name": "Bennett", "mrr": "29.00000", "plan_name": "Pro Annual", "started_at": 1790117692, "status": "active", "subscription_id": 45 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1794860744, "customer_id": 106, "customer_ltv": "32.00000", "email": "kenji.ortiz106@example.com", "external_sub_id": "sub_cust-1106", "first_name": "Kenji", "last_name": "Ortiz", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1792182344, "status": "active", "subscription_id": 44 }, { "amount": "29.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1795209618, "customer_id": 103, "customer_ltv": "29.00000", "email": "zoe.jensen103@example.com", "external_sub_id": "sub_cust-1103", "first_name": "Zoe", "last_name": "Jensen", "mrr": "29.00000", "plan_name": "Team Monthly", "started_at": 1792531218, "status": "active", "subscription_id": 43 }, { "amount": "29.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": 1792622056, "company": null, "currency": "USD", "current_period_end": 1795216741, "customer_id": 100, "customer_ltv": "29.00000", "email": "zoe.moreau100@example.com", "external_sub_id": "sub_cust-1100", "first_name": "Zoe", "last_name": "Moreau", "mrr": "29.00000", "plan_name": "Team Monthly", "started_at": 1792538341, "status": "canceled", "subscription_id": 42 }, { "amount": "348.00000", "billing_interval": "year", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1823898110, "customer_id": 99, "customer_ltv": "348.00000", "email": "theo.nguyen99@example.com", "external_sub_id": "sub_cust-1099", "first_name": "Theo", "last_name": "Nguyen", "mrr": "29.00000", "plan_name": "Pro Annual", "started_at": 1792362110, "status": "active", "subscription_id": 41 }, { "amount": "29.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1794659214, "customer_id": 93, "customer_ltv": "29.00000", "email": "isla.young93@example.com", "external_sub_id": "sub_cust-1093", "first_name": "Isla", "last_name": "Young", "mrr": "29.00000", "plan_name": "Team Monthly", "started_at": 1791980814, "status": "active", "subscription_id": 40 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1795159068, "customer_id": 91, "customer_ltv": "32.00000", "email": "isla.walsh91@example.com", "external_sub_id": "sub_cust-1091", "first_name": "Isla", "last_name": "Walsh", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1792480668, "status": "active", "subscription_id": 39 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1794082731, "customer_id": 90, "customer_ltv": "32.00000", "email": "rhys.turner90@example.com", "external_sub_id": "sub_cust-1090", "first_name": "Rhys", "last_name": "Turner", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1791404331, "status": "active", "subscription_id": 38 }, { "amount": "29.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1794999668, "customer_id": 89, "customer_ltv": "29.00000", "email": "aisha.reyes89@example.com", "external_sub_id": "sub_cust-1089", "first_name": "Aisha", "last_name": "Reyes", "mrr": "29.00000", "plan_name": "Team Monthly", "started_at": 1792321268, "status": "active", "subscription_id": 37 }, { "amount": "348.00000", "billing_interval": "year", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1822866094, "customer_id": 86, "customer_ltv": "348.00000", "email": "chloe.ellis86@example.com", "external_sub_id": "sub_cust-1086", "first_name": "Chloe", "last_name": "Ellis", "mrr": "29.00000", "plan_name": "Pro Annual", "started_at": 1791330094, "status": "active", "subscription_id": 36 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1795289961, "customer_id": 85, "customer_ltv": "32.00000", "email": "clara.hayes85@example.com", "external_sub_id": "sub_cust-1085", "first_name": "Clara", "last_name": "Hayes", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1792611561, "status": "active", "subscription_id": 35 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1794053351, "customer_id": 80, "customer_ltv": "32.00000", "email": "june.nguyen80@example.com", "external_sub_id": "sub_cust-1080", "first_name": "June", "last_name": "Nguyen", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1791374951, "status": "active", "subscription_id": 34 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1793293125, "customer_id": 79, "customer_ltv": "58.00000", "email": "theo.reyes79@example.com", "external_sub_id": "sub_cust-1079", "first_name": "Theo", "last_name": "Reyes", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1790701125, "status": "active", "subscription_id": 33 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": 1792622056, "company": null, "currency": "USD", "current_period_end": 1792972381, "customer_id": 77, "customer_ltv": "58.00000", "email": "rhys.lopez77@example.com", "external_sub_id": "sub_cust-1077", "first_name": "Rhys", "last_name": "Lopez", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1790380381, "status": "canceled", "subscription_id": 32 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": 1792622056, "company": null, "currency": "USD", "current_period_end": 1793992167, "customer_id": 76, "customer_ltv": "32.00000", "email": "liam.grant76@example.com", "external_sub_id": "sub_cust-1076", "first_name": "Liam", "last_name": "Grant", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1791313767, "status": "canceled", "subscription_id": 31 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": 1792622056, "company": null, "currency": "USD", "current_period_end": 1793061544, "customer_id": 71, "customer_ltv": "32.00000", "email": "chloe.nguyen71@example.com", "external_sub_id": "sub_cust-1071", "first_name": "Chloe", "last_name": "Nguyen", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1790469544, "status": "canceled", "subscription_id": 30 }, { "amount": "29.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1793305330, "customer_id": 67, "customer_ltv": "29.00000", "email": "miles.okafor67@example.com", "external_sub_id": "sub_cust-1067", "first_name": "Miles", "last_name": "Okafor", "mrr": "29.00000", "plan_name": "Team Monthly", "started_at": 1790713330, "status": "active", "subscription_id": 29 }, { "amount": "348.00000", "billing_interval": "year", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1822400794, "customer_id": 66, "customer_ltv": "348.00000", "email": "hugo.foster66@example.com", "external_sub_id": "sub_cust-1066", "first_name": "Hugo", "last_name": "Foster", "mrr": "29.00000", "plan_name": "Pro Annual", "started_at": 1790864794, "status": "active", "subscription_id": 28 }, { "amount": "588.00000", "billing_interval": "year", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1823290494, "customer_id": 64, "customer_ltv": "588.00000", "email": "zoe.okafor64@example.com", "external_sub_id": "sub_cust-1064", "first_name": "Zoe", "last_name": "Okafor", "mrr": "49.00000", "plan_name": "Team Annual", "started_at": 1791754494, "status": "active", "subscription_id": 27 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": 1792622055, "company": null, "currency": "USD", "current_period_end": 1793875718, "customer_id": 62, "customer_ltv": "32.00000", "email": "leo.shah62@example.com", "external_sub_id": "sub_cust-1062", "first_name": "Leo", "last_name": "Shah", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1791197318, "status": "canceled", "subscription_id": 26 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1794977856, "customer_id": 59, "customer_ltv": "32.00000", "email": "maya.bennett59@example.com", "external_sub_id": "sub_cust-1059", "first_name": "Maya", "last_name": "Bennett", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1792299456, "status": "active", "subscription_id": 25 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1793932387, "customer_id": 58, "customer_ltv": "58.00000", "email": "ava.lindqvist58@example.com", "external_sub_id": "sub_cust-1058", "first_name": "Ava", "last_name": "Lindqvist", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1791253987, "status": "active", "subscription_id": 24 }, { "amount": "348.00000", "billing_interval": "year", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1822164035, "customer_id": 57, "customer_ltv": "348.00000", "email": "rhys.patel57@example.com", "external_sub_id": "sub_cust-1057", "first_name": "Rhys", "last_name": "Patel", "mrr": "29.00000", "plan_name": "Pro Annual", "started_at": 1790628035, "status": "active", "subscription_id": 23 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1795267974, "customer_id": 53, "customer_ltv": "32.00000", "email": "lucas.bennett53@example.com", "external_sub_id": "sub_cust-1053", "first_name": "Lucas", "last_name": "Bennett", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1792589574, "status": "active", "subscription_id": 22 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1792880009, "customer_id": 50, "customer_ltv": "32.00000", "email": "zoe.patel50@example.com", "external_sub_id": "sub_cust-1050", "first_name": "Zoe", "last_name": "Patel", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1790288009, "status": "active", "subscription_id": 21 }, { "amount": "348.00000", "billing_interval": "year", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1823741808, "customer_id": 47, "customer_ltv": "348.00000", "email": "mason.patel47@example.com", "external_sub_id": "sub_cust-1047", "first_name": "Mason", "last_name": "Patel", "mrr": "29.00000", "plan_name": "Pro Annual", "started_at": 1792205808, "status": "active", "subscription_id": 20 }, { "amount": "29.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1794680656, "customer_id": 46, "customer_ltv": "29.00000", "email": "silas.foster46@example.com", "external_sub_id": "sub_cust-1046", "first_name": "Silas", "last_name": "Foster", "mrr": "29.00000", "plan_name": "Team Monthly", "started_at": 1792002256, "status": "active", "subscription_id": 19 }, { "amount": "348.00000", "billing_interval": "year", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1821996284, "customer_id": 45, "customer_ltv": "348.00000", "email": "ruby.walsh45@example.com", "external_sub_id": "sub_cust-1045", "first_name": "Ruby", "last_name": "Walsh", "mrr": "29.00000", "plan_name": "Pro Annual", "started_at": 1790460284, "status": "active", "subscription_id": 18 }, { "amount": "588.00000", "billing_interval": "year", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1823257087, "customer_id": 40, "customer_ltv": "588.00000", "email": "isla.reyes40@example.com", "external_sub_id": "sub_cust-1040", "first_name": "Isla", "last_name": "Reyes", "mrr": "49.00000", "plan_name": "Team Annual", "started_at": 1791721087, "status": "active", "subscription_id": 17 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1795145656, "customer_id": 39, "customer_ltv": "32.00000", "email": "arlo.ellis39@example.com", "external_sub_id": "sub_cust-1039", "first_name": "Arlo", "last_name": "Ellis", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1792467256, "status": "active", "subscription_id": 16 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": 1792622055, "company": null, "currency": "USD", "current_period_end": 1792833958, "customer_id": 34, "customer_ltv": "32.00000", "email": "leo.shah34@example.com", "external_sub_id": "sub_cust-1034", "first_name": "Leo", "last_name": "Shah", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1790241958, "status": "canceled", "subscription_id": 15 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1794608749, "customer_id": 33, "customer_ltv": "32.00000", "email": "leo.patel33@example.com", "external_sub_id": "sub_cust-1033", "first_name": "Leo", "last_name": "Patel", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1791930349, "status": "active", "subscription_id": 14 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1793318585, "customer_id": 28, "customer_ltv": "58.00000", "email": "mateo.zhang28@example.com", "external_sub_id": "sub_cust-1028", "first_name": "Mateo", "last_name": "Zhang", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1790726585, "status": "active", "subscription_id": 13 }, { "amount": "588.00000", "billing_interval": "year", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1821798839, "customer_id": 27, "customer_ltv": "588.00000", "email": "hazel.underwood27@example.com", "external_sub_id": "sub_cust-1027", "first_name": "Hazel", "last_name": "Underwood", "mrr": "49.00000", "plan_name": "Team Annual", "started_at": 1790262839, "status": "active", "subscription_id": 12 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1794603146, "customer_id": 26, "customer_ltv": "32.00000", "email": "noah.haddad26@example.com", "external_sub_id": "sub_cust-1026", "first_name": "Noah", "last_name": "Haddad", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1791924746, "status": "active", "subscription_id": 11 }, { "amount": "29.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1792844031, "customer_id": 25, "customer_ltv": "29.00000", "email": "felix.kowalski25@example.com", "external_sub_id": "sub_cust-1025", "first_name": "Felix", "last_name": "Kowalski", "mrr": "29.00000", "plan_name": "Team Monthly", "started_at": 1790252031, "status": "active", "subscription_id": 10 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1794912678, "customer_id": 23, "customer_ltv": "32.00000", "email": "ivy.diaz23@example.com", "external_sub_id": "sub_cust-1023", "first_name": "Ivy", "last_name": "Diaz", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1792234278, "status": "active", "subscription_id": 9 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": 1792622055, "company": null, "currency": "USD", "current_period_end": 1794594316, "customer_id": 21, "customer_ltv": "58.00000", "email": "zoe.moreau21@example.com", "external_sub_id": "sub_cust-1021", "first_name": "Zoe", "last_name": "Moreau", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1791915916, "status": "canceled", "subscription_id": 8 }, { "amount": "29.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1795026019, "customer_id": 17, "customer_ltv": "29.00000", "email": "leo.bennett17@example.com", "external_sub_id": "sub_cust-1017", "first_name": "Leo", "last_name": "Bennett", "mrr": "29.00000", "plan_name": "Team Monthly", "started_at": 1792347619, "status": "active", "subscription_id": 7 }, { "amount": "348.00000", "billing_interval": "year", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1821885735, "customer_id": 13, "customer_ltv": "348.00000", "email": "maya.grant13@example.com", "external_sub_id": "sub_cust-1013", "first_name": "Maya", "last_name": "Grant", "mrr": "29.00000", "plan_name": "Pro Annual", "started_at": 1790349735, "status": "active", "subscription_id": 6 }, { "amount": "348.00000", "billing_interval": "year", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1823866333, "customer_id": 12, "customer_ltv": "348.00000", "email": "liam.lindqvist12@example.com", "external_sub_id": "sub_cust-1012", "first_name": "Liam", "last_name": "Lindqvist", "mrr": "29.00000", "plan_name": "Pro Annual", "started_at": 1792330333, "status": "active", "subscription_id": 5 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": 1792622055, "company": null, "currency": "USD", "current_period_end": 1794896481, "customer_id": 11, "customer_ltv": "32.00000", "email": "miles.shah11@example.com", "external_sub_id": "sub_cust-1011", "first_name": "Miles", "last_name": "Shah", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1792218081, "status": "canceled", "subscription_id": 4 }, { "amount": "29.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1795274606, "customer_id": 9, "customer_ltv": "29.00000", "email": "priya.lopez9@example.com", "external_sub_id": "sub_cust-1009", "first_name": "Priya", "last_name": "Lopez", "mrr": "29.00000", "plan_name": "Team Monthly", "started_at": 1792596206, "status": "active", "subscription_id": 3 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1793396690, "customer_id": 8, "customer_ltv": "32.00000", "email": "jonah.iverson8@example.com", "external_sub_id": "sub_cust-1008", "first_name": "Jonah", "last_name": "Iverson", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1790804690, "status": "active", "subscription_id": 2 }, { "amount": "32.00000", "billing_interval": "month", "billing_interval_count": 1, "canceled_at": null, "company": null, "currency": "USD", "current_period_end": 1795297382, "customer_id": 2, "customer_ltv": "32.00000", "email": "clara.diaz2@example.com", "external_sub_id": "sub_cust-1002", "first_name": "Clara", "last_name": "Diaz", "mrr": "32.00000", "plan_name": "Monthly Coffee", "started_at": 1792618982, "status": "active", "subscription_id": 1 } ], "pagination": { "limit": 50, "offset": 0, "total": 48 } }
03Build your command
Pick values and the command line writes itself, quoted and ready to paste.
p202 ltv subscriptionsSet flags below; the command updates as you type.
04Flags
3 flags, plus the global flags every command takes.
| Flag | What it does |
|---|---|
| --limit, -lstring | Rows per page (max 500) |
| --offset, -ostring | Pagination offset |
| --status, -sstring | Only this status: trialing, active, past_due, paused, canceledtrialingactivepast_duepausedcanceled |
05For agents
Running this from an agent
- Read the same facts as JSON:
p202 commands ltv subscriptions --json. - With
AI_AGENT,CLAUDECODEor another agent variable set, output is compact JSON and errors arrive on stderr as a JSON envelope with ahint. - Exit codes: 0 ok, 1 bad input, 2 auth, 3 network, 4 server error, 5 partial failure, 6 no Pro licence on the install.
{
"path": "p202 ltv subscriptions",
"use": "subscriptions",
"short": "Account-wide subscription list joined to customers, filterable by lifecycle status",
"runnable": true,
"flags": [
{
"name": "limit",
"shorthand": "l",
"type": "string",
"default": "",
"usage": "Rows per page (max 500)",
"required": false
},
{
"name": "offset",
"shorthand": "o",
"type": "string",
"default": "",
"usage": "Pagination offset",
"required": false
},
{
"name": "status",
"shorthand": "s",
"type": "string",
"default": "",
"usage": "Only this status: trialing, active, past_due, paused, canceled",
"allowed_values": [
"trialing",
"active",
"past_due",
"paused",
"canceled"
],
"required": false
}
]
}