# <Signup />

If you have products or plans that you want anyone (outside your organization) to be able to sign up for, you can set up the Signup component on your website.

Signup uses an API client token that only has the signup scopes, so it is safe to expose in a web page.

## Create an API client with limited scopes

- Go to Settings > Developers > API clients in Bunny.
- Create a new client and grant it only the `signup:read` and `signup:write` scopes.
- Copy the client’s token and use it as the `token` of the `BunnyProvider`.

For more detail, see [creating and managing API clients](https://docs.bunny.com/guide/tour/access-control/api-clients).

## Usage

Give Signup its own `BunnyProvider`, separate from the one used by other components, because its token differs.

```tsx
import { BunnyProvider, Signup } from "@bunnyapp/components";

function App() {
  return (
    <BunnyProvider token={tokenWithSignupScope} apiHost={apiHost}>
      <Signup
        priceListCode="business-monthly"
        defaultCouponCode="FREECARROTS2025"
        form={{
          defaultValues: { firstName: "John", lastName: "Doe", email: "john.doe@example.com" },
          requiredBillingDetails: { billingStreet: true, billingCity: true, billingZip: true },
        }}
        callbacks={{ onPaymentSuccess: () => console.log("Signed up!") }}
        appearance={{ variables: { colorPrimary: "#14532d" } }}
      />
    </BunnyProvider>
  );
}
```

 [image: Signup component showing a Bunny Annual price summary with line items and a coupon link beside an email, payment method, card details and country form with a Pay $200.00 button]

## Props

Signup takes the same props as [Checkout](https://docs.bunny.com/developer/bunny-components/checkout#props), except `documentTemplateId`. Like every component, it also accepts `appearance` ([Styling](https://docs.bunny.com/developer/bunny-components/styling)) and `style` for positioning.

Signup always creates a new account. To subscribe an existing account, use [Checkout](https://docs.bunny.com/developer/bunny-components/checkout), available in the 2.0 prerelease.

## Payment methods

Signup accepts cards only when an amount is due, including Link with a saved card or bank, and Apple Pay and Google Pay when they are enabled and your domain is registered with Stripe. Signup charges the first invoice and creates the account in one step, so it only takes payment methods that confirm immediately. Bank debits such as SEPA Direct Debit and ACH take several business days to settle, so Signup doesn’t offer them.

To let customers pay by SEPA Direct Debit, have them sign up with a card and switch afterwards, or create the account yourself and use [Checkout](https://docs.bunny.com/developer/bunny-components/checkout), which offers every payment method enabled in your Stripe account.

## Using signup on your portal page

Instead of embedding the Signup component and creating your own page, you can do this easily with the Bunny portal page. Refer to [these docs](https://docs.bunny.com/developer/customer-portal/account-signup).

## What happens after signup?

A successful signup creates:

- A Customer account.
- A billing contact, containing the user’s name and email.
- A tenant for the user’s data.
- A subscription corresponding to the `priceListCode` you passed to the component.

A payment method is stored only when an amount is due, so not for trials or 100%-discounted plans. If anything fails, nothing is created.

 [image: Customers > Accounts list in Bunny showing account type, paying status, MRR and created timestamp for each account]

The accounts page in Bunny. New accounts from signups appear here.

---

Source: https://docs.bunny.com/developer/bunny-components/signup. Index of every page: https://docs.bunny.com/llms.txt
