Stripe

Stripe logo

Stripe

Connect your Stripe data to Airweave

Overview

The Stripe connector allows you to sync data from Stripe into Airweave, making it available for search and retrieval by your agents.

Configuration

StripeSource

Stripe source implementation.

This connector retrieves data from various Stripe objects, yielding them as entities through their respective schemas. The following resource endpoints are used:

  • /v1/balance
  • /v1/balance_transactions
  • /v1/charges
  • /v1/customers
  • /v1/events
  • /v1/invoices
  • /v1/payment_intents
  • /v1/payment_methods
  • /v1/payouts
  • /v1/refunds
  • /v1/subscriptions

Each resource endpoint may use Stripe’s pagination (has_more + starting_after) to retrieve all objects. Fields are mapped to the entity schemas defined in entities/stripe.py.

Authentication

This connector uses a custom authentication configuration class: StripeAuthConfig.

Authentication Configuration

Stripe authentication credentials schema.

api_key
strRequired

The API key for the Stripe account. Should start with ‘sk_test_’ for test mode or ‘sk_live_’ for live mode.

Entities

The following data models are available for this connector:

Schema for Stripe Balance resource.

https://stripe.com/docs/api/balance/balance_object

FieldTypeDescription
availableList[Dict[str, Any]]Funds that are available to be paid out, broken down by currency
pendingList[Dict[str, Any]]Funds not yet available, broken down by currency
instant_availableOptional[List[Dict[str, Any]]]Funds available for Instant Payouts (if enabled)
connect_reservedOptional[List[Dict[str, Any]]]Funds reserved for connected accounts (if using Connect)
livemodeboolWhether this balance is in live mode (vs test mode)

Schema for Stripe Balance Transaction resource.

https://stripe.com/docs/api/balance_transactions

FieldTypeDescription
amountOptional[int]Gross amount of the transaction, in cents
currencyOptional[str]Three-letter ISO currency code
created_atOptional[datetime]Time at which the transaction was created
descriptionOptional[str]Text description of the transaction
feeOptional[int]Fees (in cents) taken from this transaction
fee_detailsList[Dict[str, Any]]Detailed breakdown of fees (type, amount, application, etc.)
netOptional[int]Net amount of the transaction, in cents
reporting_categoryOptional[str]Reporting category (e.g., ‘charge’, ‘refund’, etc.)
sourceOptional[str]ID of the charge or other object that caused this balance transaction
statusOptional[str]Status of the balance transaction (e.g., ‘available’, ‘pending’)
typeOptional[str]Transaction type (e.g., ‘charge’, ‘refund’, ‘payout’)

Schema for Stripe Charge entities.

https://stripe.com/docs/api/charges

FieldTypeDescription
amountOptional[int]Amount charged in cents
currencyOptional[str]Three-letter ISO currency code
capturedboolWhether the charge was captured
paidboolWhether the charge was paid
refundedboolWhether the charge was refunded
created_atOptional[datetime]When the charge was created
descriptionOptional[str]Arbitrary description of the charge
receipt_urlOptional[str]URL to view this charge’s receipt
customer_idOptional[str]ID of the Customer this charge belongs to
invoice_idOptional[str]ID of the Invoice this charge is linked to (if any)
metadataDict[str, Any]Set of key-value pairs attached to the charge

Schema for Stripe Customer entities.

https://stripe.com/docs/api/customers

FieldTypeDescription
emailOptional[str]The customer’s email address
phoneOptional[str]The customer’s phone number
nameOptional[str]The customer’s full name
descriptionOptional[str]Arbitrary description of the customer
created_atOptional[datetime]When the customer was created
currencyOptional[str]Preferred currency for the customer’s recurring payments
default_sourceOptional[str]ID of the default payment source (e.g. card) attached to this customer
delinquentboolWhether the customer has any unpaid/overdue invoices
invoice_prefixOptional[str]Prefix for the customer’s invoices
metadataDict[str, Any]Set of key-value pairs attached to the customer

Schema for Stripe Event resource.

https://stripe.com/docs/api/events

FieldTypeDescription
event_typeOptional[str]The event’s type (e.g., ‘charge.succeeded’, ‘customer.created’)
api_versionOptional[str]API version used to render event data
created_atOptional[datetime]When the notification was created (time of the event)
dataDict[str, Any]The event payload. Typically includes ‘object’ and ‘previous_attributes’.
livemodeboolWhether the event was triggered in live mode
pending_webhooksOptional[int]Number of webhooks yet to be delivered
requestOptional[Dict[str, Any]]Information on the request that created or triggered the event

