# Set Up a Connection

Source: https://docs.formance.com/v4.0/modules/connectivity/get-started

Stack: v4.0

This walkthrough installs your first connection. It uses [Synthetic Generator](https://docs.formance.com/v4.0/modules/connectivity/connectors/synthetic), a connector that produces test activity without a provider account, so you can see records arrive in a ledger before you connect a real provider. You enable Connectivity, install the connection with its default settings, then check the records in a ledger named `provider-demo`.

Choose a connector and open its Config tab. Fill in the required fields, then run the generated fctl command.

- [Synthetic Generator](https://docs.formance.com/v4.0/modules/connectivity/connectors/synthetic) (used in the example below)
- [Adyen for Platforms](https://docs.formance.com/v4.0/modules/connectivity/connectors/adyenplatforms)
- [Adyen Payments](https://docs.formance.com/v4.0/modules/connectivity/connectors/adyenpayments)
- [Bitstamp](https://docs.formance.com/v4.0/modules/connectivity/connectors/bitstamp)
- [Coinbase Prime](https://docs.formance.com/v4.0/modules/connectivity/connectors/coinbaseprime)
- [Fireblocks](https://docs.formance.com/v4.0/modules/connectivity/connectors/fireblocks)
- [Stripe Connect](https://docs.formance.com/v4.0/modules/connectivity/connectors/stripeconnect)
- [Stripe Payments](https://docs.formance.com/v4.0/modules/connectivity/connectors/stripecore)

[Browse the full catalog](https://docs.formance.com/v4.0/modules/connectivity/connectors)

To go straight to your own provider, choose its connector above. Enable the Connectivity module first, as described below. Otherwise, continue with the Synthetic Generator example.

- `fctl` installed and authenticated. Follow the [Platform Quick Start](https://docs.formance.com/v4.0/getting-started/quickstart) if needed.
- Access to an Enterprise Stack v4.0 and permission to enable modules.

## Enable the Connectivity module

From your terminal, enable Connectivity. If it is already enabled, skip this command and check its status below.

```bash title="Terminal"
fctl stack modules enable connectivity
```

Confirm the stack when prompted. This starts the module's deployment. If fctl cannot enable the module, ask your administrator to check your permissions and whether your region supports Connectivity.

Check the module's status:

```bash title="Terminal"
fctl stack modules list
```

Connectivity is ready when its row shows **State** `ENABLED` and **Cluster status** `READY`. If deployment is still in progress, wait a moment and run the command again.

Once it is ready, check that the API responds:

```bash title="Terminal"
fctl connectivity server-infos
```

The response shows the module's version and build information. If the module does not become ready or this check fails, ask your administrator to inspect the deployment before you continue.

## Check that the connector is available

From the same terminal, check that your stack offers Synthetic Generator:

```bash
fctl connectivity connectors show ee-synthetic
```

fctl prints the connector's name, latest version, and configuration fields. If it reports that the connector is not found, ask your administrator which connectors your stack offers before continuing.

The connector name starts with `ee-` (the Enterprise Edition catalog prefix). Only the connector name carries it. The connection, ledger, and files you create keep plain names.

## Prepare the settings

Each connector's **Config** tab lists its settings and generates an install command. For this example, use [Synthetic Generator's defaults](https://docs.formance.com/v4.0/modules/connectivity/connectors/synthetic). No configuration file is needed.

## Install the connection

From the same terminal, install the connection:

```bash
fctl connectivity connections install ee-synthetic --name provider-demo --ledger provider-demo --channel beta --poll-interval 30s
```

fctl asks you to confirm the install on the selected stack. Answer `y`. fctl then prints:

```text
Connection "provider-demo" installed with connector "ee-synthetic" for ledger "provider-demo".
```

If the `provider-demo` ledger did not exist, the install created it. The connection starts generating test activity and recording it in that ledger. The `--channel` flag tracks the connector's newest compatible release on that channel.

## Check the connection's status

From the same terminal, show the connection:

```bash
fctl connectivity connections show provider-demo
```

While generation is in progress, the output looks like this:

```text
# Connection
Name           | provider-demo
Connector      | ee-synthetic
Ledger         | provider-demo
Target         | channel beta
Poll Interval  | 30s
Suspend        | not requested
Initial Cursor | from the beginning

# Last Recorded Status
Lifecycle       | active
Applied Version | v0.5.0-beta.8
Ingestion       | running (progress 175)
Suspended By    | -
Last Error      | none recorded

# Configuration
No configuration entries.
```

A working connection shows **Lifecycle** `active`, **Ingestion** `running`, and no recorded error.

## See the records in your ledger

In the [Formance Console](https://console.formance.cloud), open the `provider-demo` ledger, then open **Accounts** to see the generated accounts and their balances. Compare them with [Synthetic Generator's Ledger Model](https://docs.formance.com/v4.0/modules/connectivity/connectors/synthetic).

Open **Transactions**, then select a transaction to inspect its reference, amount, and timestamp.

## Next steps

- To connect your provider, choose a connector in the [Connector Catalog](https://docs.formance.com/v4.0/modules/connectivity/connectors) and follow its **Config** tab.
- To make sense of the records, read [What Connectivity Models](https://docs.formance.com/v4.0/modules/connectivity/what-it-models). It explains accounts, transactions, metadata, and balances.
- To learn how a connection keeps running, read [How Connectivity Works](https://docs.formance.com/v4.0/modules/connectivity/how-it-works). It covers checkpoints, retries, and changes to a connection.
