{"id":104,"date":"2026-08-02T10:53:23","date_gmt":"2026-08-02T08:53:23","guid":{"rendered":"https:\/\/docil.ai\/?page_id=104"},"modified":"2026-11-27T12:51:31","modified_gmt":"2026-11-27T11:51:31","slug":"stripe","status":"publish","type":"page","link":"https:\/\/docil.ai\/es\/stripe\/","title":{"rendered":"Connect Stripe to Docil"},"content":{"rendered":"<p><!-- ===== Docil \u00b7 Stripe API key guide \u00b7 paste inside a Custom HTML block ===== --><\/p>\n<style>\n.docil-guide{max-width:820px;margin:0 auto;line-height:1.65;}\n.docil-guide h2{margin:2.6em 0 .6em;line-height:1.25;}\n.docil-guide h3{margin:2em 0 .5em;font-size:1.15em;}\n.docil-guide p,.docil-guide li{font-size:1.02em;}\n.docil-guide ol,.docil-guide ul{margin:0 0 1.4em 1.2em;padding:0;}\n.docil-guide li{margin-bottom:.5em;}\n.docil-guide hr{border:0;border-top:1px solid rgba(128,128,128,.25);margin:3em 0;}\n.docil-guide code{background:rgba(128,128,128,.13);padding:.12em .4em;border-radius:4px;font-size:.92em;white-space:nowrap;}\n.docil-guide pre{background:rgba(128,128,128,.13);padding:1em 1.2em;border-radius:8px;overflow-x:auto;margin:0 0 1.4em;}\n.docil-guide pre code{background:none;padding:0;}\n.docil-guide .docil-table-wrap{overflow-x:auto;margin:0 0 1.6em;}\n.docil-guide table{width:100%;border-collapse:collapse;font-size:.95em;}\n.docil-guide th,.docil-guide td{text-align:left;padding:.65em .8em;border-bottom:1px solid rgba(128,128,128,.22);vertical-align:top;}\n.docil-guide th{font-weight:600;white-space:nowrap;}\n.docil-guide .docil-note{border-left:3px solid currentColor;padding:.2em 0 .2em 1.1em;margin:0 0 1.6em;opacity:.9;}\n.docil-guide .docil-cta{text-align:center;margin:2.5em 0 0;font-size:1.05em;}\n.docil-guide .docil-faq p{margin:0 0 1.2em;}\n@media(max-width:600px){.docil-guide th,.docil-guide td{padding:.55em .5em;font-size:.92em;}}\n<\/style>\n<div class=\"docil-guide\">\n<p>Docil answers questions about your billing \u2014 revenue by month, churn, which customers went quiet, which subscriptions renew next \u2014 by reading your Stripe data. To do that it needs one credential: a <strong>restricted API key<\/strong>, created by you, in your own Stripe Dashboard, with read-only permissions.<\/p>\n<p>It takes about three minutes. You never share your password, and you can revoke the key at any time without touching anything else in your Stripe account.<\/p>\n<hr>\n<h2>Before you start<\/h2>\n<ul>\n<li>You need to be the <strong>owner or an administrator<\/strong> of the Stripe account. Members with limited roles can\u2019t create API keys.<\/li>\n<li>Have your <strong>two-factor authentication<\/strong> device to hand. Stripe asks you to confirm before it reveals a new key.<\/li>\n<li>Decide which account you\u2019re connecting. If you have several Stripe accounts (one per brand or country), each one needs its own key.<\/li>\n<\/ul>\n<h2>Step 1 \u2014 Open the API keys page<\/h2>\n<ol>\n<li>Sign in at <a href=\"https:\/\/dashboard.stripe.com\" target=\"_blank\" rel=\"noopener nofollow\">dashboard.stripe.com<\/a>.<\/li>\n<li>If you have more than one Stripe account, use the account switcher in the top-left corner to select the right one.<\/li>\n<li>Go to <strong>Developers \u2192 API keys<\/strong>. You can also go straight there: <a href=\"https:\/\/dashboard.stripe.com\/apikeys\" target=\"_blank\" rel=\"noopener nofollow\">dashboard.stripe.com\/apikeys<\/a>.<\/li>\n<\/ol>\n<p>You\u2019ll land on a page with two sections: <strong>Standard keys<\/strong> (your publishable and secret keys) and <strong>Restricted keys<\/strong>. Ignore the first section \u2014 the key you want is the second one.<\/p>\n<h2>Step 2 \u2014 Make sure you\u2019re in live mode<\/h2>\n<p>Look at the <strong>Test mode<\/strong> toggle at the top of the Dashboard.<\/p>\n<ul>\n<li><strong>Test mode off (live mode)<\/strong> \u2192 the key reads your real payments. This is what you want.<\/li>\n<li><strong>Test mode on<\/strong> \u2192 the key reads sandbox data only. Docil will connect fine, but every answer will come back empty or fictional.<\/li>\n<\/ul>\n<p>Live keys contain <code>live<\/code> in the prefix, test keys contain <code>test<\/code>. If your key says <code>rk_test_<\/code>, you were in the wrong mode.<\/p>\n<h2>Step 3 \u2014 Create a restricted key<\/h2>\n<p>In the <strong>Restricted keys<\/strong> section, click <strong>Create restricted key<\/strong>.<\/p>\n<p>Stripe offers a preconfigured set of permissions or a blank slate with everything set to <strong>None<\/strong>. Start from zero permissions \u2014 it\u2019s faster to add the eight or nine you need than to audit a long list you didn\u2019t choose.<\/p>\n<p>Give the key a name that will still make sense in a year, for example:<\/p>\n<pre><code>Docil \u2014 read only<\/code><\/pre>\n<h2>Step 4 \u2014 Grant read-only permissions<\/h2>\n<p>Every resource has three options: <strong>None<\/strong>, <strong>Read<\/strong>, <strong>Write<\/strong>. Set <strong>Read<\/strong> on the resources below and leave <strong>everything else on None<\/strong>. Docil never needs Write on anything \u2014 it doesn\u2019t create charges, issue refunds or modify subscriptions.<\/p>\n<div class=\"docil-table-wrap\">\n<table>\n<thead>\n<tr>\n<th>Resource<\/th>\n<th>Permission<\/th>\n<th>What it lets Docil answer<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Balance<\/td>\n<td>Read<\/td>\n<td>Available and pending balance<\/td>\n<\/tr>\n<tr>\n<td>Balance transactions<\/td>\n<td>Read<\/td>\n<td>Net revenue after Stripe fees<\/td>\n<\/tr>\n<tr>\n<td>Charges<\/td>\n<td>Read<\/td>\n<td>Payments, declines, failure reasons<\/td>\n<\/tr>\n<tr>\n<td>PaymentIntents<\/td>\n<td>Read<\/td>\n<td>Checkout attempts and outcomes<\/td>\n<\/tr>\n<tr>\n<td>Refunds<\/td>\n<td>Read<\/td>\n<td>Refund volume and reasons<\/td>\n<\/tr>\n<tr>\n<td>Disputes<\/td>\n<td>Read<\/td>\n<td>Chargebacks and their cost<\/td>\n<\/tr>\n<tr>\n<td>Payouts<\/td>\n<td>Read<\/td>\n<td>What actually landed in your bank<\/td>\n<\/tr>\n<tr>\n<td>Customers<\/td>\n<td>Read<\/td>\n<td>Who pays you, since when<\/td>\n<\/tr>\n<tr>\n<td>Products<\/td>\n<td>Read<\/td>\n<td>What you sell<\/td>\n<\/tr>\n<tr>\n<td>Prices \/ Plans<\/td>\n<td>Read<\/td>\n<td>At what price and interval<\/td>\n<\/tr>\n<tr>\n<td>Invoices<\/td>\n<td>Read<\/td>\n<td>Issued, paid, overdue<\/td>\n<\/tr>\n<tr>\n<td>Subscriptions<\/td>\n<td>Read<\/td>\n<td>MRR, renewals, cancellations<\/td>\n<\/tr>\n<tr>\n<td>Credit notes<\/td>\n<td>Read<\/td>\n<td>Adjustments against invoices<\/td>\n<\/tr>\n<tr>\n<td>Coupons \/ Promotion codes<\/td>\n<td>Read<\/td>\n<td>Discount impact on revenue<\/td>\n<\/tr>\n<tr>\n<td>Checkout Sessions<\/td>\n<td>Read<\/td>\n<td>Conversion and abandonment<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>Nothing to enable for Connect unless you operate a platform with connected accounts \u2014 in that case, add read access for the connected accounts you want included.<\/p>\n<p>Then click <strong>Create key<\/strong>.<\/p>\n<h2>Step 5 \u2014 Copy the key and store it<\/h2>\n<ol>\n<li>Complete the <strong>two-factor verification<\/strong> Stripe sends you.<\/li>\n<li>Click the key value to copy it. It starts with <code>rk_live_<\/code>.<\/li>\n<li><strong>Save it now.<\/strong> Stripe shows the full value once. If you lose it, you can\u2019t retrieve it \u2014 you\u2019d have to roll the key and start again.<\/li>\n<li>In the <strong>Add a note<\/strong> field, write where you stored it (your password manager, for example), then click <strong>Done<\/strong>.<\/li>\n<\/ol>\n<h2>Step 6 \u2014 Paste it into Docil<\/h2>\n<ol>\n<li>Open <a href=\"https:\/\/app.docil.ai\" target=\"_blank\" rel=\"noopener\">app.docil.ai<\/a> and go to <strong>Conexiones<\/strong>.<\/li>\n<li>Select <strong>Stripe<\/strong>.<\/li>\n<li>Paste the key and save.<\/li>\n<\/ol>\n<p>Docil validates the key immediately and begins indexing. First sync takes a few minutes on a small account, longer if you have years of invoices. When it finishes, ask it something real:<\/p>\n<blockquote>\n<p>\u201cCompare this month\u2019s net revenue against the same month last year and tell me what changed.\u201d<\/p>\n<\/blockquote>\n<hr>\n<h2>Which key is which<\/h2>\n<p>Stripe shows several credentials on the same page. Only one of them belongs in Docil.<\/p>\n<div class=\"docil-table-wrap\">\n<table>\n<thead>\n<tr>\n<th>Prefix<\/th>\n<th>Name<\/th>\n<th>Use it with Docil?<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>pk_live_<\/code> \/ <code>pk_test_<\/code><\/td>\n<td>Publishable key<\/td>\n<td>No. Public, front-end only, reads nothing useful.<\/td>\n<\/tr>\n<tr>\n<td><code>sk_live_<\/code> \/ <code>sk_test_<\/code><\/td>\n<td>Secret key<\/td>\n<td>No. Full control of your account \u2014 never share it with any third party.<\/td>\n<\/tr>\n<tr>\n<td><code>rk_live_<\/code><\/td>\n<td>Restricted key, live<\/td>\n<td><strong>Yes.<\/strong> This is the one.<\/td>\n<\/tr>\n<tr>\n<td><code>rk_test_<\/code><\/td>\n<td>Restricted key, test<\/td>\n<td>Only if you\u2019re deliberately testing against sandbox data.<\/td>\n<\/tr>\n<tr>\n<td><code>whsec_<\/code><\/td>\n<td>Webhook signing secret<\/td>\n<td>No. Different purpose entirely.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p class=\"docil-note\">If a tool ever asks you for a key starting with <code>sk_<\/code>, push back. Stripe\u2019s own recommendation is to use restricted keys instead of unrestricted secret keys wherever possible, and especially when handing access to an AI system.<\/p>\n<hr>\n<h2>What this key can and cannot do<\/h2>\n<p><strong>Can:<\/strong> read the billing data you selected, so Docil can cross-check it against your contracts, your ads and your CRM in the same conversation.<\/p>\n<p><strong>Cannot:<\/strong> create a charge, refund a customer, cancel or modify a subscription, change a price, trigger a payout, or read anything you left on <strong>None<\/strong>.<\/p>\n<p>If you later ask Docil something that needs a resource you didn\u2019t enable, Stripe returns a permission error and Docil tells you exactly which permission is missing. Add it in one click \u2014 no need to create a new key.<\/p>\n<h2>Revoking access<\/h2>\n<p>Disconnecting is entirely on your side, and instant:<\/p>\n<ol>\n<li>Go to <a href=\"https:\/\/dashboard.stripe.com\/apikeys\" target=\"_blank\" rel=\"noopener nofollow\">dashboard.stripe.com\/apikeys<\/a>.<\/li>\n<li>Find your Docil key and open the overflow menu <strong>(\u22ef)<\/strong>.<\/li>\n<li>Select <strong>Roll key<\/strong> (replaces the value) or <strong>Delete<\/strong> (revokes it outright).<\/li>\n<\/ol>\n<p>Access stops the moment you confirm. Your other integrations are unaffected, because they use their own keys.<\/p>\n<p>You can also click <strong>View request logs<\/strong> from that same menu to see every call Docil has made with the key \u2014 a full audit trail, separate from the rest of your account.<\/p>\n<hr>\n<h2>Troubleshooting<\/h2>\n<h3>\u201cI can\u2019t see Developers in the sidebar.\u201d<\/h3>\n<p>Your Stripe role doesn\u2019t allow key management. Ask the account owner to create the key and send it to you through a password manager, or to upgrade your role.<\/p>\n<h3>\u201cI lost the key before saving it.\u201d<\/h3>\n<p>Roll it from the API keys page and copy the new value. Update it in Docil afterwards.<\/p>\n<h3>\u201cDocil says the key is invalid.\u201d<\/h3>\n<p>Three usual causes: a stray space at the start or end when pasting, a key from a different Stripe account, or a key that has already been rolled. Check the last four characters against the ones shown in your Dashboard.<\/p>\n<h3>\u201cThe numbers look empty.\u201d<\/h3>\n<p>You\u2019re almost certainly on a test-mode key (<code>rk_test_<\/code>). Turn Test mode off, create a live key, and replace it in Docil.<\/p>\n<h3>\u201cSome answers are missing subscription or invoice data.\u201d<\/h3>\n<p>The key is missing a Read permission. Open the overflow menu <strong>(\u22ef)<\/strong> next to the key, select <strong>Edit key<\/strong>, add the resource, and save. Docil picks it up on the next sync.<\/p>\n<hr>\n<h2>Frequently asked questions<\/h2>\n<div class=\"docil-faq\">\n<p><strong>Do I need a paid Stripe plan for this?<\/strong><br \/>No. Restricted API keys are part of every Stripe account at no extra cost.<\/p>\n<p><strong>Can I use one key for several tools?<\/strong><br \/>You can, but don\u2019t. Stripe recommends one key per service, so that revoking or rotating one tool\u2019s access never breaks the others.<\/p>\n<p><strong>Does Docil store my key?<\/strong><br \/>It\u2019s held encrypted in your workspace and used only to read the resources you granted. Delete the connection and the credential goes with it. On Enterprise deployments, the key never leaves your own infrastructure.<\/p>\n<p><strong>Can I connect more than one Stripe account?<\/strong><br \/>Yes. Create a restricted key in each account and add them as separate connections.<\/p>\n<p><strong>What if I also want Docil to read my contracts, ads and CRM?<\/strong><br \/>That\u2019s the point of connecting more than one source. Stripe tells you what happened to the money; your contracts and campaigns tell you why.<\/p>\n<\/div>\n<hr>\n<p class=\"docil-cta\">Connected Stripe? Ask your first question at <a href=\"https:\/\/app.docil.ai\" target=\"_blank\" rel=\"noopener\"><strong>app.docil.ai<\/strong><\/a> \u2014 or <a href=\"https:\/\/docil.ai\/es\/planes\/\"><strong>start a free trial<\/strong><\/a> if you haven\u2019t yet.<\/p>\n<\/div>\n<p><!-- ===== end Docil \u00b7 Stripe API key guide ===== --><\/p>","protected":false},"excerpt":{"rendered":"<p>Docil answers questions about your billing \u2014 revenue by month, churn, which customers went quiet, which subscriptions renew next \u2014 by reading your Stripe data. To do that it needs one credential: a restricted API key, created by you, in your own Stripe Dashboard, with read-only permissions. It takes about three minutes. You never share &#8230; <a title=\"Connect Stripe to Docil\" class=\"read-more\" href=\"https:\/\/docil.ai\/es\/stripe\/\" aria-label=\"Leer m\u00e1s sobre Connect Stripe to Docil\">Leer m\u00e1s<\/a><\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"pmpro_default_level":"","footnotes":""},"class_list":["post-104","page","type-page","status-publish","pmpro-has-access"],"_links":{"self":[{"href":"https:\/\/docil.ai\/es\/wp-json\/wp\/v2\/pages\/104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docil.ai\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docil.ai\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docil.ai\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docil.ai\/es\/wp-json\/wp\/v2\/comments?post=104"}],"version-history":[{"count":3,"href":"https:\/\/docil.ai\/es\/wp-json\/wp\/v2\/pages\/104\/revisions"}],"predecessor-version":[{"id":135,"href":"https:\/\/docil.ai\/es\/wp-json\/wp\/v2\/pages\/104\/revisions\/135"}],"wp:attachment":[{"href":"https:\/\/docil.ai\/es\/wp-json\/wp\/v2\/media?parent=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}