Phase 4 part 1: the full Stripe sync, and margins per product
Customers, invoices with all their lines (both of Stripe's line shapes), credit notes, refunds (with their customer) and products: a backfill, then the Events API every hour, and a new backfill when events have expired. Metrics page with sync status. Gross margin per product: a default (60%) and overrides, with names from Stripe's products or the invoice lines. Schemas 18 and 19. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -19,7 +19,7 @@ var (
|
||||
plausibleKey = secretField{"plausible", secrets.PlausibleAPIKey, "Stats API key",
|
||||
"In Plausible, your account settings → API Keys → New API key, of the Stats API kind.", ""}
|
||||
stripeKey = secretField{"stripe", secrets.StripeAPIKey, "Restricted key",
|
||||
"In Stripe, Developers → API keys → Create restricted key, with Read access to Checkout Sessions and Invoices and nothing else. It starts rk_live_.", "https://dashboard.stripe.com/apikeys"}
|
||||
"In Stripe, Developers → API keys → Create restricted key, with Read access only, to Checkout Sessions, Invoices, Customers, Credit notes, Charges and Refunds, and Events (the last four for Metrics). It starts rk_live_.", "https://dashboard.stripe.com/apikeys"}
|
||||
)
|
||||
|
||||
const plausibleURLKey = "tracking:plausible-url"
|
||||
|
||||
Reference in New Issue
Block a user