# Stripe

### Snapshot

| Features                        | Details                                          |
| ------------------------------- | ------------------------------------------------ |
| Release Status                  | Released                                         |
| Source API Version              | v2                                               |
| Table Selection                 | Yes                                              |
| Column Selection                | Yes                                              |
| Edit Integration                | Yes                                              |
| Replication Type Selection      | No                                               |
| Authentication Parameters       | <p>Stripe email<br>Stripe password</p>           |
| Replication Type                | <p>Full Replication<br>Key Based Replication</p> |
| Replication Key                 | NA                                               |
| Suggested Replication Frequency | 24 hrs                                           |

| Tables/APIs Supported |           |
| --------------------- | --------- |
| Invoices              | Customers |
| Subscriptions         | TaxRates  |
| Products              | Coupons   |

Refunds

### Integrate Stripe with Daton

1. Signin to Daton
2. Select Stripe from Integrations page
3. Provide Integration Name Replication Frequency and History. Integration name would be used in creating tables for the integration and cannot be changed later
4. Provide your stripe account email and password to authorize Daton to periodically extract data from stripe.
5. Post successful authentication you will be prompted to choose from the list of available tables
6. Then select all required fields for each table
7. Submit the integration

### Workflow

1. Integrations would be in Pending state initially and will be moved to Active state as soon as the first job loads data successfully on to the configured warehouse
2. Users would be able to edit/pause/re-activate/delete integration anytime
3. Users can view job status and process logs from the integration details page by clicking on the integration name from the active list

### STRIPE Data

**Invoices**

Purpose: Invoices are statements of amounts owed by a customer, and are either generated one-off, or generated periodically from a subscription.

Source API Documentation  <https://stripe.com/docs/api/invoices/list>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name                                 | Target Datatype |
| ------------------------------------ | --------------- |
| id                                   | STRING          |
| object                               | STRING          |
| account\_country                     | STRING          |
| account\_name                        | STRING          |
| amount\_due                          | NUMERIC         |
| amount\_paid                         | NUMERIC         |
| amount\_remaining                    | NUMERIC         |
| application\_fee\_amount             | STRING          |
| attempt\_count                       | NUMERIC         |
| attempted                            | BOOLEAN         |
| auto\_advance                        | BOOLEAN         |
| billing                              | STRING          |
| billing\_reason                      | STRING          |
| charge                               | STRING          |
| collection\_method                   | STRING          |
| created                              | TIMESTAMP       |
| currency                             | STRING          |
| custom\_fields                       | STRING          |
| customer                             | STRING          |
| customer\_address                    | STRING          |
| customer\_email                      | STRING          |
| customer\_name                       | STRING          |
| customer\_phone                      | STRING          |
| customer\_shipping                   | STRING          |
| customer\_tax\_exempt                | STRING          |
| customer\_tax\_ids                   | STRING          |
| default\_payment\_method             | STRING          |
| default\_source                      | STRING          |
| default\_tax-rates                   | STRING          |
| description                          | STRING          |
| discount                             | STRING          |
| due\_date                            | TIMESTAMP       |
| ending\_balance                      | NUMERIC         |
| footer                               | STRING          |
| hosted\_invoice\_url                 | STRING          |
| invoice\_pdf                         | STRING          |
| lines                                | RECORD          |
| livemode                             | BOOLEAN         |
| next\_payment\_attempt               | STRING          |
| number                               | STRING          |
| paid                                 | BOOLEAN         |
| payment\_intent                      | STRING          |
| period\_end                          | TIMESTAMP       |
| period\_start                        | TIMESTAMP       |
| post\_payment\_credit\_notes\_amount | NUMERIC         |
| pre\_payment\_credit\_notes\_amount  | NUMERIC         |
| receipt\_number                      | STRING          |
| starting\_balance                    | NUMERIC         |
| statement\_descriptor                | STRING          |
| status                               | STRING          |
| status\_transactions                 | RECORD          |
| subscriptions                        | STRING          |
| subtotal                             | NUMERIC         |
| tax                                  | STRING          |
| tax\_percent                         | STRING          |
| total                                | NUMERIC         |
| total\_tax\_amounts                  | RECORD          |
| webhooks\_delivered\_at              | TIMESTAMP       |

**Customers**

Purpose: Returns a list of the customers. The customers are returned sorted by creation date, with the most recent customers appearing first.

Source API Documentation  <https://stripe.com/docs/api/customers/list>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name                   | Target Datatype |
| ---------------------- | --------------- |
| id                     | STRING          |
| object                 | STRING          |
| account\_balance       | NUMERIC         |
| address                | STRING          |
| balance                | NUMERIC         |
| created                | TIMESTAMP       |
| currency               | STRING          |
| default\_source        | STRING          |
| delinquent             | BOOLEAN         |
| description            | STRING          |
| discount               | STRING          |
| email                  | STRING          |
| invoice\_prefix        | STRING          |
| invoice\_settings      | RECORD          |
| livemode               | BOOLEAN         |
| name                   | STRING          |
| phone                  | STRING          |
| preferred\_locales     | STRING          |
| shipping               | RECORD          |
| sources                | RECORD          |
| subscriptions          | RECORD          |
| tax\_exempt            | STRING          |
| tax\_ids               | RECORD          |
| tax\_info              | STRING          |
| tax-info\_verification | STRING          |

