Skip to content

Tables Schemas

When you spread stripeTables into your Convex schema, the following tables are created automatically:

⚡ These tables are synced automatically via webhooks.
You can query them directly in your Convex functions to check products, prices, and subscription status.

stripeProducts

Stores Stripe stripeProducts.

FieldTypeDescription
productIdstring
stripeobjectFull Stripe object.
lastSyncedAtfloat64

Indexes:

  • byActive: stripe.active
  • byName: stripe.name

stripePrices

Stores Stripe stripePrices.

FieldTypeDescription
priceIdstring
stripeobjectFull Stripe object.
lastSyncedAtfloat64

Indexes:

  • byPriceId: priceId
  • byActive: stripe.active
  • byRecurringInterval: stripe.recurring.interval
  • byCurrency: stripe.currency

stripeCustomers

Stores Stripe stripeCustomers.

FieldTypeDescription
customerIdstring
entityIdstring
stripeobjectFull Stripe object.
lastSyncedAtfloat64

Indexes:

  • byCustomerId: customerId
  • byEntityId: entityId

stripeSubscriptions

Stores Stripe stripeSubscriptions.

FieldTypeDescription
subscriptionIdunion
customerIdstring
stripeanyFull Stripe object.
lastSyncedAtfloat64

Indexes:

  • bySubscriptionId: subscriptionId
  • byCustomerId: customerId

stripeCoupons

Stores Stripe stripeCoupons.

FieldTypeDescription
couponIdstring
stripeobjectFull Stripe object.
lastSyncedAtfloat64

Indexes:

  • byCouponId: couponId

stripePromotionCodes

Stores Stripe stripePromotionCodes.

FieldTypeDescription
promotionCodeIdstring
stripeobjectFull Stripe object.
lastSyncedAtfloat64

Indexes:

  • byPromotionCodeId: promotionCodeId

stripePayouts

Stores Stripe stripePayouts.

FieldTypeDescription
payoutIdstring
stripeobjectFull Stripe object.
lastSyncedAtfloat64

Indexes:

  • byPayoutId: payoutId

stripeRefunds

Stores Stripe stripeRefunds.

FieldTypeDescription
refundIdstring
stripeobjectFull Stripe object.
lastSyncedAtfloat64

Indexes:

  • byRefundId: refundId

stripePaymentIntents

Stores Stripe stripePaymentIntents.

FieldTypeDescription
paymentIntentIdstring
stripeobjectFull Stripe object.
lastSyncedAtfloat64

Indexes:

  • byPaymentIntentId: paymentIntentId

stripeCheckoutSessions

Stores Stripe stripeCheckoutSessions.

FieldTypeDescription
checkoutSessionIdstring
stripeobjectFull Stripe object.
lastSyncedAtfloat64

Indexes:

  • byCheckoutSessionId: checkoutSessionId

stripeInvoices

Stores Stripe stripeInvoices.

FieldTypeDescription
invoiceIdstring
stripeobjectFull Stripe object.
lastSyncedAtfloat64

Indexes:

  • byInvoiceId: invoiceId

stripeReviews

Stores Stripe stripeReviews.

FieldTypeDescription
reviewIdstring
stripeobjectFull Stripe object.
lastSyncedAtfloat64

Indexes:

  • reviewId: reviewId

stripePlans

Stores Stripe stripePlans.

FieldTypeDescription
planIdstring
stripeobjectFull Stripe object.
lastSyncedAtfloat64

Indexes:

  • byPlanId: planId

stripeDisputes

Stores Stripe stripeDisputes.

FieldTypeDescription
disputeIdstring
stripeobjectFull Stripe object.
lastSyncedAtfloat64

Indexes:

  • byDisputeId: disputeId

stripeEarlyFraudWarnings

Stores Stripe stripeEarlyFraudWarnings.

FieldTypeDescription
earlyFraudWarningIdstring
stripeobjectFull Stripe object.
lastSyncedAtfloat64

Indexes:

  • byEarlyFraudWarningId: earlyFraudWarningId

stripeTaxIds

Stores Stripe stripeTaxIds.

FieldTypeDescription
taxIdIdstring
stripeobjectFull Stripe object.
lastSyncedAtfloat64

Indexes:

  • byTaxIdId: taxIdId

stripeSetupIntents

Stores Stripe stripeSetupIntents.

FieldTypeDescription
setupIntentIdstring
stripeobjectFull Stripe object.
lastSyncedAtfloat64

Indexes:

  • bySetupIntentId: setupIntentId

stripeCreditNotes

Stores Stripe stripeCreditNotes.

FieldTypeDescription
creditNoteIdstring
stripeobjectFull Stripe object.
lastSyncedAtfloat64

Indexes:

  • byCreditNoteId: creditNoteId

stripeCharges

Stores Stripe stripeCharges.

FieldTypeDescription
chargeIdstring
stripeobjectFull Stripe object.
lastSyncedAtfloat64

Indexes:

  • byChargeId: chargeId

stripePaymentMethods

Stores Stripe stripePaymentMethods.

FieldTypeDescription
paymentMethodIdstring
stripeobjectFull Stripe object.
lastSyncedAtfloat64

Indexes:

  • byPaymentMethodId: paymentMethodId

stripeSubscriptionSchedules

Stores Stripe stripeSubscriptionSchedules.

FieldTypeDescription
subscriptionScheduleIdstring
stripeobjectFull Stripe object.
lastSyncedAtfloat64

Indexes:

  • bySubscriptionScheduleId: subscriptionScheduleId