> ## Documentation Index
> Fetch the complete documentation index at: https://docs.deskhoot.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Stripe

> Plans, invoices and payments beside the conversation

Connect Stripe to see a customer's subscription, invoices and payments beside their conversation, and to refund or change things without leaving DeskHoot.

**1. Select Connect**

Open [**Tools › Integrations**](https://app.deskhoot.com/app/integrations?tab=integrations) and select **Connect** on Stripe.

**2. Approve it in Stripe**

Stripe opens. Choose your account and approve DeskHoot. You are sent back when it is done.

> [!NOTE]
>
> Only admins can connect Stripe. A project connects one Stripe account, live or test. Finish within 15 minutes, with the same admin who started.

## Which customer is shown

DeskHoot does not look a customer up by email. It uses the Stripe customer ID your website signs for a signed-in customer, as `stripe_customer_id`. It is the one that starts with `cus_`. See [Verify users](https://docs.deskhoot.com/sdk/identify.md).

> [!WARNING]
>
> A guest, a customer who only wrote by email, or a customer whose details have no Stripe customer ID, shows "No Stripe customer linked".

## The card beside a conversation

The card shows the customer's plan, invoices and payments. **Full details** shows the latest 100 invoices and 100 payments. Older ones are in Stripe.

Type `/stripe` in a reply to post the card as a private note. It can also post the customer's invoices or payments. A posted card only holds details agents may see. See [Slash commands](https://docs.deskhoot.com/conversations/reply.md#slash-commands).

## What they see

On Stripe's page, **What they see** sets which details **Agents**, **Leaders** and **AutoPilot** see. Agents and Leaders start seeing everything. AutoPilot starts seeing nothing.

Stripe's page also sets the inboxes its card shows in, and when it loads. See [Integrations](https://docs.deskhoot.com/tools/integrations.md#settings-each-integration-has).

## Actions

Your team runs an action from **Full details**. Running it there is the confirmation, and a private note records what was done.

| Starts as | For agents | For leaders |
| - | - | - |
| **Free to use** | Retry payment, Resend invoice, Pause, Billing details, Portal link | Every other action |
| **Up to** an amount | Refund up to 50, Add credit up to 20 | Refund up to 500, Credit note up to 200, Add credit up to 200 |
| **Needs approval** | Change plan, Cancel, Extend trial | None |
| **Off** | Void invoice, Credit note, Apply coupon | None |

Admins can always use every action. AutoPilot starts with every action off. A leader's rules apply in the inboxes they lead.

An action only shows when it makes sense for the customer. There is no **Refund** without a payment that can be refunded.

> [!NOTE]
>
> When a subscription is already paused, **Pause** becomes **Resume**. When it is already set to end, **Cancel** becomes **Keep subscription**. Everyone on your team can use these two, whatever the rules for Pause and Cancel.

## Change who can do what

Open [**Tools › Actions**](https://app.deskhoot.com/app/integrations?tab=actions) and select Stripe. Each action has a choice for Agents, Leaders and AutoPilot.

| Choice | What it means |
| - | - |
| **Off** | They cannot use it. |
| **Needs approval** | They ask, and a leader or admin approves. See [Approvals](https://docs.deskhoot.com/tools/approvals.md). |
| **Up to** an amount | They can run it up to that amount. Above it, it needs approval. |
| **Free to use** | They can run it. For Refund, Credit note and Add credit it reads **Any amount**. |

For AutoPilot the choices are **Off**, **Up to** an amount for Refund, Credit note and Add credit, or **Inside a procedure**. AutoPilot only runs a Stripe action as a step of a [procedure](https://docs.deskhoot.com/autopilot/procedures.md), and it never asks for approval. Above its amount it changes nothing and [hands off](https://docs.deskhoot.com/autopilot/handoff.md).

> [!WARNING]
>
> Emptying an **Up to** box does not switch the action off. For your team it becomes **Needs approval**. For AutoPilot it becomes **Inside a procedure**, with any amount.

## One currency for every limit

Every limit is in one currency, chosen under **Limits in** on Stripe's page in [**Tools › Actions**](https://app.deskhoot.com/app/integrations?tab=actions). It starts as your Stripe account's currency.

* A payment in another currency is compared after converting it with the day's exchange rate. That is an estimate.
* If there is no rate for a currency, the action asks for approval.
* Changing the currency keeps the numbers as you typed them.

## The message for the customer

After an action runs, DeskHoot offers a message for the customer, ready to put in your reply. Each action has one message, and you can change its wording under **Message for the customer**, in the box that opens when you select one of the action's cells on Stripe's page in **Tools › Actions**. Empty it to go back to the original.

## Disconnect Stripe

Disconnecting removes the card from every conversation. Nothing changes in Stripe itself.

> [!WARNING]
>
> Disconnecting resets what your team sees, who can use each action and their amounts, the limit currency, the inboxes and the customer messages. Requests still waiting for approval can no longer be answered. To take DeskHoot off your Stripe account's list of apps too, uninstall it in Stripe.

If DeskHoot is removed on Stripe's side, the integration shows **Disconnected**. **Connect again** brings it back with your settings.

## Related

> [card] [Approvals](https://docs.deskhoot.com/tools/approvals.md)
>
> Ask a leader or admin before an action runs.

> [card] [Verify users](https://docs.deskhoot.com/sdk/identify.md)
>
> For developers: send the Stripe customer ID.

> [card] [Procedures](https://docs.deskhoot.com/autopilot/procedures.md)
>
> Let AutoPilot refund or change a plan, step by step.

> [card] [Integrations](https://docs.deskhoot.com/tools/integrations.md)
>
> Connect Stripe, calendars and your own API.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.