Store Stripe's Subscription.customer to subscriptions.customer
column in the database
#233
Labels
subscriptions.customer
column in the database
#233
Task Description
We currently need to make API calls to Stripe each time to get the Subscription.customer information, as it's not stored in our database. This information is required for:
To improve performance and reliability, we need to store this information in our subscriptions table.
Background
Current implementation requires Stripe API calls for each operation:
giselle/services/usage-based-billing/agent-time-usage.ts
Lines 78 to 83 in 4a5a130
giselle/services/teams/actions/manage-billing.ts
Lines 11 to 16 in 4a5a130
Implementation Steps
customer
column to subscriptions table (nullable initially)NOT NULL
Reference
The text was updated successfully, but these errors were encountered: