Accéder directement au contenu
Créez un compte
ou
connecter-vous
Logo de la documentation Stripe
/
Demander à l'assistant IA
Créez un compte
Connectez-vous
Démarrer
Paiements
Revenus
Plateformes et places de marché
Gestion de fonds
Ressources pour les développeurs
Aperçu
Billing
PrésentationÀ propos des API Billing
Abonnements
Invoicing
Facturation à la consommation
Devis
Gestion des clients
Facturation avec d'autres produits
Recouvrement de revenus
Automatisations
Tester votre intégration
Tax
Présentation
Utiliser Stripe Tax
Gérer la conformité
Rapports
Présentation
Sélectionner un rapport
Configurer des rapports
API de rapport
Rapports sur plusieurs comptes
Comptabilisation des revenus
Données
Présentation
Différents cas d'usage des données métier et produit
SchémaActualisation des données
Sigma
Data Pipeline
    Présentation
    Fonctionnement de Data Pipeline
    Exporter des données vers un entrepôt de données
    Exporter des données vers le cloud
      Exporter des données vers Google Cloud Storage
      Exporter des données vers AWS S3
      Exporter des données Azure Blob
      Diagnostiquer les problèmes de connexion liés au stockage dans le cloud
      Organisation des fichiers stockés dans le cloud
    Exporter les personnalisations
Importer des données externes
AccueilRevenusData PipelineExport data to cloud storage

Remarque

Cette page n'est pas encore disponible dans cette langue. Nous faisons tout notre possible pour proposer notre documentation dans davantage de langues et nous vous fournirons la version traduite dès qu'elle sera disponible.

Export data to Google Cloud Storage

Automate recurring data exports from Stripe to your Google Cloud Storage.

Google Cloud Storage destination

Data pipeline can deliver all your Stripe data as Parquet files into your Google Cloud Storage (GCS) bucket. It includes a directory of files for each table, which is delivered and updated every 3 hours.

Chargement du contenu vidéo...

Prerequisites

Before starting the integration, make sure you have access and permission to:

  1. Create a Google Cloud Storage bucket.
  2. Create a service account enabling Stripe to create objects in the provisioned bucket.
  3. Access the Stripe Dashboard as an admin.

Select Your Google Cloud Project

  1. Navigate to the Google Cloud Console.
  2. Select the project that you want to send your Stripe data to.

Create a new Service Account and generate a JSON key

  1. On the Service Accounts page, make sure you’re in the correct Google Cloud Project.
  2. Click + CREATE SERVICE ACCOUNT.
  3. Enter a name for the service account, for example, “<name>-stripe-data-pipeline.”
  4. Add a description—for example, “This role gives Stripe access to upload data files to our bucket.”
  5. Click CREATE AND CONTINUE.
  6. In the Select a Role dropdown, add three roles: Storage Object User, Storage Object Creator, and Storage Insights Collector Service.
  7. Click DONE.
  8. For your new Service Account, click Manage keys in the Actions menu.
  9. Click ADD KEY ▾ and select Create new key.
  10. Choose Key type JSON and click CREATE. The JSON file downloads to your device.

Create a New Bucket

  1. Make sure you’re in the correct Google Cloud project by navigating to Cloud Storage > Buckets in the Google Cloud console.
  2. Click + CREATE.
  3. In the Name field, we recommend a name including “stripe,” such as “<name>-stripe-data.”
  4. For the Location type, we recommend Multi-Regional US.
  5. For the Storage class, we recommend Set a default class - Standard.
  6. For the Access Control, choose Prevent public access with Uniform access control.
  7. Click CREATE button to create the bucket.
  8. Select the PERMISSIONS tab for your newly created bucket.
  9. Under Permissions in the VIEW BY PRINCIPAL tab, select the box next to the Service Account you created in the previous step.

Mise en garde

Setting a retention policy on your bucket might cause the data exports to fail, because it restricts the ability to delete or override files in the bucket.

FacultatifGenerate encryption keys

Stripe offers the ability to encrypt data transfers from Stripe to your storage bucket using PGP encryption with a customer-owned key. This provides an additional layer of protection, ensuring your data remains secure in transit and at rest.

While you can disable PGP encryption, doing so increases the risk of data exposure if you misconfigure something or if unauthorized parties access your bucket. Keeping encryption enabled ensures your data has the highest level of protection.

  1. Open the command line interface (terminal).
  2. Execute the command gpg --full-generate-key to create a key pair.
  3. When prompted, select your preferred type, size, and expiration of the key. We suggest:
    • Kind: (1) RSA and RSA (default)
    • Bit Length: 4096
    • Key is valid for: 0 (doesn’t expire)
  4. Confirm this is correct by typing y and pressing Enter.
  5. Find your account ID (acct_1234) at Settings > Business > Account Details and enter it as the real name. Leave the email and comments blank.
  6. Type “O” and click Enter to confirm.
  7. At the passphrase prompt, don’t enter one. Instead, press Enter and select “Yes, protection is not needed.” Repeat this step to confirm your choice.
  8. In the output in your command line interface (terminal), locate the key you just generated and note the key ID (the long hexadecimal string at the end of the pub line).
  9. To export the public key, enter the command gpg --output acct_1234.key --armor --export your-key-id, replacing your-key-id with the hexadecimal key ID you found in the previous step.
  10. The public key file (acct_1234.key) is now saved in the current directory.

Remarque

Stripe encrypts your data with a key you provide, and you decrypt in google cloud stroage.

Establishing your Google Cloud Storage connection

  1. Visit the Data Pipeline Dashboard.
  2. Click Get started.
  3. Select the Google Cloud Storage logo and click Continue ->. This step generates a bucket name.
  4. Enter the bucket name generated in the previous step.
  5. Upload your Service Account .json file generated earlier.
  6. Select your data encryption option. If you chose to use a customer managed key, upload your public key.
  7. Click the Next button. Clicking this button sends test data to the bucket you provided, but not production data.
  8. When you confirm test data delivery, go to your Cloud Storage bucket.
  9. Open the bucket, go to the penny_test directory, and open the acct_ or org_ prefixed sub-directory to locate the delivered account_validation.csv test file.
  10. Click the account_validation.csv file.
  11. Click DOWNLOAD.
  12. Click the Upload the test value file and upload the downloaded account_validation.csv.
  13. Click Confirm value.
  14. When you confirm the test value, click Subscribe. This subscribes you to the product and schedules the initial full load of data for delivery to your Google Cloud Storage bucket, a process that can take 6-12 hours.

*Google Cloud Storage is a trademark of Google LLC.

Cette page vous a-t-elle été utile ?
OuiNon
  • Besoin d'aide ? Contactez le service Support.
  • Rejoignez notre programme d'accès anticipé.
  • Consultez notre log des modifications.
  • Des questions ? Contactez l'équipe commerciale.
  • LLM ? Lire llms.txt.
  • Propulsé par Markdoc