Schema for Stripe Invoice entities.

https://stripe.com/docs/api/invoices

FieldTypeDescription
customer_idOptional[str]The ID of the customer this invoice belongs to
numberOptional[str]A unique, user-facing reference for this invoice
statusOptional[str]Invoice status (e.g., ‘draft’, ‘open’, ‘paid’, ‘void’)
amount_dueOptional[int]Final amount due in cents (before any payment or credit)
amount_paidOptional[int]Amount paid in cents
amount_remainingOptional[int]Amount remaining to be paid in cents
created_atOptional[datetime]When the invoice was created
due_dateOptional[datetime]Date on which payment is due (if applicable)
paidboolWhether the invoice has been fully paid
currencyOptional[str]Three-letter ISO currency code (e.g. ‘usd’)
metadataDict[str, Any]Set of key-value pairs that can be attached to the invoice

Schema for Stripe PaymentIntent entities.

https://stripe.com/docs/api/payment_intents

FieldTypeDescription
amountOptional[int]Amount in cents intended to be collected by this PaymentIntent
currencyOptional[str]Three-letter ISO currency code
statusOptional[str]Status of the PaymentIntent (e.g. ‘requires_payment_method’, ‘succeeded’)
descriptionOptional[str]Arbitrary description for the PaymentIntent
created_atOptional[datetime]When the PaymentIntent was created
customer_idOptional[str]ID of the Customer this PaymentIntent is for (if any)
metadataDict[str, Any]Set of key-value pairs attached to the PaymentIntent

Schema for Stripe PaymentMethod resource.

https://stripe.com/docs/api/payment_methods

FieldTypeDescription
typeOptional[str]Type of the PaymentMethod (card, ideal, etc.)
billing_detailsDict[str, Any]Billing information associated with the PaymentMethod
customer_idOptional[str]ID of the Customer to which this PaymentMethod is saved (if any)
cardOptional[Dict[str, Any]]If the PaymentMethod type is ‘card’, details about the card (brand, last4, etc.)
created_atOptional[datetime]When the PaymentMethod was created
metadataDict[str, Any]Set of key-value pairs that can be attached to the PaymentMethod

Schema for Stripe Payout resource.

https://stripe.com/docs/api/payouts

FieldTypeDescription
amountOptional[int]Amount in cents to be transferred
currencyOptional[str]Three-letter ISO currency code
arrival_dateOptional[datetime]Date the payout is expected to arrive in the bank
created_atOptional[datetime]When this payout was created
descriptionOptional[str]An arbitrary string attached to the payout
destinationOptional[str]ID of the bank account or card the payout was sent to
methodOptional[str]The method used to send this payout (e.g., ‘standard’, ‘instant’)
statusOptional[str]Status of the payout (e.g., ‘paid’, ‘pending’, ‘in_transit’)
statement_descriptorOptional[str]Extra information to be displayed on the user’s bank statement
metadataDict[str, Any]Set of key-value pairs that can be attached to the payout

Schema for Stripe Refund resource.

https://stripe.com/docs/api/refunds

FieldTypeDescription
amountOptional[int]Amount in cents refunded
currencyOptional[str]Three-letter ISO currency code
created_atOptional[datetime]When this refund was created
statusOptional[str]Status of the refund (e.g., ‘pending’, ‘succeeded’, ‘failed’)
reasonOptional[str]Reason for the refund (duplicate, fraudulent, requested_by_customer, etc.)
receipt_numberOptional[str]Transaction number that appears on email receipts issued for this refund
charge_idOptional[str]ID of the charge being refunded
payment_intent_idOptional[str]ID of the PaymentIntent being refunded (if applicable)
metadataDict[str, Any]Set of key-value pairs that can be attached to the refund

Schema for Stripe Subscription entities.

https://stripe.com/docs/api/subscriptions

FieldTypeDescription
customer_idOptional[str]The ID of the customer who owns this subscription
statusOptional[str]Status of the subscription (e.g., ‘active’, ‘past_due’, ‘canceled’)
current_period_startOptional[datetime]Start of the current billing period for this subscription
current_period_endOptional[datetime]End of the current billing period for this subscription
cancel_at_period_endboolWhether the subscription will cancel at the end of the current period
canceled_atOptional[datetime]When the subscription was canceled (if any)
created_atOptional[datetime]When the subscription was first created
metadataDict[str, Any]Set of key-value pairs attached to the subscription