**Subscriptions**

Purpose: By default, returns a list of all subscriptions that have not been canceled. In order to list canceled subscriptions, specify status=canceled

Source API Documentation  <https://stripe.com/docs/api/subscriptions/list>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name                      | Target Datatype |
| ------------------------- | --------------- |
| id                        | STRING          |
| object                    | STRING          |
| application\_fee\_percent | STRING          |
| billing                   | STRING          |
| billing\_cycle\_anchor    | TIMESTAMP       |
| billing\_thresholds       | STRING          |
| cancel\_at                | TIMESTAMP       |
| cancel\_at\_period\_end   | BOOLEAN         |
| canceled\_at              | TIMESTAMP       |
| collection\_method        | STRING          |
| created                   | TIMESTAMP       |
| current\_period\_end      | TIMESTAMP       |
| current\_period\_start    | TIMESTAMP       |
| customer                  | STRING          |
| days\_until\_due          | INTEGER         |
| default\_payment\_method  | STRING          |
| default\_source           | STRING          |
| default\_tax\_rates       | STRING          |
| discount                  | STRING          |
| ended\_at                 | TIMESTAMP       |
| items                     | RECORDtaxr      |
| latest\_invoice           | STRING          |
| livemode                  | BOOLEAN         |
| pending\_setup\_intent    | STRING          |
| plan                      | RECORD          |
| quantity                  | NUMERIC         |
| schedule                  | STRING          |
| start                     | TIMESTAMP       |
| start\_date               | TIMESTAMP       |
| status                    | STRING          |
| tax\_percent              | STRING          |
| trial\_end                | STRING          |
| trial\_start              | STRING          |

**Taxrates**

Purpose:Returns a list of your tax rates. Tax rates are returned sorted by creation date, with the most recently created tax rates appearing first.

Source API Documentation  <https://stripe.com/docs/api/taxrates/list>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name          | Target Datatype |
| ------------- | --------------- |
| id            | STRING          |
| object        | STRING          |
| active        | BOOLEAN         |
| created       | TIMESTAMP       |
| description   | STRING          |
| display\_name | STRING          |
| inclusive     | BOOLEAN         |
| jurisdiction  | STRING          |
| livemode      | BOOLEAN         |
| percentage    | NUMERIC         |

**Products**

Purpose: Store representations of products you sell in Product objects, used in conjunction with SKUs. Products may be physical goods, to be shipped, or digital

Source API Documentation  <https://stripe.com/docs/api/products>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name                  | Target Datatype |
| --------------------- | --------------- |
| id                    | STRING          |
| object                | STRING          |
| active                | BOOLEAN         |
| created               | TIMESTAMP       |
| deactivate\_on        | STRING          |
| description           | STRING          |
| images                | STRING          |
| livemode              | BOOLEAN         |
| name                  | STRING          |
| package\_dimensions   | STRING          |
| statement\_descriptor | STRING          |
| type                  | STRING          |
| unit\_label           | STRING          |
| updated               | TIMESTAMP       |

**Coupons**

Purpose: A coupon contains information about a percent-off or amount-off discount you might want to apply to a customer. Coupons may be applied to invoices or orders. Coupons do not work with conventional one-off charges, but you can implement a custom coupon system in your application.

Source API Documentation  <https://stripe.com/docs/api/coupons>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name                 | Target Datatype |
| -------------------- | --------------- |
| id                   | STRING          |
| object               | STRING          |
| amount\_off          | NUMERIC         |
| created              | TIMESTAMP       |
| currency             | STRING          |
| duration             | STRING          |
| duration\_in\_months | STRING          |
| livemode             | BOOLEAN         |
| max\_redemptions     | STRING          |
| name                 | STRING          |
| percent\_off         | STRING          |
| redeem\_by           | TIMESTAMP       |
| times\_redeemed      | NUMERIC         |
| valid                | BOOLEAN         |

**Refunds**

Purpose:This API shows a list of all the channels that have already been integrated in your Shiprocket account.

Source API Documentation  <https://stripe.com/docs/api/refunds>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name                       | Target Datatype |
| -------------------------- | --------------- |
| id                         | STRING          |
| object                     | STRING          |
| amount                     | NUMERIC         |
| balance\_transaction       | STRING          |
| charge                     | STRING          |
| created                    | TIMESTAMP       |
| currency                   | STRING          |
| reason                     | STRING          |
| receipt\_number            | STRING          |
| source\_transfer\_reversal | STRING          |
| status                     | STRING          |
| transfer\_reversal         | STRING          |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://daton-sarasanalytics.gitbook.io/daton/integrations/data-sources/payments/stripe.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
