# Recurly

> Connect Recurly to sanda: what to prepare, the fields the connection form asks for, and how its data lands in your warehouse.

## Connect Recurly

:::steps
1. **Open the catalogue.** In the console, go to **Data · Connections** and press **New connection**.
2. **Choose Recurly.** It is listed under finance and payments; you can also search for it by name.
3. **Fill in the form.** Enter the fields below. Credentials go straight to sanda’s sync engine and are never stored in sanda’s database.
4. **Choose what to sync.** Pick the tables you want, and a sync mode for each. See [choose what to sync](https://docs.sanda-os.com.au/connections/choose-tables).
5. **Run the first sync.** sanda tests the connection, then lands each table you chose in your warehouse.
:::

## Configuration fields

What the connection form asks for. Required fields are marked; the rest are optional.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| **API Key** | string, secret | Yes | Recurly API Key. |
| **Begin time** | string | No | ISO8601 timestamp from which the replication from Recurly API will start from. |
| **End time** | string | No | ISO8601 timestamp to which the replication from Recurly API will stop. Records after that date won't be imported. |
| **Number of concurrent threads** | integer | No | The number of worker threads to use for the sync. Default `10`. |
| **Days in length for each API call to get data** | integer | No | Days in length for each API call to get data from the accounts stream. Smaller values will result in more API calls but better concurrency. Default `30`. |
| **Use Sandbox Environment** | boolean | No | Set to true for sandbox accounts (400 requests/min, all types). Defaults to false for production accounts (1,000 GET requests/min). Default `false`. |

## Related

:::links
- [Sync modes](https://docs.sanda-os.com.au/connections/sync-modes): How sanda reads each table on every run.
- [Sync schedules](https://docs.sanda-os.com.au/connections/schedules): How often a connection runs.
- [Allowlist sanda’s address](https://docs.sanda-os.com.au/connections/allowlist): For a system behind a firewall.
- [Troubleshoot connections](https://docs.sanda-os.com.au/connections/troubleshooting): What an error means and how to fix it.
:::
